Uses of Interface
org.opencastproject.mediapackage.MediaPackage
Packages that use MediaPackage
Package
Description
-
Uses of MediaPackage in org.opencastproject.mediapackage
Classes in org.opencastproject.mediapackage that implement MediaPackageModifier and TypeClassDescriptionfinal classDefault implementation for a media media package.Fields in org.opencastproject.mediapackage declared as MediaPackageModifier and TypeFieldDescriptionprotected MediaPackageAbstractMediaPackageElement.mediaPackageThe parent media packageMethods in org.opencastproject.mediapackage that return MediaPackageModifier and TypeMethodDescriptionstatic MediaPackageMediaPackageSupport.copy(MediaPackage mp) Create a copy of the given media package.MediaPackageBuilder.createNew()Creates a new media package in the temporary directory defined by the java runtime propertyjava.io.tmpdir.Creates a new media package in the temporary directory defined by the java runtime propertyjava.io.tmpdir.MediaPackageBuilderImpl.createNew()Creates a new media package in the temporary directory defined by the java runtime propertyjava.io.tmpdir.Creates a new media package in the temporary directory defined by the java runtime propertyjava.io.tmpdir.static MediaPackageMediaPackageParser.getFromXml(String xml) Parses the media package and returns its object representation.AbstractMediaPackageElement.getMediaPackage()MediaPackageElement.getMediaPackage()Returns the media package if the element has been added,nullotherwise.static MediaPackageMediaPackageSupport.loadFromClassPath(String path) To be used in unit tests.MediaPackageBuilder.loadFromXml(InputStream is) Loads a media package from the manifest.MediaPackageBuilder.loadFromXml(String xml) Loads a media package from the manifest.MediaPackageBuilder.loadFromXml(Node xml) Loads a media package from the manifest.MediaPackageBuilderImpl.loadFromXml(InputStream is) Loads a media package from the manifest.MediaPackageBuilderImpl.loadFromXml(String xml) Loads a media package from the manifest.MediaPackageBuilderImpl.loadFromXml(Node xml) static MediaPackageMediaPackageSupport.merge(MediaPackage dest, MediaPackage src, MediaPackageSupport.MergeMode mode) Merges the contents of media package located atsourceDirinto the media package located attargetDir.MediaPackageImpl.Adapter.unmarshal(MediaPackageImpl mp) Methods in org.opencastproject.mediapackage that return types with arguments of type MediaPackageModifier and TypeMethodDescriptionstatic List<MediaPackage> MediaPackageParser.getArrayFromXml(String xml) Parses the serialized media package list.Methods in org.opencastproject.mediapackage with parameters of type MediaPackageModifier and TypeMethodDescriptionstatic booleanMediaPackageSupport.contains(String identifier, MediaPackage mp) Returnstrueif the media package contains an element with the specified identifier.static MediaPackageMediaPackageSupport.copy(MediaPackage mp) Create a copy of the given media package.static StringMediaPackageParser.getAsJSON(MediaPackage mediaPackage) Serializes the media package to a JSON string.static StringMediaPackageParser.getAsXml(MediaPackage mediaPackage) Serializes the media package to a string.static DocumentMediaPackageParser.getAsXml(MediaPackage mediaPackage, MediaPackageSerializer serializer) Serializes the media package to aDocument.static DocumentMediaPackageParser.getAsXmlDocument(MediaPackage mp) Serializes a media package to aDocumentwithout any further processing.MediaPackageImpl.Adapter.marshal(MediaPackage mp) static MediaPackageMediaPackageSupport.merge(MediaPackage dest, MediaPackage src, MediaPackageSupport.MergeMode mode) Merges the contents of media package located atsourceDirinto the media package located attargetDir.AdaptivePlaylist.HLSMediaPackageCheck.rewriteHLS(MediaPackage mp, BiFunction<File, Track, Track> replaceTrackFileInWS, Function<Track, Void> removeFromWS) Rewrite the playlist file from master on down, this has to be done in multiple steps because the act of putting a file into a collection changes the path and new path is not known in advance.MediaPackageSupport.sanityCheck(MediaPackage mp) Basic sanity checking for media packages.MediaPackageElementSelector.select(MediaPackage mediaPackage, boolean withTagsAndFlavors) Returns the media package elements that are matched by this selector.MediaPackageElementSelector.select(MediaPackage mediaPackage, String publicationChannel, boolean withTagsAndFlavors) Returns the elements that are matched by this selector from the given publication of the given media package.static Consumer<MediaPackageElement> MediaPackageSupport.updateElement(MediaPackage mp) static voidMediaPackageSupport.updateElement(MediaPackage mp, MediaPackageElement e) Update a mediapackage element of a mediapackage.Method parameters in org.opencastproject.mediapackage with type arguments of type MediaPackageModifier and TypeMethodDescriptionstatic StringMediaPackageParser.getArrayAsXml(List<MediaPackage> mediaPackages) Serializes media package list to a string.Constructors in org.opencastproject.mediapackage with parameters of type MediaPackageModifierConstructorDescriptionMediaPackageReferenceImpl(MediaPackage mediaPackage) Creates a reference to the specified media package. -
Uses of MediaPackage in org.opencastproject.mediapackage.selector
Methods in org.opencastproject.mediapackage.selector with parameters of type MediaPackageModifier and TypeMethodDescriptionAbstractMediaPackageElementSelector.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.AbstractMediaPackageElementSelector.select(MediaPackage mediaPackage, String publicationChannel, boolean withTagsAndFlavors) Similar to above, but will get media package elements from the given publication instead. -
Uses of MediaPackage in org.opencastproject.security.api
Methods in org.opencastproject.security.api that return MediaPackageModifier and TypeMethodDescriptionAuthorizationService.removeAcl(MediaPackage mp, AclScope scope) Remove the XACML of the given scope.Methods in org.opencastproject.security.api that return types with arguments of type MediaPackageModifier and TypeMethodDescriptionAuthorizationService.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.Methods in org.opencastproject.security.api with parameters of type MediaPackageModifier and TypeMethodDescriptionAuthorizationService.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.AuthorizationService.getActiveAcl(MediaPackage mp) Gets the active access control list associated with the given media package, as specified by its XACML attachments.booleanAuthorizationService.hasPermission(MediaPackage mp, String action) Determines whether the current user can take the specified action on the media package.AuthorizationService.removeAcl(MediaPackage mp, AclScope scope) Remove the XACML of the given scope.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.