Class SherpaPolicyStep

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

public class SherpaPolicyStep extends AbstractProcessingStep
SherpaPolicy step for DSpace Spring Rest. Expose information about the Sherpa policies for the in progress submission.
Author:
Mykhaylo Boychuk (mykhaylo.boychuk at 4science.com)
  • Field Details

  • Constructor Details

    • SherpaPolicyStep

      public SherpaPolicyStep()
  • Method Details

    • getData

      public SherpaPolicy getData(SubmissionService submissionService, InProgressSubmission obj, SubmissionStepConfig config) throws Exception
      Description copied from interface: DataProcessingStep
      Method to expose data in the a dedicated section of the in progress submission. The step needs to return a serializable object that will be included in a section with the name (id) assigned to the step in the item-submission.xml file
      Parameters:
      submissionService - the submission service
      obj - the in progress submission
      config - the submission step configuration
      Returns:
      the serializable object to include in the step generated section
      Throws:
      Exception
    • doPatchProcessing

      public void doPatchProcessing(Context context, jakarta.servlet.http.HttpServletRequest currentRequest, InProgressSubmission source, Operation op, SubmissionStepConfig stepConf) throws Exception
      Description copied from interface: DataProcessingStep
      Method to react to a patch request against the step managed section data
      Parameters:
      context - the DSpace context
      currentRequest - the http request
      source - the in progress submission
      op - the json patch operation
      Throws:
      Exception