| Package | Description |
|---|---|
| org.opencastproject.mediapackage | |
| org.opencastproject.mediapackage.selector | |
| org.opencastproject.security.api |
| Modifier and Type | Class and Description |
|---|---|
class |
MediaPackageImpl
Default implementation for a media media package.
|
| Modifier and Type | Field and Description |
|---|---|
protected MediaPackage |
AbstractMediaPackageElement.mediaPackage
The parent media package
|
| Modifier and Type | Field and Description |
|---|---|
static Function<MediaPackage,List<MediaPackageElement>> |
MediaPackageSupport.Fn.getElements |
static Function<MediaPackage,String> |
MediaPackageSupport.getId
Deprecated.
|
static Function<MediaPackage,String> |
MediaPackageSupport.Fn.getId
Function to extract the ID of a media package.
|
static Function<MediaPackage,List<Publication>> |
MediaPackageSupport.Fn.getPublications |
static Function<MediaPackage,List<Track>> |
MediaPackageSupport.Fn.getTracks |
| Modifier and Type | Method and Description |
|---|---|
static MediaPackage |
MediaPackageSupport.copy(MediaPackage mp)
Create a copy of the given media package.
|
MediaPackage |
MediaPackageBuilder.createNew()
Creates a new media package in the temporary directory defined by the java runtime property
java.io.tmpdir. |
MediaPackage |
MediaPackageBuilderImpl.createNew()
Creates a new media package in the temporary directory defined by the java runtime property
java.io.tmpdir. |
MediaPackage |
MediaPackageBuilder.createNew(Id identifier)
Creates a new media package in the temporary directory defined by the java runtime property
java.io.tmpdir. |
MediaPackage |
MediaPackageBuilderImpl.createNew(Id identifier)
Creates a new media package in the temporary directory defined by the java runtime property
java.io.tmpdir. |
static MediaPackage |
MediaPackageParser.getFromXml(String xml)
Parses the media package and returns its object representation.
|
MediaPackage |
MediaPackageElement.getMediaPackage()
Returns the media package if the element has been added,
null otherwise. |
MediaPackage |
AbstractMediaPackageElement.getMediaPackage() |
static MediaPackage |
MediaPackageSupport.loadFromClassPath(String path)
To be used in unit tests.
|
MediaPackage |
MediaPackageBuilder.loadFromXml(InputStream is)
Loads a media package from the manifest.
|
MediaPackage |
MediaPackageBuilderImpl.loadFromXml(InputStream is)
Loads a media package from the manifest.
|
MediaPackage |
MediaPackageBuilder.loadFromXml(Node xml)
Loads a media package from the manifest.
|
MediaPackage |
MediaPackageBuilderImpl.loadFromXml(Node xml) |
MediaPackage |
MediaPackageBuilder.loadFromXml(String xml)
Loads a media package from the manifest.
|
MediaPackage |
MediaPackageBuilderImpl.loadFromXml(String xml)
Loads a media package from the manifest.
|
static MediaPackage |
MediaPackageSupport.merge(MediaPackage dest,
MediaPackage src,
MediaPackageSupport.MergeMode mode)
Merges the contents of media package located at
sourceDir into the media package located at
targetDir. |
static MediaPackage |
MediaPackageSupport.modify(MediaPackage mp,
Effect<MediaPackage> e)
Immutable modification of a media package.
|
MediaPackage |
MediaPackageImpl.Adapter.unmarshal(MediaPackageImpl mp) |
| Modifier and Type | Method and Description |
|---|---|
static List<MediaPackage> |
MediaPackageParser.getArrayFromXml(String xml)
Parses the serialized media package list.
|
static Effect<MediaPackage> |
MediaPackageSupport.removeElements(List<MediaPackageElement> es) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
MediaPackageSupport.contains(String identifier,
MediaPackage mp)
Returns
true if the media package contains an element with the specified identifier. |
static MediaPackage |
MediaPackageSupport.copy(MediaPackage mp)
Create a copy of the given media package.
|
static String |
MediaPackageParser.getAsJSON(MediaPackage mediaPackage)
Serializes the media package to a JSON string.
|
static String |
MediaPackageParser.getAsXml(MediaPackage mediaPackage)
Serializes the media package to a string.
|
static Document |
MediaPackageParser.getAsXml(MediaPackage mediaPackage,
MediaPackageSerializer serializer)
Serializes the media package to a
Document. |
static void |
MediaPackageParser.getAsXml(MediaPackage mediaPackage,
OutputStream out,
boolean format)
Writes an xml representation of this MediaPackage to a stream.
|
static Document |
MediaPackageParser.getAsXmlDocument(MediaPackage mp)
Serializes a media package to a
Document without any further processing. |
static InputStream |
MediaPackageSupport.getJsonInputStream(MediaPackage mp) |
static InputStream |
MediaPackageSupport.getXmlInputStream(MediaPackage mp) |
static boolean |
MediaPackageSupport.isPublishable(MediaPackage mp)
Media package must have a title and contain tracks in order to be published.
|
MediaPackageImpl |
MediaPackageImpl.Adapter.marshal(MediaPackage mp) |
static MediaPackage |
MediaPackageSupport.merge(MediaPackage dest,
MediaPackage src,
MediaPackageSupport.MergeMode mode)
Merges the contents of media package located at
sourceDir into the media package located at
targetDir. |
static MediaPackage |
MediaPackageSupport.modify(MediaPackage mp,
Effect<MediaPackage> e)
Immutable modification of a media package.
|
void |
MediaPackageObserver.packageMoved(MediaPackage mediaPackage)
This method is called if the media package was moved to another location.
|
void |
MediaPackageElement.referTo(MediaPackage mediaPackage)
Adds a reference to the media package
mediaPackage. |
void |
AbstractMediaPackageElement.referTo(MediaPackage mediaPackage) |
static void |
MediaPackageSupport.removeElements(List<MediaPackageElement> es,
MediaPackage mp) |
static void |
MediaPackageSupport.replaceElements(MediaPackage mp,
List<MediaPackageElement> es)
Replaces all elements of
mp with es. |
static Option<List<String>> |
MediaPackageSupport.sanityCheck(MediaPackage mp)
Basic sanity checking for media packages.
|
Collection<T> |
MediaPackageElementSelector.select(MediaPackage mediaPackage,
boolean withTagsAndFlavors)
Returns the media package elements that are matched by this selector.
|
static Effect<MediaPackageElement> |
MediaPackageSupport.updateElement(MediaPackage mp)
|
static void |
MediaPackageSupport.updateElement(MediaPackage mp,
MediaPackageElement e)
Update a mediapackage element of a mediapackage.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
MediaPackageParser.getArrayAsXml(List<MediaPackage> mediaPackages)
Serializes media package list to a string.
|
static MediaPackage |
MediaPackageSupport.modify(MediaPackage mp,
Effect<MediaPackage> e)
Immutable modification of a media package.
|
| Constructor and Description |
|---|
MediaPackageReferenceImpl(MediaPackage mediaPackage)
Creates a reference to the specified media package.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<T> |
FlavorPrioritySelector.select(MediaPackage mediaPackage,
boolean withTagsAndFlavors)
This base implementation will return those media package elements that match the type specified as the type
parameter to the class and that flavor (if specified) AND at least one of the tags (if specified) match.
|
Collection<T> |
AbstractMediaPackageElementSelector.select(MediaPackage mediaPackage,
boolean withTagsAndFlavors)
This base implementation will return those media package elements that match the type specified as the type
parameter to the class and that flavor (if specified) AND at least one of the tags (if specified) match.
|
| Modifier and Type | Method and Description |
|---|---|
MediaPackage |
AuthorizationService.removeAcl(MediaPackage mp,
AclScope scope)
Remove the XACML of the given scope.
|
| Modifier and Type | Method and Description |
|---|---|
Tuple<MediaPackage,Attachment> |
AuthorizationService.setAcl(MediaPackage mp,
AclScope scope,
AccessControlList acl)
Attaches the provided policies to a media package as a XACML attachment, replacing any previous policy element of
the same scope.
|
| Modifier and Type | Method and Description |
|---|---|
Tuple<AccessControlList,AclScope> |
AuthorizationService.getAcl(MediaPackage mp,
AclScope scope)
Gets the access control list for a given scope associated with the given media package, as specified by its XACML
attachments.
|
Tuple<AccessControlList,AclScope> |
AuthorizationService.getActiveAcl(MediaPackage mp)
Gets the active access control list associated with the given media package, as specified by its XACML
attachments.
|
boolean |
AuthorizationService.hasPermission(MediaPackage mp,
String action)
Determines whether the current user can take the specified action on the media package.
|
MediaPackage |
AuthorizationService.removeAcl(MediaPackage mp,
AclScope scope)
Remove the XACML of the given scope.
|
Tuple<MediaPackage,Attachment> |
AuthorizationService.setAcl(MediaPackage mp,
AclScope scope,
AccessControlList acl)
Attaches the provided policies to a media package as a XACML attachment, replacing any previous policy element of
the same scope.
|
Copyright © 2009–2021 Opencast Project. All rights reserved.