Package org.dspace.app.rest.submit.step
Class ExtractMetadataStep
- java.lang.Object
-
- org.dspace.submit.AbstractProcessingStep
-
- org.dspace.submit.step.MetadataStep
-
- org.dspace.submit.step.ExtractionStep
-
- org.dspace.app.rest.submit.step.ExtractMetadataStep
-
- All Implemented Interfaces:
ListenerProcessingStep,UploadableStep
public class ExtractMetadataStep extends ExtractionStep implements UploadableStep
This submission step allows to extract metadata from an uploaded file to enrich or initialize a submission. The processing is delegated to a list of extractor 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)- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
-
Field Summary
-
Fields inherited from class org.dspace.submit.step.MetadataStep
listeners, metadataMap
-
Fields inherited from class org.dspace.submit.AbstractProcessingStep
authorizeService, bitstreamFormatService, bitstreamService, bteBatchImportService, bundleService, collectionService, configurationService, itemService, metadataFieldService, workspaceItemService
-
-
Constructor Summary
Constructors Constructor Description ExtractMetadataStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)-
Methods inherited from class org.dspace.submit.step.MetadataStep
convertFields, doPostProcessing, doPreProcessing, enrichItem
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.rest.submit.ListenerProcessingStep
doPostProcessing, doPreProcessing
-
-
-
-
Method Detail
-
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
-
-