Interface DataProcessingStep

    • Method Detail

      • getData

        <T extends Serializable> T getData​(SubmissionService submissionService,
                                           org.dspace.content.InProgressSubmission obj,
                                           org.dspace.app.util.SubmissionStepConfig config)
                                    throws Exception
        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
      • validate

        default List<ErrorRest> validate​(SubmissionService submissionService,
                                         org.dspace.content.InProgressSubmission obj,
                                         org.dspace.app.util.SubmissionStepConfig config)
                                  throws Exception
        The method will expose the list of validation errors identified by the step. The default implementation will found a Validation spring bean in the context with the same name that the step id
        Parameters:
        submissionService -
        obj -
        config -
        Returns:
        Throws:
        Exception
      • doPatchProcessing

        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
        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