public abstract class AbstractRepository extends java.lang.Object implements Repository
| Constructor and Description |
|---|
AbstractRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteDigitalObject(java.lang.String handle)
Deletes a digital object from the repository.
|
java.lang.String |
getHandle()
Returns the handle of the repository.
|
DigitalObject |
getOrCreateDigitalObject(java.lang.String handle)
Returns the digital object with the given identifier from this repository, which is created if it does not exist.
|
CloseableIterator<java.lang.String> |
listHandles()
Provides a CloseableIterator view of the identifiers for digital objects accessible through this repository.
|
CloseableIterator<DigitalObject> |
listObjects()
Provides a CloseableIterator view of the digital objects accessible through this repository.
|
CloseableIterator<DigitalObject> |
search(Query query)
Provides a CloseableIterator view of the digital objects accessible through this repository under search bounds defined in the Query object with default parameters.
|
CloseableIterator<DigitalObject> |
search(Query query,
QueryParams queryParams)
Provides a CloseableIterator view of the digital objects accessible through this repository under search bounds defined in the Query object and the parameters defined in the QueryParams object.
|
CloseableIterator<DigitalObject> |
search(java.lang.String query)
Deprecated.
|
CloseableIterator<java.lang.String> |
searchHandles(Query query)
Provides a CloseableIterator view of the digital objects handles accessible through this repository under search bounds defined in the Query object with default parameters.
|
CloseableIterator<java.lang.String> |
searchHandles(Query query,
QueryParams queryParams)
Provides a CloseableIterator view of the digital objects handles accessible through this repository under search bounds defined in the Query object and the parameters defined in the QueryParams object.
|
CloseableIterator<java.lang.String> |
searchHandles(java.lang.String query)
Deprecated.
|
CloseableIterator<java.util.Map<java.lang.String,java.lang.String>> |
searchMapping(java.lang.String query)
Deprecated.
|
boolean |
verifyDigitalObject(java.lang.String handle)
Verifies whether a digital object with the given identifier can be accessed via this repository.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, createDigitalObject, getDigitalObjectpublic java.lang.String getHandle()
Repositorynull for local repositories.getHandle in interface Repositorynull if not available.public boolean verifyDigitalObject(java.lang.String handle)
throws RepositoryException
RepositoryverifyDigitalObject in interface Repositoryhandle - an identifier for a digital objectRepositoryExceptionpublic DigitalObject getOrCreateDigitalObject(java.lang.String handle) throws RepositoryException
RepositorygetOrCreateDigitalObject in interface Repositoryhandle - the identifier for the digital objectRepositoryExceptionpublic void deleteDigitalObject(java.lang.String handle)
throws RepositoryException
RepositorydeleteDigitalObject in interface Repositoryhandle - the identifier for the digital objectRepositoryExceptionpublic CloseableIterator<java.lang.String> listHandles() throws RepositoryException
RepositorylistHandles in interface RepositoryRepositoryExceptionpublic CloseableIterator<DigitalObject> listObjects() throws RepositoryException
RepositorylistObjects in interface RepositoryRepositoryExceptionpublic CloseableIterator<DigitalObject> search(Query query, QueryParams queryParams) throws RepositoryException
Repositorysearch in interface Repositoryquery - the query to performqueryParams - parameters for the query, or null for default parametersQueryResults.RepositoryExceptionpublic CloseableIterator<java.lang.String> searchHandles(Query query, QueryParams queryParams) throws RepositoryException
RepositorysearchHandles in interface Repositoryquery - the query to performqueryParams - parameters for the query, or null for default parametersQueryResults.RepositoryException@Deprecated public CloseableIterator<DigitalObject> search(java.lang.String query) throws RepositoryException
search in interface RepositoryRepositoryException@Deprecated public CloseableIterator<java.lang.String> searchHandles(java.lang.String query) throws RepositoryException
searchHandles in interface RepositoryRepositoryExceptionpublic CloseableIterator<DigitalObject> search(Query query) throws RepositoryException
Repositorysearch in interface Repositoryquery - the query to performQueryResults.RepositoryExceptionpublic CloseableIterator<java.lang.String> searchHandles(Query query) throws RepositoryException
RepositorysearchHandles in interface Repositoryquery - the query to performQueryResults.RepositoryException@Deprecated public CloseableIterator<java.util.Map<java.lang.String,java.lang.String>> searchMapping(java.lang.String query) throws RepositoryException
searchMapping in interface RepositoryRepositoryException