public class PubmedImportMetadataSourceServiceImpl extends AbstractImportMetadataSourceService<org.apache.axiom.om.OMElement>
error, exceptionHandlersMap, interRequestTime, lastRequest, lock, maxRetry, operationId, retry, warning| Constructor and Description |
|---|
PubmedImportMetadataSourceServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Collection<ImportRecord> |
findMatchingRecords(Item item)
Finds records based on an item
|
Collection<ImportRecord> |
findMatchingRecords(Query query)
Finds records based on query object.
|
String |
getBaseAddress()
Return the baseAddress set to this object
|
String |
getImportSource()
The string that identifies this import implementation.
|
int |
getNbRecords(Query query)
Find the number of records matching a query;
|
int |
getNbRecords(String query)
Find the number of records matching a query;
|
ImportRecord |
getRecord(Query query)
Get a single record from the source.
|
ImportRecord |
getRecord(String id)
Get a single record from the source.
|
Collection<ImportRecord> |
getRecords(Query query)
Find records based on a object query.
|
Collection<ImportRecord> |
getRecords(String query,
int start,
int count)
Find the number of records matching a string query.
|
void |
init()
Initialize the class
|
void |
setBaseAddress(String baseAddress)
Set the baseAddress to this object
|
getGenerateQueryForItem, getMetadataFieldMapping, setGenerateQueryForItem, setMetadataFieldMapping, transformSourceRecordsgetError, getExceptionHandler, getMaxRetry, getOperationId, getRetry, getWarning, handleException, initExceptionHandlers, retry, setError, setMaxRetry, setWarning, throwSourceException, throwSourceExceptionHookpublic PubmedImportMetadataSourceServiceImpl()
public int getNbRecords(String query) throws MetadataSourceException
query - a query string to base the search on.MetadataSourceExceptionpublic int getNbRecords(Query query) throws MetadataSourceException
query - a query object to base the search on.MetadataSourceExceptionpublic Collection<ImportRecord> getRecords(String query, int start, int count) throws MetadataSourceException
query - a query string to base the search on.start - offset to start atcount - number of records to retrieve.MetadataSourceExceptionpublic Collection<ImportRecord> getRecords(Query query) throws MetadataSourceException
query - a query object to base the search on.MetadataSourceExceptionpublic ImportRecord getRecord(String id) throws MetadataSourceException
id - identifier for the recordMetadataSourceExceptionpublic ImportRecord getRecord(Query query) throws MetadataSourceException
query - a query matching a single recordMetadataSourceExceptionpublic String getImportSource()
public Collection<ImportRecord> findMatchingRecords(Item item) throws MetadataSourceException
item - an item to base the search onMetadataSourceException - if the underlying methods throw any exception.public Collection<ImportRecord> findMatchingRecords(Query query) throws MetadataSourceException
query - a query object to base the search on.MetadataSourceExceptionpublic void init()
throws Exception
init in class AbstractRemoteMetadataSourceExceptionpublic String getBaseAddress()
public void setBaseAddress(String baseAddress)
baseAddress - The String object that represents the baseAddress of this objectCopyright © 2016 DuraSpace. All rights reserved.