Class DuplicateEventWorkflowOperationHandler
- java.lang.Object
-
- org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
-
- org.opencastproject.workflow.handler.workflow.DuplicateEventWorkflowOperationHandler
-
- All Implemented Interfaces:
org.opencastproject.workflow.api.WorkflowOperationHandler
public class DuplicateEventWorkflowOperationHandler extends org.opencastproject.workflow.api.AbstractWorkflowOperationHandlerThis WOH duplicates an input event.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOPY_NUMBER_PREFIX_PROPERTYThe prefix to use for the number which is appended to the original title of the event.protected org.opencastproject.distribution.api.DistributionServicedistributionServiceThe distribution servicestatic intMAX_NUMBER_DEFAULTThe default maximum number of events to create.static StringMAX_NUMBER_PROPERTYName of the configuration option that provides the maximum number of events to createstatic StringNO_SUFFIXWhether to actually use the number suffix (makes sense in conjunction with "set-series-id"static StringNUMBER_PROPERTYName of the configuration option that provides the number of events to createstatic StringPROPERTY_NAMESPACES_PROPERTYThe namespaces of the asset manager properties to copy.static StringSET_SERIES_IDThe series ID that should be set on the copies (if unset, uses the same series)static StringSOURCE_FLAVORS_PROPERTYName of the configuration option that provides the source flavors we are looking forstatic StringSOURCE_TAGS_PROPERTYName of the configuration option that provides the source tags we are looking forstatic StringTARGET_TAGS_PROPERTYName of the configuration option that provides the target tags we should applyprotected org.opencastproject.workspace.api.WorkspaceworkspaceThe workspace to use for retrieving and storing files.
-
Constructor Summary
Constructors Constructor Description DuplicateEventWorkflowOperationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetAssetManager(org.opencastproject.assetmanager.api.AssetManager assetManager)Callback for the OSGi declarative services configuration.voidsetAuthorizationService(org.opencastproject.security.api.AuthorizationService authorizationService)OSGi settervoidsetDistributionService(org.opencastproject.distribution.api.DistributionService distributionService)Callback for the OSGi declarative services configuration.voidsetSeriesService(org.opencastproject.series.api.SeriesService seriesService)OSGi settervoidsetWorkspace(org.opencastproject.workspace.api.Workspace workspace)Callback for the OSGi declarative services configuration.org.opencastproject.workflow.api.WorkflowOperationResultstart(org.opencastproject.workflow.api.WorkflowInstance workflowInstance, org.opencastproject.job.api.JobContext context)-
Methods inherited from class org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
activate, asList, cfgKeyMissing, createResult, createResult, createResult, createResult, destroy, equals, getCfg, getConfig, getConfig, getConfig, getDescription, getFileNameFromElements, getId, getOptConfig, getOptConfig, getTagsAndFlavors, hashCode, setJobBarrierPollingInterval, setServiceRegistry, skip, toString, waitForStatus, waitForStatus
-
-
-
-
Field Detail
-
SOURCE_FLAVORS_PROPERTY
public static final String SOURCE_FLAVORS_PROPERTY
Name of the configuration option that provides the source flavors we are looking for- See Also:
- Constant Field Values
-
SOURCE_TAGS_PROPERTY
public static final String SOURCE_TAGS_PROPERTY
Name of the configuration option that provides the source tags we are looking for- See Also:
- Constant Field Values
-
TARGET_TAGS_PROPERTY
public static final String TARGET_TAGS_PROPERTY
Name of the configuration option that provides the target tags we should apply- See Also:
- Constant Field Values
-
NUMBER_PROPERTY
public static final String NUMBER_PROPERTY
Name of the configuration option that provides the number of events to create- See Also:
- Constant Field Values
-
MAX_NUMBER_PROPERTY
public static final String MAX_NUMBER_PROPERTY
Name of the configuration option that provides the maximum number of events to create- See Also:
- Constant Field Values
-
NO_SUFFIX
public static final String NO_SUFFIX
Whether to actually use the number suffix (makes sense in conjunction with "set-series-id"- See Also:
- Constant Field Values
-
SET_SERIES_ID
public static final String SET_SERIES_ID
The series ID that should be set on the copies (if unset, uses the same series)- See Also:
- Constant Field Values
-
MAX_NUMBER_DEFAULT
public static final int MAX_NUMBER_DEFAULT
The default maximum number of events to create. Can be overridden.- See Also:
- Constant Field Values
-
PROPERTY_NAMESPACES_PROPERTY
public static final String PROPERTY_NAMESPACES_PROPERTY
The namespaces of the asset manager properties to copy.- See Also:
- Constant Field Values
-
COPY_NUMBER_PREFIX_PROPERTY
public static final String COPY_NUMBER_PREFIX_PROPERTY
The prefix to use for the number which is appended to the original title of the event.- See Also:
- Constant Field Values
-
workspace
protected org.opencastproject.workspace.api.Workspace workspace
The workspace to use for retrieving and storing files.
-
distributionService
protected org.opencastproject.distribution.api.DistributionService distributionService
The distribution service
-
-
Method Detail
-
setAuthorizationService
public void setAuthorizationService(org.opencastproject.security.api.AuthorizationService authorizationService)
OSGi setter- Parameters:
authorizationService-
-
setSeriesService
public void setSeriesService(org.opencastproject.series.api.SeriesService seriesService)
OSGi setter- Parameters:
seriesService-
-
setAssetManager
public void setAssetManager(org.opencastproject.assetmanager.api.AssetManager assetManager)
Callback for the OSGi declarative services configuration.- Parameters:
assetManager- the asset manager
-
setWorkspace
public void setWorkspace(org.opencastproject.workspace.api.Workspace workspace)
Callback for the OSGi declarative services configuration.- Parameters:
workspace- the workspace
-
setDistributionService
public void setDistributionService(org.opencastproject.distribution.api.DistributionService distributionService)
Callback for the OSGi declarative services configuration.- Parameters:
distributionService- the distributionService to set
-
start
public org.opencastproject.workflow.api.WorkflowOperationResult start(org.opencastproject.workflow.api.WorkflowInstance workflowInstance, org.opencastproject.job.api.JobContext context) throws org.opencastproject.workflow.api.WorkflowOperationException- Specified by:
startin interfaceorg.opencastproject.workflow.api.WorkflowOperationHandler- Specified by:
startin classorg.opencastproject.workflow.api.AbstractWorkflowOperationHandler- Throws:
org.opencastproject.workflow.api.WorkflowOperationException
-
-