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
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
FieldsFields inherited from class org.dspace.app.rest.submit.AbstractProcessingStep
authorizeService, bitstreamFormatService, bitstreamService, bundleService, coarNotifySubmissionService, collectionService, configurationService, itemService, metadataFieldService, workspaceItemServiceFields inherited from interface org.dspace.app.rest.submit.DataProcessingStep
ACCESS_CONDITION_POLICY_STEP_OPERATION_ENTRY, ACCESS_CONDITION_STEP_OPERATION_ENTRY, CCLICENSE_STEP_OPERATION_ENTRY, COARNOTIFY_STEP_PATH, COLLECTION_STEP_OPERATION_ENTRY, DESCRIBE_STEP_METADATA_OPERATION_ENTRY, LICENSE_STEP_OPERATION_ENTRY, PRIMARY_FLAG_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 -
Method Summary
Modifier and TypeMethodDescriptionvoiddoPatchProcessing(Context context, jakarta.servlet.http.HttpServletRequest currentRequest, InProgressSubmission source, Operation op, SubmissionStepConfig stepConf) This step is currently just for displaying identifiers and does not take additional patch operationsgetData(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, waitMethods inherited from interface org.dspace.app.rest.submit.DataProcessingStep
validate
-
Field Details
-
handleService
-
contentServiceFactory
-
-
Constructor Details
-
ShowIdentifiersStep
public ShowIdentifiersStep()
-
-
Method Details
-
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, jakarta.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
-