Interface CurationTask

All Known Implementing Classes:
AbstractCurationTask, AbstractTranslator, BasicLinkChecker, BitstreamsIntoMetadata, CitationPage, ClamScan, CreateMissingIdentifiers, MetadataValueLinkChecker, MetadataWebService, MicrosoftTranslator, NoOpCurationTask, ProfileFormats, PropertyParameterTestingTask, RegisterDOI, RequiredMetadata, WorkflowReportTest

public interface CurationTask
CurationTask describes a rather generic ability to perform an operation upon a DSpace object.
Author:
richardrodgers
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    init(Curator curator, String taskId)
    Initialize task - parameters inform the task of it's invoking curator.
    int
    Perform the curation task upon passed DSO
    int
    Perform the curation task for passed id
  • Method Details

    • init

      void init(Curator curator, String taskId) throws IOException
      Initialize task - parameters inform the task of it's invoking curator. Since the curator can provide services to the task, this represents curation DI.
      Parameters:
      curator - the Curator controlling this task
      taskId - identifier task should use in invoking services
      Throws:
      IOException - if error
    • perform

      int perform(DSpaceObject dso) throws IOException
      Perform the curation task upon passed DSO
      Parameters:
      dso - the DSpace object
      Returns:
      status code
      Throws:
      IOException - if error
    • perform

      int perform(Context ctx, String id) throws IOException
      Perform the curation task for passed id
      Parameters:
      ctx - DSpace context object
      id - persistent ID for DSpace object
      Returns:
      status code
      Throws:
      IOException - if error