public class UploadStep extends UploadStep implements AbstractRestProcessingStep, UploadableStep
authorizeService, bitstreamFormatService, bitstreamService, bteBatchImportService, bundleService, collectionService, configurationService, itemService, metadataFieldService, workspaceItemServiceCOLLECTION_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 and Description |
|---|
UploadStep() |
| Modifier and Type | Method and Description |
|---|---|
void |
doPatchProcessing(Context context,
Request currentRequest,
InProgressSubmission source,
Operation op)
Method to react to a patch request against the step managed section data
|
DataUpload |
getData(SubmissionService submissionService,
InProgressSubmission obj,
SubmissionStepConfig config)
Method to expose data in the a dedicated section of the in progress submission.
|
ErrorRest |
upload(Context context,
SubmissionService submissionService,
SubmissionStepConfig stepConfig,
InProgressSubmission wsi,
org.springframework.web.multipart.MultipartFile file)
The method to implement to support upload of a file in the submission section (aka panel / step)
|
doPostProcessing, doPreProcessingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidatedoPostProcessing, doPreProcessingpublic DataUpload getData(SubmissionService submissionService, InProgressSubmission obj, SubmissionStepConfig config) throws Exception
AbstractRestProcessingStepgetData in interface AbstractRestProcessingStepsubmissionService - the submission serviceobj - the in progress submissionconfig - the submission step configurationExceptionpublic void doPatchProcessing(Context context, Request currentRequest, InProgressSubmission source, Operation op) throws Exception
AbstractRestProcessingStepdoPatchProcessing in interface AbstractRestProcessingStepcontext - the DSpace contextcurrentRequest - the http requestsource - the in progress submissionop - the json patch operationExceptionpublic ErrorRest upload(Context context, SubmissionService submissionService, SubmissionStepConfig stepConfig, InProgressSubmission wsi, org.springframework.web.multipart.MultipartFile file)
UploadableStepupload in interface UploadableStepcontext - the dspace contextsubmissionService - the submission servicestepConfig - the configuration of the submission sectionwsi - the inprogress submissionfile - the multipart file, please note that it is a complex object containing additional information other
than just the binary such as the filename and the mimetypeCopyright © 2019 DuraSpace. All rights reserved.