Class CloneWorkflowOperationHandler

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

    public class CloneWorkflowOperationHandler
    extends org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
    Workflow operation handler for cloning tracks from a flavor
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.opencastproject.workflow.api.AbstractWorkflowOperationHandler

        org.opencastproject.workflow.api.AbstractWorkflowOperationHandler.Configuration
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String OPT_SOURCE_FLAVOR
      Configuration key for the \"source-flavor\" of the track to use as a source input
      static String OPT_SOURCE_TAGS
      Configuration key for the \"source-tag\" of the track to use as a source input
      static String OPT_TARGET_FLAVOR
      Configuration key for the target-flavor
      protected org.opencastproject.workspace.api.Workspace workspace
      The workspace reference
      • 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
      protected void setWorkspace​(org.opencastproject.workspace.api.Workspace workspace)
      Callback for the OSGi environment to set the workspace reference.
      org.opencastproject.workflow.api.WorkflowOperationResult start​(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

      • OPT_SOURCE_FLAVOR

        public static final String OPT_SOURCE_FLAVOR
        Configuration key for the \"source-flavor\" of the track to use as a source input
        See Also:
        Constant Field Values
      • OPT_SOURCE_TAGS

        public static final String OPT_SOURCE_TAGS
        Configuration key for the \"source-tag\" of the track to use as a source input
        See Also:
        Constant Field Values
      • OPT_TARGET_FLAVOR

        public static final String OPT_TARGET_FLAVOR
        Configuration key for the target-flavor
        See Also:
        Constant Field Values
      • workspace

        protected org.opencastproject.workspace.api.Workspace workspace
        The workspace reference
    • Constructor Detail

      • CloneWorkflowOperationHandler

        public CloneWorkflowOperationHandler()
    • Method Detail

      • setWorkspace

        protected void setWorkspace​(org.opencastproject.workspace.api.Workspace workspace)
        Callback for the OSGi environment to set the workspace reference.
        Parameters:
        workspace - the workspace
      • 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:
        start in interface org.opencastproject.workflow.api.WorkflowOperationHandler
        Specified by:
        start in class org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
        Throws:
        org.opencastproject.workflow.api.WorkflowOperationException