Class AbstractImportMetadataSourceService<RecordType>

  • All Implemented Interfaces:
    MetadataSource
    Direct Known Subclasses:
    PubmedImportMetadataSourceServiceImpl

    public abstract class AbstractImportMetadataSourceService<RecordType>
    extends AbstractRemoteMetadataSource
    implements MetadataSource
    This class is a partial implementation of MetadataSource. It provides assistance with mapping metadata from source format to DSpace format. AbstractImportSourceService has a generic type set 'RecordType'. In the importer implementation this type set should be the class of the records received from the remote source's response.
    Author:
    Roeland Dillen (roeland at atmire dot com)
    • Constructor Detail

      • AbstractImportMetadataSourceService

        public AbstractImportMetadataSourceService()
    • Method Detail

      • setGenerateQueryForItem

        @Autowired
        public void setGenerateQueryForItem​(GenerateQueryService generateQueryForItem)
        Set the GenerateQueryService used to create a Query for a DSpace Item.
        Parameters:
        generateQueryForItem - the query generator to be used.
      • transformSourceRecords

        public ImportRecord transformSourceRecords​(RecordType recordType)
        Return an ImportRecord constructed from the results in a RecordType
        Parameters:
        recordType - The record type to retrieve the DCValueMapping from
        Returns:
        An ImportRecord, This is based on the results retrieved from the recordTypeMapping