public interface DOManager extends RepositoryReader
| Modifier and Type | Method and Description |
|---|---|
FieldSearchResult |
findObjects(Context context,
String[] resultFields,
int maxResults,
FieldSearchQuery query) |
DOWriter |
getIngestWriter(boolean cachedObjectRequired,
Context context,
InputStream in,
String format,
String encoding,
String pid)
Creates a copy of the digital object given by the InputStream, with
either a new PID or the PID indicated by the InputStream.
|
String[] |
getNextPID(int numPIDs,
String namespace) |
String |
getRepositoryHash()
Get a "hash" of the repository.
|
DOWriter |
getWriter(boolean cachedObjectRequired,
Context context,
String pid)
Gets a DOWriter for an existing digital object.
|
String |
lookupDeploymentForCModel(String cModelPid,
String sDefPid) |
boolean |
objectExists(String pid) |
void |
releaseWriter(DOWriter writer)
Relinquishes control of a DOWriter back to the DOManager.
|
void |
reservePIDs(String[] pidList)
Reserve a series of PIDs so that they are never used for subsequent PID
generations.
|
FieldSearchResult |
resumeFindObjects(Context context,
String sessionToken) |
getReader, getServiceDefinitionReader, getServiceDeploymentReader, listObjectPIDsvoid releaseWriter(DOWriter writer) throws ServerException
When a DOManager provides a DOWriter, it creates a session lock. This is used to guarantee that there will never be concurrent changes to the same object. To release the session lock, a DOWriter user calls this method.
writer - an instance of a digital object writer.ServerException - if an error occurs in obtaining a writer.DOWriter getWriter(boolean cachedObjectRequired, Context context, String pid) throws ServerException
context - The context of this request.pid - The PID of the object.ServerException - If anything went wrong.DOWriter getIngestWriter(boolean cachedObjectRequired, Context context, InputStream in, String format, String encoding, String pid) throws ServerException
context - The context of this request.in - A serialization of the digital object.format - The format of the serialization.encoding - The character encoding.pid - Whether a new PID should be generated or the one indicated by the
InputStream should be used. If set to "new", a new pid will be generated.ServerException - If anything went wrong.boolean objectExists(String pid) throws StorageDeviceException
StorageDeviceExceptionFieldSearchResult findObjects(Context context, String[] resultFields, int maxResults, FieldSearchQuery query) throws ServerException
ServerExceptionFieldSearchResult resumeFindObjects(Context context, String sessionToken) throws ServerException
ServerExceptionString[] getNextPID(int numPIDs, String namespace) throws ServerException
ServerExceptionvoid reservePIDs(String[] pidList) throws ServerException
ServerExceptionString getRepositoryHash() throws ServerException
ServerExceptionCopyright © 2013 DuraSpace. All Rights Reserved.