Class AddCatalogWorkflowOperationHandler

  • All Implemented Interfaces:
    org.opencastproject.workflow.api.WorkflowOperationHandler

    public class AddCatalogWorkflowOperationHandler
    extends org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
    This 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
    • Field Summary

      • Fields inherited from class org.opencastproject.workflow.api.AbstractWorkflowOperationHandler

        asList, description, id, serviceRegistry
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setWorkspace​(org.opencastproject.workspace.api.Workspace workspace)
      Sets the workspace to use.
      org.opencastproject.workflow.api.WorkflowOperationResult start​(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
    • Constructor Detail

      • AddCatalogWorkflowOperationHandler

        public AddCatalogWorkflowOperationHandler()
    • 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:
        start in interface org.opencastproject.workflow.api.WorkflowOperationHandler
        Specified by:
        start in class org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
        Throws:
        org.opencastproject.workflow.api.WorkflowOperationException