public class PublicationImpl extends AbstractMediaPackageElement implements Publication
| Modifier and Type | Class and Description |
|---|---|
static class |
PublicationImpl.Adapter
JAXB adapter
|
MediaPackageElement.Typechecksum, description, elementType, flavor, id, mediaPackage, mimeType, reference, size, tags, uri| Constructor and Description |
|---|
PublicationImpl()
JAXB constructor
|
PublicationImpl(String id,
String channel,
URI uri,
MimeType mimeType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(Attachment attachment)
Adds an attachment to this publication.
|
void |
addCatalog(Catalog catalog)
Adds a catalog to this publication.
|
static void |
addElementToPublication(Publication publication,
MediaPackageElement element)
Adds a
MediaPackageElement to this publication by determining its type. |
void |
addTrack(Track track)
Adds a track to this publication.
|
void |
clearTracks()
Removes all tracks from this publication.
|
Attachment[] |
getAttachments()
Returns the attachments that are part of this publication.
|
Catalog[] |
getCatalogs()
Returns the catalogs associated with this publication.
|
String |
getChannel()
Returns the channel id.
|
Track[] |
getTracks()
Returns the tracks that are part of this publication.
|
static Publication |
publication(String id,
String channel,
URI uri,
MimeType mimeType) |
void |
removeAttachmentById(String attachmentId) |
void |
setFlavor(MediaPackageElementFlavor flavor)
Sets the flavor on this media package element.
|
addTag, clearReference, clearTags, clone, compareTo, containsTag, containsTag, equals, getChecksum, getElementDescription, getElementType, getFlavor, getIdentifier, getMediaPackage, getMimeType, getReference, getSize, getTags, getURI, hashCode, referTo, referTo, referTo, removeTag, setChecksum, setElementDescription, setIdentifier, setMimeType, setReference, setSize, setURI, toManifest, toString, verifyfinalize, getClass, notify, notifyAll, wait, wait, waitaddTag, clearReference, clearTags, clone, containsTag, containsTag, getChecksum, getElementDescription, getElementType, getFlavor, getIdentifier, getMediaPackage, getMimeType, getReference, getSize, getTags, getURI, referTo, referTo, referTo, removeTag, setChecksum, setElementDescription, setIdentifier, setMimeType, setReference, setSize, setURI, verifytoManifestcompareTopublic static Publication publication(String id, String channel, URI uri, MimeType mimeType)
public String getChannel()
PublicationgetChannel in interface Publicationpublic Track[] getTracks()
PublicationgetTracks in interface Publicationpublic void addTrack(Track track)
PublicationaddTrack in interface Publicationtrack - the track to addpublic Attachment[] getAttachments()
PublicationgetAttachments in interface Publicationpublic void addAttachment(Attachment attachment)
PublicationaddAttachment in interface Publicationattachment - the attachment to addpublic void removeAttachmentById(String attachmentId)
removeAttachmentById in interface Publicationpublic Catalog[] getCatalogs()
PublicationgetCatalogs in interface Publicationpublic void addCatalog(Catalog catalog)
PublicationaddCatalog in interface Publicationcatalog - the catalog to addpublic void clearTracks()
PublicationclearTracks in interface Publicationpublic void setFlavor(MediaPackageElementFlavor flavor)
MediaPackageElementsetFlavor in interface MediaPackageElementsetFlavor in class AbstractMediaPackageElementflavor - the new flavorMediaPackageElement.setFlavor(MediaPackageElementFlavor)public static void addElementToPublication(Publication publication, MediaPackageElement element)
MediaPackageElement to this publication by determining its type.publication - The Publication to add the MediaPackageElement to.element - The MediaPackageElement to add. If it is not a Attachment, Catalog or
Track it will not be added to the Publication.Copyright © 2009–2021 Opencast Project. All rights reserved.