Class AssetManagerSnapshotWorkflowOperationHandler
java.lang.Object
org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
org.opencastproject.workflow.handler.assetmanager.AssetManagerSnapshotWorkflowOperationHandler
- All Implemented Interfaces:
WorkflowOperationHandler
Workflow operation for taking a snapshot of a media package.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
AbstractWorkflowOperationHandler.Configuration -
Field Summary
Fields inherited from class org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
asList, description, id, serviceRegistry, SOURCE_FLAVOR, SOURCE_FLAVORS, SOURCE_TAG, SOURCE_TAGS, TARGET_FLAVOR, TARGET_FLAVORS, TARGET_TAG, TARGET_TAGS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) Activates this component with its properties once all of the collaborating services have been setprotected MediaPackagegetMediaPackageForArchival(MediaPackage current, List<String> tags, List<MediaPackageElementFlavor> sourceFlavors) voidsetAssetManager(AssetManager assetManager) OSGi DIvoidsetServiceRegistry(ServiceRegistry serviceRegistry) Sets the service registry.start(WorkflowInstance wi, JobContext ctx) Runs the workflow operation on thisWorkflowInstance.Methods inherited from class org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
asList, cfgKeyMissing, createResult, createResult, createResult, createResult, destroy, equals, getCfg, getConfig, getConfig, getConfig, getDescription, getFileNameFromElements, getId, getOptConfig, getOptConfig, getTagsAndFlavors, hashCode, setJobBarrierPollingInterval, skip, toString, waitForStatus, waitForStatus
-
Constructor Details
-
AssetManagerSnapshotWorkflowOperationHandler
public AssetManagerSnapshotWorkflowOperationHandler()
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) Description copied from class:AbstractWorkflowOperationHandlerActivates this component with its properties once all of the collaborating services have been set- Overrides:
activatein classAbstractWorkflowOperationHandler- Parameters:
cc- The component's context, containing the properties used for configuration
-
setAssetManager
OSGi DI -
start
public WorkflowOperationResult start(WorkflowInstance wi, JobContext ctx) throws WorkflowOperationException Description copied from class:AbstractWorkflowOperationHandlerRuns the workflow operation on thisWorkflowInstance. If the execution fails for some reason, this must throw aWorkflowOperationExceptionin order to handle the problem gracefully. Runtime exceptions will cause the entire workflow instance to fail.- Specified by:
startin interfaceWorkflowOperationHandler- Specified by:
startin classAbstractWorkflowOperationHandler- Parameters:
wi- the workflow instancectx- the job context- Returns:
- the
WorkflowOperationResultcontaining a potentially modified MediaPackage and whether to put the workflow instance into a wait state. - Throws:
WorkflowOperationException- If the workflow operation fails to execute properly, and the default error handling should be invoked.- See Also:
-
getMediaPackageForArchival
protected MediaPackage getMediaPackageForArchival(MediaPackage current, List<String> tags, List<MediaPackageElementFlavor> sourceFlavors) throws MediaPackageException - Throws:
MediaPackageException
-
setServiceRegistry
Description copied from class:AbstractWorkflowOperationHandlerSets the service registry. This method is here as a convenience for developers that need the registry to do job waiting.- Overrides:
setServiceRegistryin classAbstractWorkflowOperationHandler- Parameters:
serviceRegistry- the service registry
-