Class PartialRetractEngageWorkflowOperationHandler
java.lang.Object
org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
org.opencastproject.workflow.handler.distribution.RetractEngageWorkflowOperationHandler
org.opencastproject.workflow.handler.distribution.PartialRetractEngageWorkflowOperationHandler
- All Implemented Interfaces:
WorkflowOperationHandler
- Direct Known Subclasses:
PartialRetractEngageAWSS3WorkflowOperationHandler
public class PartialRetractEngageWorkflowOperationHandler
extends RetractEngageWorkflowOperationHandler
Workflow operation for retracting parts of a media package from the engage player.
-
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.handler.distribution.RetractEngageWorkflowOperationHandler
downloadDistributionService, searchService, streamingDistributionServiceFields inherited from class org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
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 setvoidsetDownloadDistributionService(DownloadDistributionService downloadDistributionService) Callback for the OSGi declarative services configuration.voidsetSearchService(SearchService searchService) Callback for declarative services configuration that will introduce us to the search service.voidsetServiceRegistry(ServiceRegistry serviceRegistry) Sets the service registry.voidsetStreamingDistributionService(StreamingDistributionService streamingDistributionService) Callback for the OSGi declarative services configuration.start(WorkflowInstance workflowInstance, JobContext context) Runs the workflow operation on thisWorkflowInstance.Methods inherited from class org.opencastproject.workflow.handler.distribution.RetractEngageWorkflowOperationHandler
retractElementsMethods inherited from class org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
applyTargetTagsToElement, asList, createResult, createResult, createResult, createResult, destroy, equals, getCfg, getConfig, getConfig, getConfig, getDescription, getFileNameFromElements, getId, getOptConfig, getOptConfig, getTagsAndFlavors, hashCode, setJobBarrierPollingInterval, skip, toString, waitForStatus, waitForStatus
-
Constructor Details
-
PartialRetractEngageWorkflowOperationHandler
public PartialRetractEngageWorkflowOperationHandler()
-
-
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 classRetractEngageWorkflowOperationHandler- Parameters:
cc- The component's context, containing the properties used for configuration
-
start
public WorkflowOperationResult start(WorkflowInstance workflowInstance, JobContext context) throws WorkflowOperationException Runs 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- Overrides:
startin classRetractEngageWorkflowOperationHandler- Parameters:
workflowInstance- the workflow instancecontext- 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:
-
setDownloadDistributionService
Description copied from class:RetractEngageWorkflowOperationHandlerCallback for the OSGi declarative services configuration.- Overrides:
setDownloadDistributionServicein classRetractEngageWorkflowOperationHandler- Parameters:
downloadDistributionService- the download distribution service
-
setSearchService
Description copied from class:RetractEngageWorkflowOperationHandlerCallback for declarative services configuration that will introduce us to the search service. Implementation assumes that the reference is configured as being static.- Overrides:
setSearchServicein classRetractEngageWorkflowOperationHandler- Parameters:
searchService- an instance of the search service
-
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 classRetractEngageWorkflowOperationHandler- Parameters:
serviceRegistry- the service registry
-
setStreamingDistributionService
public void setStreamingDistributionService(StreamingDistributionService streamingDistributionService) Description copied from class:RetractEngageWorkflowOperationHandlerCallback for the OSGi declarative services configuration.- Overrides:
setStreamingDistributionServicein classRetractEngageWorkflowOperationHandler- Parameters:
streamingDistributionService- the streaming distribution service
-