Class ShowIdentifiersStep

java.lang.Object
org.dspace.app.rest.submit.AbstractProcessingStep
org.dspace.app.rest.submit.step.ShowIdentifiersStep
All Implemented Interfaces:
DataProcessingStep, RestProcessingStep

public class ShowIdentifiersStep extends AbstractProcessingStep
Submission processing step to return identifier data for use in the 'identifiers' submission section component in dspace-angular. For effective use, the "identifiers.submission.register" configuration property in identifiers.cfg should be enabled so that the WorkspaceItemService will register identifiers for the new item at the time of creation, and the DOI consumer will allow workspace and workflow items to have their DOIs minted or deleted as per item filter results. This method can be extended to allow (if authorised) an operation to be sent which will override an item filter and force reservation of an identifier.
Author:
Kim Shepherd
  • Field Details

  • Constructor Details

    • ShowIdentifiersStep

      public ShowIdentifiersStep()
  • Method Details

    • getData

      public DataIdentifiers getData(SubmissionService submissionService, InProgressSubmission obj, SubmissionStepConfig config) throws Exception
      Override DataProcessing.getData, return data identifiers from getIdentifierData()
      Parameters:
      submissionService - The submission service
      obj - The workspace or workflow item
      config - The submission step configuration
      Returns:
      A simple DataIdentifiers bean containing doi, handle and list of other identifiers
      Throws:
      Exception
    • doPatchProcessing

      public void doPatchProcessing(Context context, jakarta.servlet.http.HttpServletRequest currentRequest, InProgressSubmission source, Operation op, SubmissionStepConfig stepConf) throws Exception
      This step is currently just for displaying identifiers and does not take additional patch operations
      Parameters:
      context - the DSpace context
      currentRequest - the http request
      source - the in progress submission
      op - the json patch operation
      stepConf -
      Throws:
      Exception