|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.server.storage.SimpleDOReader
public class SimpleDOReader
A DOReader backed by a DigitalObject.
| Field Summary | |
|---|---|
protected DigitalObject |
m_obj
|
| Constructor Summary | |
|---|---|
SimpleDOReader(Context context,
RepositoryReader repoReader,
DOTranslator translator,
java.lang.String exportFormat,
java.lang.String encoding,
DigitalObject obj)
Alternate constructor for when a DigitalObject is already available for some reason. |
|
SimpleDOReader(Context context,
RepositoryReader repoReader,
DOTranslator translator,
java.lang.String exportFormat,
java.lang.String storageFormat,
java.lang.String encoding,
java.io.InputStream serializedObject)
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
ExportObject(java.lang.String format,
java.lang.String exportContext)
Return the object as an XML input stream in the specified XML format and in the specified export context. |
java.util.List |
getAuditRecords()
Gets the entire list of audit records for the object. |
java.lang.String[] |
GetBehaviorDefs(java.util.Date versDateTime)
Gets PIDs of Behavior Definitions to which object subscribes. |
java.lang.String |
getContentModelId()
Gets the content model of the object. |
java.util.Date |
getCreateDate()
Gets the date of creation of this object. |
Datastream |
GetDatastream(java.lang.String datastreamID,
java.util.Date versDateTime)
Gets a particular Datastream in the digital object. |
Datastream |
getDatastream(java.lang.String dsID,
java.lang.String versionID)
Gets a particular datastream in the digital object. |
Datastream[] |
GetDatastreams(java.util.Date versDateTime,
java.lang.String state)
Gets all datastreams as of a certain date and in a certain state. |
java.util.Date[] |
getDatastreamVersions(java.lang.String datastreamID)
Gets the creation dates of all versions of a particular datastream, in no particular order. |
DisseminationBindingInfo[] |
getDisseminationBindingInfo(java.lang.String bDefPID,
java.lang.String methodName,
java.util.Date versDateTime)
Gets the dissemination binding info necessary to perform a particular dissemination. |
Disseminator |
GetDisseminator(java.lang.String disseminatorID,
java.util.Date versDateTime)
Same as getDatastream, but for disseminators. |
Disseminator[] |
GetDisseminators(java.util.Date versDateTime,
java.lang.String state)
Same as getDatastreams, but for disseminators. |
java.util.Date[] |
getDisseminatorVersions(java.lang.String dissID)
Gets the creation dates of all versions of a particular disseminator, in no particular order. |
DSBindingMapAugmented[] |
GetDSBindingMaps(java.util.Date versDateTime)
Gets datastream binding map. |
java.lang.String |
getFedoraObjectType()
Gets the type of fedora object (O=FEDORA_OBJECT, D=FEDORA_BDEF_OBJECT, M=FEDORA_BMECH_OBJECT) this is a handle on. |
java.util.Date |
getLastModDate()
Gets the date of the last modification of this object. |
java.lang.String[] |
getObjectHistory(java.lang.String PID)
Gets the change history of an object by returning a list of timestamps that correspond to modification dates of components. |
java.lang.String |
GetObjectLabel()
Gets the label of the digital object. |
MethodParmDef[] |
getObjectMethodParms(java.lang.String bDefPID,
java.lang.String methodName,
java.util.Date versDateTime)
Get the parameters for a given method. |
java.lang.String |
GetObjectPID()
Gets the PID of the digital object. |
java.lang.String |
GetObjectState()
Gets the state of the digital object. |
java.io.InputStream |
GetObjectXML()
Return the object as an XML input stream in the internal serialization format. |
java.lang.String |
getOwnerId()
Gets the userid of the user who owns the objects. |
protected java.lang.String |
getWhenString(java.util.Date versDateTime)
|
java.lang.String[] |
ListDatastreamIDs(java.lang.String state)
Gets a list of Datastream identifiers for all Datastreams in the digital object. |
java.lang.String[] |
ListDisseminatorIDs(java.lang.String state)
Same as listDatastreamIds, but for disseminators. |
ObjectMethodsDef[] |
listMethods(java.util.Date versDateTime)
Gets list of ALL method definitions that are available on a particular digital object. |
MethodDef[] |
listMethods(java.lang.String bDefPID,
java.util.Date versDateTime)
Gets list of method definitions that are available on a particular Disseminator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DigitalObject m_obj
| Constructor Detail |
|---|
public SimpleDOReader(Context context,
RepositoryReader repoReader,
DOTranslator translator,
java.lang.String exportFormat,
java.lang.String storageFormat,
java.lang.String encoding,
java.io.InputStream serializedObject)
throws ObjectIntegrityException,
StreamIOException,
UnsupportedTranslationException,
ServerException
ObjectIntegrityException
StreamIOException
UnsupportedTranslationException
ServerException
public SimpleDOReader(Context context,
RepositoryReader repoReader,
DOTranslator translator,
java.lang.String exportFormat,
java.lang.String encoding,
DigitalObject obj)
| Method Detail |
|---|
public java.lang.String getFedoraObjectType()
DOReader
getFedoraObjectType in interface DOReaderpublic java.lang.String getContentModelId()
DOReader
getContentModelId in interface DOReaderpublic java.util.Date getCreateDate()
DOReader
getCreateDate in interface DOReaderpublic java.util.Date getLastModDate()
DOReader
getLastModDate in interface DOReaderpublic java.lang.String getOwnerId()
DOReader
getOwnerId in interface DOReaderpublic java.util.List getAuditRecords()
DOReader
getAuditRecords in interface DOReader
public java.io.InputStream GetObjectXML()
throws ObjectIntegrityException,
StreamIOException,
UnsupportedTranslationException,
ServerException
GetObjectXML in interface DOReaderServerException - If there object could not be found or there was
was a failure in accessing the object for any reason.
ObjectIntegrityException
StreamIOException
UnsupportedTranslationException
public java.io.InputStream ExportObject(java.lang.String format,
java.lang.String exportContext)
throws ObjectIntegrityException,
StreamIOException,
UnsupportedTranslationException,
ServerException
ExportObject in interface DOReaderformat - The format to export the object in. If null or "default",
will use the repository's configured default export format.exportContext - The use case for export (public, migrate, archive)
which results in different ways of representing datastream
URLs or datastream content in the output.
ServerException - If there object could not be found or there was
was a failure in accessing the object for any reason.
ObjectIntegrityException
StreamIOException
UnsupportedTranslationExceptionpublic java.lang.String GetObjectPID()
DOReader
GetObjectPID in interface DOReaderpublic java.lang.String GetObjectLabel()
DOReader
GetObjectLabel in interface DOReaderpublic java.lang.String GetObjectState()
DOReader
GetObjectState in interface DOReaderpublic java.lang.String[] ListDatastreamIDs(java.lang.String state)
DOReader
ListDatastreamIDs in interface DOReaderstate - The state of the Datastreams to be listed.
public Datastream getDatastream(java.lang.String dsID,
java.lang.String versionID)
DOReader
getDatastream in interface DOReaderdsID - The datastream identifierversionID - The identifier of the particular version
public Datastream GetDatastream(java.lang.String datastreamID,
java.util.Date versDateTime)
DOReader
GetDatastream in interface DOReaderdatastreamID - The Datastream identifierversDateTime - The date-time stamp to get appropriate Datastream version
public java.util.Date[] getDatastreamVersions(java.lang.String datastreamID)
DOReader
getDatastreamVersions in interface DOReaderdatastreamID - The datastream identifier
public java.util.Date[] getDisseminatorVersions(java.lang.String dissID)
DOReader
getDisseminatorVersions in interface DOReaderdissID - The disseminator identifier
public Datastream[] GetDatastreams(java.util.Date versDateTime,
java.lang.String state)
DOReader
GetDatastreams in interface DOReaderversDateTime - The date-time stamp to get appropriate Datastream versionsstate - The state, null for any.
public java.lang.String[] ListDisseminatorIDs(java.lang.String state)
DOReader
ListDisseminatorIDs in interface DOReaderstate - The state of the Disseminators to be listed.
public Disseminator GetDisseminator(java.lang.String disseminatorID,
java.util.Date versDateTime)
DOReader
GetDisseminator in interface DOReaderdisseminatorID - The Disseminator identifierversDateTime - The date-time stamp to get appropriate Disseminator version
public Disseminator[] GetDisseminators(java.util.Date versDateTime,
java.lang.String state)
DOReader
GetDisseminators in interface DOReaderversDateTime - The date-time stamp to get appropriate Disseminator versionstate - The state of the disseminator.
public java.lang.String[] GetBehaviorDefs(java.util.Date versDateTime)
DOReader
GetBehaviorDefs in interface DOReaderversDateTime - The date-time stamp to get appropriate version
public java.lang.String[] getObjectHistory(java.lang.String PID)
Gets the change history of an object by returning a list of timestamps that correspond to modification dates of components. This currently includes changes to datastreams and disseminators.
getObjectHistory in interface DOReaderPID - The persistent identifier of the digitla object.
public MethodDef[] listMethods(java.lang.String bDefPID,
java.util.Date versDateTime)
throws MethodNotFoundException,
ServerException
DOReader
listMethods in interface DOReaderbDefPID - The PID of a Behavior Definition to which the object
subscribes. If this is the special bootstrap bdef,
this method returns null.versDateTime - The date-time stamp to get appropriate version.
If this is given as null, the most recent version is used.
ServerException - If any type of error occurred fulfilling the
request.
MethodNotFoundException
public MethodParmDef[] getObjectMethodParms(java.lang.String bDefPID,
java.lang.String methodName,
java.util.Date versDateTime)
throws MethodNotFoundException,
ServerException
getObjectMethodParms in interface DOReaderbDefPID - methodName - versDateTime -
DisseminatorNotFoundException
MethodNotFoundException
ServerExceptionprotected java.lang.String getWhenString(java.util.Date versDateTime)
public DSBindingMapAugmented[] GetDSBindingMaps(java.util.Date versDateTime)
throws ObjectIntegrityException,
ServerException
DOReader
GetDSBindingMaps in interface DOReaderversDateTime - versioning datetime stamp
ServerException - If anything went wrong
ObjectIntegrityException
public DisseminationBindingInfo[] getDisseminationBindingInfo(java.lang.String bDefPID,
java.lang.String methodName,
java.util.Date versDateTime)
throws ServerException
DOReader
getDisseminationBindingInfo in interface DOReaderbDefPID - the behavior definition pidmethodName - the method nameversDateTime - versioning datetime stamp
ServerException - If anything went wrong
public ObjectMethodsDef[] listMethods(java.util.Date versDateTime)
throws ServerException
DOReader
listMethods in interface DOReaderversDateTime - The date-time stamp to get appropriate version.
If this is given as null, the most recent version is used.
ServerException - If any type of error occurred fulfilling the
request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||