Package org.dspace.app.rest.submit.step
Class ShowIdentifiersStep
- java.lang.Object
-
- org.dspace.app.rest.submit.AbstractProcessingStep
-
- org.dspace.app.rest.submit.step.ShowIdentifiersStep
-
- All Implemented Interfaces:
DataProcessingStep,RestProcessingStep
public class ShowIdentifiersStep extends AbstractProcessingStep
Submission processing step to return identifier data for use in the 'identifiers' submission section component in dspace-angular. For effective use, the "identifiers.submission.register" configuration property in identifiers.cfg should be enabled so that the WorkspaceItemService will register identifiers for the new item at the time of creation, and the DOI consumer will allow workspace and workflow items to have their DOIs minted or deleted as per item filter results. This method can be extended to allow (if authorised) an operation to be sent which will override an item filter and force reservation of an identifier.- Author:
- Kim Shepherd
-
-
Field Summary
Fields Modifier and Type Field Description protected ContentServiceFactorycontentServiceFactoryprotected HandleServicehandleService-
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, SHOW_IDENTIFIERS_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 ShowIdentifiersStep()
-
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)This step is currently just for displaying identifiers and does not take additional patch operationsDataIdentifiersgetData(SubmissionService submissionService, InProgressSubmission obj, SubmissionStepConfig config)Override DataProcessing.getData, return data identifiers from getIdentifierData()-
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
-
-
-
-
Field Detail
-
handleService
@Autowired(required=true) protected HandleService handleService
-
contentServiceFactory
@Autowired(required=true) protected ContentServiceFactory contentServiceFactory
-
-
Method Detail
-
getData
public DataIdentifiers getData(SubmissionService submissionService, InProgressSubmission obj, SubmissionStepConfig config) throws Exception
Override DataProcessing.getData, return data identifiers from getIdentifierData()- Parameters:
submissionService- The submission serviceobj- The workspace or workflow itemconfig- 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, javax.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 contextcurrentRequest- the http requestsource- the in progress submissionop- the json patch operationstepConf-- Throws:
Exception
-
-