Class DuplicateDetectionStep

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

public class DuplicateDetectionStep extends AbstractProcessingStep
Submission processing step to detect potential duplicates of this item and list them so that the submitter can choose to cancel or continue with their submission
Author:
Kim Shepherd
  • Field Details

  • Constructor Details

    • DuplicateDetectionStep

      public DuplicateDetectionStep()
  • Method Details

    • getData

      public DataDuplicateDetection getData(SubmissionService submissionService, InProgressSubmission obj, SubmissionStepConfig config) throws Exception
      Override DataProcessing.getData, return a list of potential duplicates
      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