Class AddCatalogWorkflowOperationHandler
- java.lang.Object
-
- org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
-
- org.opencastproject.workflow.handler.workflow.AddCatalogWorkflowOperationHandler
-
- All Implemented Interfaces:
org.opencastproject.workflow.api.WorkflowOperationHandler
public class AddCatalogWorkflowOperationHandler extends org.opencastproject.workflow.api.AbstractWorkflowOperationHandlerThis WorkflowOperationHandler adds an configurable catalog to the MediaPackage. It supports the following workflow configuration keys: catalog-path the path of the catalog to add; catalog-flavor the flavor of the catalog, used to identify catalogs of the same type; catalog-name name of the catalog in the workspace; catalog-tags list of comma seperated catalog tags; catalog-type-collision-behavior the action to perform, if an catalog of the same flavor already exists, three options are supported: 'skip' the adding of the catalog, 'fail' the workflow operation or 'keep' the new catalog, resulting in two or more catalogs of the same type coexisting
-
-
Constructor Summary
Constructors Constructor Description AddCatalogWorkflowOperationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetWorkspace(org.opencastproject.workspace.api.Workspace workspace)Sets the workspace to use.org.opencastproject.workflow.api.WorkflowOperationResultstart(org.opencastproject.workflow.api.WorkflowInstance wInst, 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, hashCode, setJobBarrierPollingInterval, setServiceRegistry, skip, toString, waitForStatus, waitForStatus
-
-
-
-
Method Detail
-
setWorkspace
public void setWorkspace(org.opencastproject.workspace.api.Workspace workspace)
Sets the workspace to use.- Parameters:
workspace- the workspace
-
start
public org.opencastproject.workflow.api.WorkflowOperationResult start(org.opencastproject.workflow.api.WorkflowInstance wInst, 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
-
-