Package org.dspace.app.rest.submit.step
Class AccessConditionStep
- java.lang.Object
-
- org.dspace.app.rest.submit.AbstractProcessingStep
-
- org.dspace.app.rest.submit.step.AccessConditionStep
-
- All Implemented Interfaces:
DataProcessingStep,RestProcessingStep
public class AccessConditionStep extends AbstractProcessingStep
AccessCondition step for DSpace Spring Rest. Expose information about the resource policies for the in progress submission.- Author:
- Mykhaylo Boychuk (mykhaylo.boychuk@4science.com)
-
-
Field Summary
-
Fields inherited from class org.dspace.app.rest.submit.AbstractProcessingStep
authorizeService, bitstreamFormatService, bitstreamService, bundleService, collectionService, configurationService, itemService, metadataFieldService, workspaceItemService
-
Fields inherited from interface org.dspace.app.rest.submit.DataProcessingStep
ACCESS_CONDITION_POLICY_STEP_OPERATION_ENTRY, ACCESS_CONDITION_STEP_OPERATION_ENTRY, CCLICENSE_STEP_OPERATION_ENTRY, 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 AccessConditionStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoPatchProcessing(Context context, javax.servlet.http.HttpServletRequest currentRequest, InProgressSubmission source, Operation op, SubmissionStepConfig stepConf)Method to react to a patch request against the step managed section dataDataAccessConditiongetData(SubmissionService submissionService, InProgressSubmission obj, SubmissionStepConfig config)Method to expose data in the a dedicated section of the in progress submission.-
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.DataProcessingStep
validate
-
-
-
-
Method Detail
-
getData
public DataAccessCondition getData(SubmissionService submissionService, InProgressSubmission obj, SubmissionStepConfig config) throws Exception
Description copied from interface:DataProcessingStepMethod 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 serviceobj- the in progress submissionconfig- the submission step configuration- Returns:
- the serializable object to include in the step generated section
- Throws:
Exception
-
doPatchProcessing
public void doPatchProcessing(Context context, javax.servlet.http.HttpServletRequest currentRequest, InProgressSubmission source, Operation op, SubmissionStepConfig stepConf) throws Exception
Description copied from interface:DataProcessingStepMethod to react to a patch request against the step managed section data- Parameters:
context- the DSpace contextcurrentRequest- the http requestsource- the in progress submissionop- the json patch operation- Throws:
Exception
-
-