Package org.dspace.app.rest.submit.step
Class CollectionStep
- java.lang.Object
-
- org.dspace.submit.AbstractProcessingStep
-
- org.dspace.submit.step.SelectCollectionStep
-
- org.dspace.app.rest.submit.step.CollectionStep
-
- All Implemented Interfaces:
AbstractRestProcessingStep,ListenerProcessingStep
public class CollectionStep extends SelectCollectionStep implements AbstractRestProcessingStep
Collection step for DSpace Spring Rest. Expose the collection information of the in progress submission.- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
-
Field Summary
-
Fields inherited from class org.dspace.submit.AbstractProcessingStep
authorizeService, bitstreamFormatService, bitstreamService, bteBatchImportService, bundleService, collectionService, configurationService, itemService, metadataFieldService, workspaceItemService
-
Fields inherited from interface org.dspace.app.rest.submit.AbstractRestProcessingStep
COLLECTION_STEP_OPERATION_ENTRY, DESCRIBE_STEP_METADATA_OPERATION_ENTRY, LICENSE_STEP_OPERATION_ENTRY, UPLOAD_STEP_ACCESSCONDITIONS_OPERATION_ENTRY, UPLOAD_STEP_METADATA_OPERATION_ENTRY, UPLOAD_STEP_METADATA_PATH, UPLOAD_STEP_MOVE_OPERATION_ENTRY, UPLOAD_STEP_REMOVE_OPERATION_ENTRY
-
-
Constructor Summary
Constructors Constructor Description CollectionStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoPatchProcessing(Context context, Request currentRequest, InProgressSubmission source, Operation op)Method to react to a patch request against the step managed section dataUUIDgetData(SubmissionService submissionService, InProgressSubmission obj, SubmissionStepConfig config)Method to expose data in the a dedicated section of the in progress submission.-
Methods inherited from class org.dspace.submit.step.SelectCollectionStep
doPostProcessing, doPreProcessing
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.rest.submit.AbstractRestProcessingStep
validate
-
Methods inherited from interface org.dspace.app.rest.submit.ListenerProcessingStep
doPostProcessing, doPreProcessing
-
-
-
-
Method Detail
-
getData
public UUID getData(SubmissionService submissionService, InProgressSubmission obj, SubmissionStepConfig config)
Description copied from interface:AbstractRestProcessingStepMethod 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:
getDatain interfaceAbstractRestProcessingStep- Parameters:
submissionService- the submission serviceobj- the in progress submissionconfig- the submission step configuration- Returns:
- the serializable object to include in the step generated section
-
doPatchProcessing
public void doPatchProcessing(Context context, Request currentRequest, InProgressSubmission source, Operation op) throws Exception
Description copied from interface:AbstractRestProcessingStepMethod to react to a patch request against the step managed section data- Specified by:
doPatchProcessingin interfaceAbstractRestProcessingStep- Parameters:
context- the DSpace contextcurrentRequest- the http requestsource- the in progress submissionop- the json patch operation- Throws:
Exception
-
-