Class TagByDublinCoreTermWOH
- java.lang.Object
-
- org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
-
- org.opencastproject.workflow.handler.workflow.ResumableWorkflowOperationHandlerBase
-
- org.opencastproject.workflow.handler.workflow.TagByDublinCoreTermWOH
-
- All Implemented Interfaces:
org.opencastproject.workflow.api.ResumableWorkflowOperationHandler,org.opencastproject.workflow.api.WorkflowOperationHandler
public class TagByDublinCoreTermWOH extends ResumableWorkflowOperationHandlerBase
Take look in specified catalog for specified term, if the value matches the specified value add the target-tags
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOPY_PROPERTYName of the configuration option that provides the copy boolean we are looking forstatic StringDCCATALOG_PROPERTYName of the configuration option that provides the catalog to examinestatic StringDCTERM_PROPERTYName of the configuration option that provides Dublin Core term/elementstatic StringDEFAULT_VALUE_PROPERTYName of the configuration option that provides term's default value if not presentstatic StringMATCH_VALUE_PROPERTYName of the configuration option that provides value to matchstatic 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_FLAVOR_PROPERTYName of the configuration option that provides the target flavors we are looking forstatic StringTARGET_TAGS_PROPERTYName of the configuration option that provides the target tags we are looking for-
Fields inherited from class org.opencastproject.workflow.handler.workflow.ResumableWorkflowOperationHandlerBase
componentContext, holdActionTitle, staticResource, staticResourceRegistration
-
-
Constructor Summary
Constructors Constructor Description TagByDublinCoreTermWOH()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetWorkspace(org.opencastproject.workspace.api.Workspace workspace)Callback for declarative services configuration that will introduce us to the local workspace service.org.opencastproject.workflow.api.WorkflowOperationResultstart(org.opencastproject.workflow.api.WorkflowInstance workflowInstance, org.opencastproject.job.api.JobContext context)This default implementation will put the workflow into the hold state.-
Methods inherited from class org.opencastproject.workflow.handler.workflow.ResumableWorkflowOperationHandlerBase
activate, deactivate, getHoldActionTitle, getHoldStateUserInterfaceURL, isAlwaysPause, registerHoldStateUserInterface, resume, setHoldActionTitle
-
Methods inherited from class org.opencastproject.workflow.api.AbstractWorkflowOperationHandler
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
-
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_FLAVOR_PROPERTY
public static final String TARGET_FLAVOR_PROPERTY
Name of the configuration option that provides the target flavors 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 are looking for- See Also:
- Constant Field Values
-
DCCATALOG_PROPERTY
public static final String DCCATALOG_PROPERTY
Name of the configuration option that provides the catalog to examine- See Also:
- Constant Field Values
-
DCTERM_PROPERTY
public static final String DCTERM_PROPERTY
Name of the configuration option that provides Dublin Core term/element- See Also:
- Constant Field Values
-
DEFAULT_VALUE_PROPERTY
public static final String DEFAULT_VALUE_PROPERTY
Name of the configuration option that provides term's default value if not present- See Also:
- Constant Field Values
-
MATCH_VALUE_PROPERTY
public static final String MATCH_VALUE_PROPERTY
Name of the configuration option that provides value to match- See Also:
- Constant Field Values
-
COPY_PROPERTY
public static final String COPY_PROPERTY
Name of the configuration option that provides the copy boolean we are looking for- See Also:
- Constant Field Values
-
-
Method Detail
-
setWorkspace
public void setWorkspace(org.opencastproject.workspace.api.Workspace workspace)
Callback for declarative services configuration that will introduce us to the local workspace service. Implementation assumes that the reference is configured as being static.- Parameters:
workspace- an instance of 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.WorkflowOperationExceptionThis default implementation will put the workflow into the hold state.- Specified by:
startin interfaceorg.opencastproject.workflow.api.WorkflowOperationHandler- Overrides:
startin classResumableWorkflowOperationHandlerBase- Throws:
org.opencastproject.workflow.api.WorkflowOperationException- See Also:
WorkflowOperationHandler.start(org.opencastproject.workflow.api.WorkflowInstance, JobContext)
-
-