Class Playlist

java.lang.Object
org.opencastproject.playlists.Playlist

@Entity(name="Playlist") public class Playlist extends Object
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 Details

    • deletionDate

      protected Date deletionDate
  • Constructor Details

  • 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

      public String getId()
    • setId

      public void setId(String id)
    • getOrganization

      public String getOrganization()
    • setOrganization

      public void setOrganization(String organization)
    • getEntries

      public List<PlaylistEntry> getEntries()
    • setEntries

      public void setEntries(List<PlaylistEntry> entries)
    • addEntry

      public boolean addEntry(PlaylistEntry entry)
    • removeEntry

      public boolean removeEntry(PlaylistEntry entry)
    • getTitle

      public String getTitle()
    • setTitle

      public void setTitle(String title)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getCreator

      public String getCreator()
    • setCreator

      public void setCreator(String creator)
    • getUpdated

      public Date getUpdated()
    • setUpdated

      public void setUpdated(Date updated)
    • getDeletionDate

      public Date getDeletionDate()
    • setDeletionDate

      public void setDeletionDate(Date deletionDate)
    • isDeleted

      public boolean isDeleted()
    • getAccessControlEntries

      public List<PlaylistAccessControlEntry> getAccessControlEntries()
    • setAccessControlEntries

      public void setAccessControlEntries(List<PlaylistAccessControlEntry> accessControlEntries)