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
public class ExtractMetadataStep extends Object implements ListenerProcessingStep, 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 (seeImportServicethat 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 (seeMetadataListenerand 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 Constructor Description ExtractMetadataStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoPostProcessing(Context context, InProgressSubmission wsi)voiddoPreProcessing(Context context, InProgressSubmission wsi)ErrorRestupload(Context context, SubmissionService submissionService, SubmissionStepConfig stepConfig, InProgressSubmission wsi, org.springframework.web.multipart.MultipartFile multipartFile)The method to implement to support upload of a file in the submission section (aka panel / step)
-
-
-
Method Detail
-
doPreProcessing
public void doPreProcessing(Context context, InProgressSubmission wsi)
- Specified by:
doPreProcessingin interfaceListenerProcessingStep
-
doPostProcessing
public void doPostProcessing(Context context, InProgressSubmission wsi)
- Specified by:
doPostProcessingin interfaceListenerProcessingStep
-
upload
public ErrorRest upload(Context context, SubmissionService submissionService, SubmissionStepConfig stepConfig, InProgressSubmission wsi, org.springframework.web.multipart.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
-
-