Class CurationTaskConfig

java.lang.Object
org.dspace.workflow.CurationTaskConfig

public class CurationTaskConfig extends Object
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 Details

  • 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

      @NotNull public @NotNull TaskSet findTaskSet(@NotNull @NotNull String setName)
      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

      public boolean containsKey(@NotNull @NotNull String name)
      Is this task set name defined?
      Parameters:
      name - name of the task set sought.
      Returns:
      true if a set by that name is known.