public interface MetadataSource
| Modifier and Type | Method and Description |
|---|---|
Collection<ImportRecord> |
findMatchingRecords(Item item)
Finds records based on an item
Delegates to one or more MetadataSource implementations based on the uri.
|
Collection<ImportRecord> |
findMatchingRecords(Query query)
Finds records based on query object.
|
String |
getImportSource()
The string that identifies this import implementation.
|
int |
getNbRecords(Query query)
Gets the number of records matching a query
|
int |
getNbRecords(String query)
Gets 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)
Gets a set of records matching a query.
|
int getNbRecords(String query) throws MetadataSourceException
query - the query in string formatMetadataSourceExceptionint getNbRecords(Query query) throws MetadataSourceException
query - the query objectMetadataSourceExceptionCollection<ImportRecord> getRecords(String query, int start, int count) throws MetadataSourceException
query - the query. The query will generally be posted 'as is' to the sourcestart - offsetcount - page sizeMetadataSourceExceptionCollection<ImportRecord> getRecords(Query query) throws MetadataSourceException
query - a query object to base the search on.MetadataSourceExceptionImportRecord getRecord(String id) throws MetadataSourceException
id - identifier for the recordMetadataSourceExceptionImportRecord getRecord(Query query) throws MetadataSourceException
query - a query matching a single recordMetadataSourceExceptionString getImportSource()
Collection<ImportRecord> findMatchingRecords(Item item) throws MetadataSourceException
item - an item to base the search onMetadataSourceException - if the underlying imports throw any exception.Collection<ImportRecord> findMatchingRecords(Query query) throws MetadataSourceException
query - a query object to base the search on.MetadataSourceExceptionCopyright © 2022 LYRASIS. All rights reserved.