Package org.opencastproject.mediapackage
Interface Publication
- All Superinterfaces:
Cloneable,Comparable<MediaPackageElement>,ManifestContributor,MediaPackageElement
- All Known Implementing Classes:
PublicationImpl
The presentation element describes where a media package can be consumed.
An entry of this type id the result of a distribution to a distribution channel.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencastproject.mediapackage.MediaPackageElement
MediaPackageElement.Type -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachment(Attachment attachment) Adds an attachment to this publication.voidaddCatalog(Catalog catalog) Adds a catalog to this publication.voidAdds a track to this publication.voidRemoves all tracks from this publication.Returns the attachments that are part of this publication.Catalog[]Returns the catalogs associated with this publication.Returns the channel id.Track[]Returns the tracks that are part of this publication.voidremoveAttachmentById(String attachmentId) Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.opencastproject.mediapackage.ManifestContributor
toManifestMethods inherited from interface org.opencastproject.mediapackage.MediaPackageElement
addTag, clearReference, clearTags, clone, containsTag, containsTag, generateIdentifier, getChecksum, getElementDescription, getElementType, getFlavor, getIdentifier, getMediaPackage, getMimeType, getReference, getSize, getTags, getURI, referTo, referTo, removeTag, setChecksum, setElementDescription, setFlavor, setIdentifier, setMimeType, setReference, setSize, setTags, setURI, verify
-
Method Details
-
getChannel
String getChannel()Returns the channel id. -
getTracks
Track[] getTracks()Returns the tracks that are part of this publication.- Returns:
- the tracks
-
addTrack
Adds a track to this publication.- Parameters:
track- the track to add
-
clearTracks
void clearTracks()Removes all tracks from this publication. -
getAttachments
Attachment[] getAttachments()Returns the attachments that are part of this publication.- Returns:
- the attachments
-
addAttachment
Adds an attachment to this publication.- Parameters:
attachment- the attachment to add
-
removeAttachmentById
-
getCatalogs
Catalog[] getCatalogs()Returns the catalogs associated with this publication.- Returns:
- the catalogs
-
addCatalog
Adds a catalog to this publication.- Parameters:
catalog- the catalog to add
-