Package org.dspace.workflow
Class CurationTaskConfig
java.lang.Object
org.dspace.workflow.CurationTaskConfig
Represent the mapping between collection workflows and curation tasks.
This mapping is configured in
[DSpace]/config/workflow-curation.xml.
Meant to be used as a singleton injected by a DI container such as Spring.
Adapted from org.dspace.curate.WorkflowCuratorServiceImpl.
- Author:
- mwood
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(@NotNull String name) Is this task set name defined?@NotNull TaskSetfindTaskSet(@NotNull String setName) Find a TaskSet by name.
-
Field Details
-
DEFAULT_TASKSET_NAME
Name of the TaskSet that matches an unconfiguredTaskSetname.- See Also:
-
-
Constructor Details
-
CurationTaskConfig
public CurationTaskConfig(InputStream configurationDocument) throws jakarta.xml.bind.JAXBException, SAXException, IOException - Parameters:
configurationDocument- the external representation of the workflow curation configuration.- Throws:
IOException- if the configuration file cannot be opened.jakarta.xml.bind.JAXBException- passed through: configuration syntax or semantic error.SAXException- passed through: configuration lexical error.
-
-
Method Details
-
findTaskSet
Find a TaskSet by name.- Parameters:
setName- name of the sought TaskSet: collection handle or "default".- Returns:
- the named TaskSet, or the default TaskSet if not found, or an empty TaskSet (zero steps) if there is no default either.
-
containsKey
Is this task set name defined?- Parameters:
name- name of the task set sought.- Returns:
- true if a set by that name is known.
-