Class CollectionStep

  • All Implemented Interfaces:
    DataProcessingStep, RestProcessingStep

    public class CollectionStep
    extends Object
    implements DataProcessingStep
    Collection step for DSpace Spring Rest. Expose the collection information of the in progress submission.
    Author:
    Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
    • Constructor Detail

      • CollectionStep

        public CollectionStep()
    • Method Detail

      • getData

        public UUID getData​(SubmissionService submissionService,
                            org.dspace.content.InProgressSubmission obj,
                            org.dspace.app.util.SubmissionStepConfig config)
        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
        Specified by:
        getData in interface DataProcessingStep
        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
      • doPatchProcessing

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