|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DOManager
A RepositoryReader that provides facilities for creating and modifying objects within the repository, as well as a query facility.
| Method Summary | |
|---|---|
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)
|
| Methods inherited from interface org.fcrepo.server.storage.RepositoryReader |
|---|
getReader, getServiceDefinitionReader, getServiceDeploymentReader, listObjectPIDs |
| Method Detail |
|---|
void 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
StorageDeviceException
FieldSearchResult findObjects(Context context,
String[] resultFields,
int maxResults,
FieldSearchQuery query)
throws ServerException
ServerException
FieldSearchResult resumeFindObjects(Context context,
String sessionToken)
throws ServerException
ServerException
String[] getNextPID(int numPIDs,
String namespace)
throws ServerException
ServerException
String lookupDeploymentForCModel(String cModelPid,
String sDefPid)
void reservePIDs(String[] pidList)
throws ServerException
ServerException
String getRepositoryHash()
throws ServerException
ServerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||