Package org.dspace.app.rest.submit.step
Class ExtractMetadataStep
java.lang.Object
org.dspace.app.rest.submit.step.ExtractMetadataStep
- All Implemented Interfaces:
ListenerProcessingStep,RestProcessingStep,UploadableStep
This submission step allows to extract metadata from an uploaded file and/or
use provided identifiers/metadata to further enrich a submission.
The processing of the file is delegated to the Import Service (see
ImportService that can be extended with Data Provider specialized by
format (i.e. a Grobid extractor to get data from a PDF file, an extractor to
get data from bibliographic file such as BibTeX, etc)
Some metadata are monitored by listener (see MetadataListener and when
changed the are used to generate an identifier that is used to query the
External Data Provider associated with the specific listener- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it), Andrea Bollini (andrea.bollini at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoPostProcessing(Context context, InProgressSubmission wsi) voiddoPreProcessing(Context context, InProgressSubmission wsi) upload(Context context, SubmissionService submissionService, SubmissionStepConfig stepConfig, InProgressSubmission wsi, MultipartFile multipartFile) The method to implement to support upload of a file in the submission section (aka panel / step)
-
Constructor Details
-
ExtractMetadataStep
public ExtractMetadataStep()
-
-
Method Details
-
doPreProcessing
- Specified by:
doPreProcessingin interfaceListenerProcessingStep
-
doPostProcessing
- Specified by:
doPostProcessingin interfaceListenerProcessingStep
-
upload
public ErrorRest upload(Context context, SubmissionService submissionService, SubmissionStepConfig stepConfig, InProgressSubmission wsi, MultipartFile multipartFile) throws IOException Description copied from interface:UploadableStepThe method to implement to support upload of a file in the submission section (aka panel / step)- Specified by:
uploadin interfaceUploadableStep- Parameters:
context- the dspace contextsubmissionService- the submission servicestepConfig- the configuration of the submission sectionwsi- the inprogress submissionmultipartFile- 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
-