|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Title: DOManager.java
Description: A RepositoryReader that provides facilities for creating and modifying objects within the repository, as well as a query facility.
-----------------------------------------------------------------------------License and Copyright: The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The entire file consists of original code. Copyright © 2002-2005 by The Rector and Visitors of the University of Virginia and Cornell University. All rights reserved.
-----------------------------------------------------------------------------
| Method Summary | |
FieldSearchResult |
findObjects(Context context,
java.lang.String[] resultFields,
int maxResults,
FieldSearchQuery query)
|
DOWriter |
getIngestWriter(Context context,
java.io.InputStream in,
java.lang.String format,
java.lang.String encoding,
boolean newPid)
Creates a copy of the digital object given by the InputStream, with either a new PID or the PID indicated by the InputStream. |
java.lang.String[] |
getNextPID(int numPIDs,
java.lang.String namespace)
|
DOWriter |
getWriter(Context context,
java.lang.String pid)
Gets a DOWriter for an existing digital object. |
void |
releaseWriter(DOWriter writer)
Relinquishes control of a DOWriter back to the DOManager. |
FieldSearchResult |
resumeFindObjects(Context context,
java.lang.String sessionToken)
|
| Methods inherited from interface fedora.server.storage.RepositoryReader |
getBDefReader, getBMechReader, getReader, listObjectPIDs |
| Method Detail |
public void releaseWriter(DOWriter writer)
throws ServerException
writer - an instance of a digital object writer.
ServerException - if an error occurs in obtaining a writer.
public DOWriter getWriter(Context context,
java.lang.String pid)
throws ServerException
context - The context of this request.pid - The PID of the object.
ServerException - If anything went wrong.
public DOWriter getIngestWriter(Context context,
java.io.InputStream in,
java.lang.String format,
java.lang.String encoding,
boolean newPid)
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.newPid - Whether a new PID should be generated or the one indicated
by the InputStream should be used.
ServerException - If anything went wrong.
public FieldSearchResult findObjects(Context context,
java.lang.String[] resultFields,
int maxResults,
FieldSearchQuery query)
throws ServerException
ServerException
public FieldSearchResult resumeFindObjects(Context context,
java.lang.String sessionToken)
throws ServerException
ServerException
public java.lang.String[] getNextPID(int numPIDs,
java.lang.String namespace)
throws ServerException
ServerException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||