Package org.opencastproject.playlists
Class Playlist
java.lang.Object
org.opencastproject.playlists.Playlist
Entity object for storing playlists in persistence storage. Playlists contain an ordered list of entries,
which represent Opencast entities (for now they can only hold events, but in the future they may also hold series
and the like). Playlists also contain some metadata and their own access control list.
The playlist ACL only pertains to itself and its entries. The contents of an entry (i.e. the publication of an
event) is still only governed by the contents ACL.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddEntry(PlaylistEntry entry) voidWorkaround for generating a UUID for the id if we don't already have one.getId()getTitle()booleanbooleanremoveEntry(PlaylistEntry entry) voidsetAccessControlEntries(List<PlaylistAccessControlEntry> accessControlEntries) voidsetCreator(String creator) voidsetDeletionDate(Date deletionDate) voidsetDescription(String description) voidsetEntries(List<PlaylistEntry> entries) voidvoidsetOrganization(String organization) voidvoidsetUpdated(Date updated)
-
Field Details
-
deletionDate
-
-
Constructor Details
-
Playlist
public Playlist()Default constructor -
Playlist
public Playlist(String id, String organization, List<PlaylistEntry> entries, String title, String description, String creator, Date updated, List<PlaylistAccessControlEntry> accessControlEntries)
-
-
Method Details
-
generateId
public void generateId()Workaround for generating a UUID for the id if we don't already have one. We cannot use EclipseLinks @UuidGenerator annotation for this, because it breaks our JUnit tests. We also cannot use Hibernates @GenericGenerator for this, since we lack the appropriate library (and possibly hibernate version). -
getId
-
setId
-
getOrganization
-
setOrganization
-
getEntries
-
setEntries
-
addEntry
-
removeEntry
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getCreator
-
setCreator
-
getUpdated
-
setUpdated
-
getDeletionDate
-
setDeletionDate
-
isDeleted
public boolean isDeleted() -
getAccessControlEntries
-
setAccessControlEntries
-