Class 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)
    • Constructor Detail

      • ExtractMetadataStep

        public ExtractMetadataStep()
    • 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: UploadableStep
        The method to implement to support upload of a file in the submission section (aka panel / step)
        Specified by:
        upload in interface UploadableStep
        Parameters:
        context - the dspace context
        submissionService - the submission service
        stepConfig - the configuration of the submission section
        wsi - the inprogress submission
        multipartFile - 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