public class HighLevelRepository extends RepositoryWrapper
Constructor and Description |
---|
HighLevelRepository(Repository originalRepository) |
Modifier and Type | Method and Description |
---|---|
HighLevelDigitalObject |
createDigitalObject(java.lang.String handle)
Creates a new digital object with the given identifier in this repository.
|
HighLevelDigitalObject |
getDigitalObject(java.lang.String handle)
Returns the digital object with the given identifier from this repository.
|
HighLevelDigitalObject |
getOrCreateDigitalObject(java.lang.String handle)
Returns the digital object with the given identifier from this repository, which is created if it does not exist.
|
close, deleteDigitalObject, getHandle, listHandles, listObjects, search, search, search, searchHandles, searchHandles, searchHandles, searchMapping, verifyDigitalObject
public HighLevelRepository(Repository originalRepository)
public HighLevelDigitalObject createDigitalObject(java.lang.String handle) throws CreationException, RepositoryException
Repository
null
requests that the repository assign a new unique identifier;
this method will throw UnsupportedOperationException
if the given repository does not support that functionality.createDigitalObject
in interface Repository
createDigitalObject
in class RepositoryWrapper
handle
- the identifier for the new digital object, or null
to request that the repository assign a new unique identifier.CreationException
- if an object with the given identifier already exists within the repositoryRepositoryException
public HighLevelDigitalObject getDigitalObject(java.lang.String handle) throws RepositoryException
Repository
getDigitalObject
in interface Repository
getDigitalObject
in class RepositoryWrapper
handle
- the identifier for the digital objectRepositoryException
public HighLevelDigitalObject getOrCreateDigitalObject(java.lang.String handle) throws RepositoryException
Repository
getOrCreateDigitalObject
in interface Repository
getOrCreateDigitalObject
in class RepositoryWrapper
handle
- the identifier for the digital objectRepositoryException