Class CopyWorkflowOperationHandler

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

    public class CopyWorkflowOperationHandler
    extends org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
    Workflow operation handler for copying video data through NFS
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String OPT_SOURCE_FLAVORS
      Configuration key for the \"flavor\" of the track to use as a source input
      static String OPT_SOURCE_TAGS
      Configuration key for the \"tag\" of the track to use as a source input
      static String OPT_TARGET_DIRECTORY
      Configuration key for the directory where the file must be delivered
      static String OPT_TARGET_FILENAME
      Configuration key for the name of the target file
      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, hashCode, setJobBarrierPollingInterval, setServiceRegistry, skip, toString, waitForStatus, waitForStatus
    • Field Detail

      • OPT_SOURCE_TAGS

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

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

        public static final String OPT_TARGET_DIRECTORY
        Configuration key for the directory where the file must be delivered
        See Also:
        Constant Field Values
      • OPT_TARGET_FILENAME

        public static final String OPT_TARGET_FILENAME
        Configuration key for the name of the target file
        See Also:
        Constant Field Values
      • workspace

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

      • CopyWorkflowOperationHandler

        public CopyWorkflowOperationHandler()
    • 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