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, verifyDigitalObjectpublic HighLevelRepository(Repository originalRepository)
public HighLevelDigitalObject createDigitalObject(java.lang.String handle) throws CreationException, RepositoryException
Repositorynull 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 RepositorycreateDigitalObject in class RepositoryWrapperhandle - 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 repositoryRepositoryExceptionpublic HighLevelDigitalObject getDigitalObject(java.lang.String handle) throws RepositoryException
RepositorygetDigitalObject in interface RepositorygetDigitalObject in class RepositoryWrapperhandle - the identifier for the digital objectRepositoryExceptionpublic HighLevelDigitalObject getOrCreateDigitalObject(java.lang.String handle) throws RepositoryException
RepositorygetOrCreateDigitalObject in interface RepositorygetOrCreateDigitalObject in class RepositoryWrapperhandle - the identifier for the digital objectRepositoryException