Package org.dspace.app.rest.submit
Interface UploadableStep
- All Superinterfaces:
RestProcessingStep
- All Known Implementing Classes:
ExtractMetadataStep,UploadStep
The interface for submission Steps that need to deal with file upload
- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it), Andrea Bollini (andrea.bollini at 4science.it)
-
Method Summary
Modifier and TypeMethodDescriptionupload(Context context, SubmissionService submissionService, SubmissionStepConfig stepConfig, InProgressSubmission wsi, MultipartFile file) The method to implement to support upload of a file in the submission section (aka panel / step)
-
Method Details
-
upload
ErrorRest upload(Context context, SubmissionService submissionService, SubmissionStepConfig stepConfig, InProgressSubmission wsi, MultipartFile file) throws IOException The method to implement to support upload of a file in the submission section (aka panel / step)- Parameters:
context- 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 mimetype- Returns:
- the encountered error if any
- Throws:
IOException
-