Class AssetManagerItem
java.lang.Object
org.opencastproject.message.broker.api.assetmanager.AssetManagerItem
- All Implemented Interfaces:
Serializable,MessageItem
- Direct Known Subclasses:
AssetManagerItem.DeleteEpisode,AssetManagerItem.TakeSnapshot
@ParametersAreNonnullByDefault
public abstract class AssetManagerItem
extends Object
implements MessageItem, Serializable
Serializable class that represents all of the possible messages sent through an AssetManager queue.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA event that will be sent when all versions of a media package (aka the whole episode) have been deleted.static final classAn event for taking a snapshot of a media package.static enum -
Method Summary
Modifier and TypeMethodDescriptionadd(org.opencastproject.workspace.api.Workspace workspace, org.opencastproject.mediapackage.MediaPackage mp, org.opencastproject.security.api.AccessControlList acl, long version, Date date) abstract <A> Adecompose(Function<? super AssetManagerItem.TakeSnapshot, ? extends A> takeSnapshot, Function<? super AssetManagerItem.DeleteEpisode, ? extends A> deleteEpisode) static AssetManagerItemdeleteEpisode(String mediaPackageId, Date date) final DategetDate()final StringgetId()abstract AssetManagerItem.TypegetType()
-
Method Details
-
getType
-
decompose
public abstract <A> A decompose(Function<? super AssetManagerItem.TakeSnapshot, ? extends A> takeSnapshot, Function<? super AssetManagerItem.DeleteEpisode, ? extends A> deleteEpisode) -
getDate
-
getId
- Specified by:
getIdin interfaceMessageItem
-
add
public static AssetManagerItem.TakeSnapshot add(org.opencastproject.workspace.api.Workspace workspace, org.opencastproject.mediapackage.MediaPackage mp, org.opencastproject.security.api.AccessControlList acl, long version, Date date) - Parameters:
workspace- The workspacemp- The media package to update.acl- The access control list of the media package to update.version- The version of the media package.date- The modification date.- Returns:
- Builds a
AssetManagerItemfor taking a media package snapshot.
-
deleteEpisode
- Parameters:
mediaPackageId- The unique id of the media package to delete.date- The modification date.- Returns:
- Builds
AssetManagerItemfor deleting an episode from the asset manager.
-