public abstract class AbstractImportMetadataSourceService<RecordType> extends AbstractRemoteMetadataSource implements MetadataSource
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.error, exceptionHandlersMap, interRequestTime, lastRequest, lock, maxRetry, operationId, retry, warning| Constructor and Description |
|---|
AbstractImportMetadataSourceService() |
| Modifier and Type | Method and Description |
|---|---|
GenerateQueryService |
getGenerateQueryForItem()
Retrieve the
GenerateQueryService |
MetadataFieldMapping<RecordType,MetadataContributor<RecordType>> |
getMetadataFieldMapping()
Retrieve the MetadataFieldMapping containing the mapping between RecordType and Metadata
|
void |
setGenerateQueryForItem(GenerateQueryService generateQueryForItem)
|
void |
setMetadataFieldMapping(MetadataFieldMapping<RecordType,MetadataContributor<RecordType>> metadataFieldMapping)
Sets the MetadataFieldMapping to base the mapping of RecordType and
|
ImportRecord |
transformSourceRecords(RecordType recordType)
Return an ImportRecord constructed from the results in a RecordType
|
getError, getExceptionHandler, getMaxRetry, getOperationId, getRetry, getWarning, handleException, init, initExceptionHandlers, retry, setError, setMaxRetry, setWarning, throwSourceException, throwSourceExceptionHookclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindMatchingRecords, findMatchingRecords, getImportSource, getNbRecords, getNbRecords, getRecord, getRecord, getRecords, getRecordspublic GenerateQueryService getGenerateQueryForItem()
GenerateQueryService@Autowired public void setGenerateQueryForItem(GenerateQueryService generateQueryForItem)
generateQueryForItem - public MetadataFieldMapping<RecordType,MetadataContributor<RecordType>> getMetadataFieldMapping()
public void setMetadataFieldMapping(MetadataFieldMapping<RecordType,MetadataContributor<RecordType>> metadataFieldMapping)
metadataFieldMapping - public ImportRecord transformSourceRecords(RecordType recordType)
recordType - The recordtype to retrieve the DCValueMapping fromImportRecord, This is based on the results retrieved from the recordTypeMappingCopyright © 2016 DuraSpace. All rights reserved.