public interface DOReader
| Modifier and Type | Method and Description |
|---|---|
InputStream |
Export(String format,
String exportContext)
Gets the content of the entire digital object as XML, with public URIs as
references to managed content datastreams under the custodianship of the
repository.
|
InputStream |
ExportObject(String format,
String exportContext)
Deprecated.
in Fedora 3.0, use Export() instead
|
List<AuditRecord> |
getAuditRecords()
Gets the entire list of audit records for the object.
|
List<String> |
getContentModels()
Gets a list of the content models of the object.
|
Date |
getCreateDate()
Gets the date of creation of this object.
|
Datastream |
GetDatastream(String datastreamID,
Date versDateTime)
Gets a particular Datastream in the digital object.
|
Datastream |
getDatastream(String datastreamID,
String versionID)
Gets a particular datastream in the digital object.
|
Datastream[] |
GetDatastreams(Date versDateTime,
String state)
Gets all datastreams as of a certain date and in a certain state.
|
Date[] |
getDatastreamVersions(String datastreamID)
Gets the creation dates of all versions of a particular datastream, in no
particular order.
|
Date |
getLastModDate()
Gets the date of the last modification of this object.
|
DigitalObject |
getObject()
Gets the underlying digital object this reader is working with.
|
String[] |
getObjectHistory(String PID)
Gets the change history of an object by returning a list of timestamps
that correspond to modification dates of components.
|
String |
GetObjectLabel()
Gets the label of the digital object.
|
String |
GetObjectPID()
Gets the PID of the digital object.
|
String |
GetObjectState()
Gets the state of the digital object.
|
InputStream |
GetObjectXML()
Gets the content of the entire digital object as XML.
|
String |
getOwnerId()
Gets the userid of the user who owns the objects.
|
Set<RelationshipTuple> |
getRelationships()
Get all RELS-EXT and RELS-INT relationships in the object.
|
Set<RelationshipTuple> |
getRelationships(org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object)
Get all matching RELS-EXT relationships in the object, assumes pid is the subject
|
Set<RelationshipTuple> |
getRelationships(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object)
Get all matching RELS-EXT and RELS-INT relationships in the object.
|
boolean |
hasContentModel(org.jrdf.graph.ObjectNode contentModel)
Determins whether or not the object have the given uri as a content model.
|
boolean |
hasRelationship(org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object)
Determine if the object contains the given relationship, assumes pid as the subject.
|
boolean |
hasRelationship(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object)
Determine if the object contains the given relationship.
|
String[] |
ListDatastreamIDs(String state)
Gets a list of Datastream identifiers for all Datastreams in the digital
object.
|
ObjectMethodsDef[] |
listMethods(Date versDateTime)
Gets list of ALL method definitions that are available on a particular
digital object.
|
DigitalObject getObject()
Date getCreateDate() throws ServerException
ServerException - If any type of error occurred fulfilling the request.Date getLastModDate() throws ServerException
ServerException - If any type of error occurred fulfilling the request.String getOwnerId() throws ServerException
ServerException - If any type of error occurred fulfilling the request.List<AuditRecord> getAuditRecords() throws ServerException
ServerException - If any type of error occurred fulfilling the request.InputStream GetObjectXML() throws ServerException
ServerException - If there object could not be found or there was was a failure in
accessing the object for any reason.InputStream Export(String format, String exportContext) throws ServerException
The intent of this method is to return the digital object along with valid URI pointers for ALL its datastreams.
format - 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.DOTranslationUtility.SERIALIZE_EXPORT_PUBLIC,
DOTranslationUtility.SERIALIZE_EXPORT_MIGRATE,
DOTranslationUtility.SERIALIZE_EXPORT_ARCHIVE@Deprecated InputStream ExportObject(String format, String exportContext) throws ServerException
ServerExceptionString GetObjectPID() throws ServerException
ServerException - If any type of error occurred fulfilling the request.String GetObjectLabel() throws ServerException
ServerException - If any type of error occurred fulfilling the request.String GetObjectState() throws ServerException
ServerException - If any type of error occurred fulfilling the request.List<String> getContentModels() throws ServerException
ServerException - If any type of error occurred fulfilling the request.boolean hasContentModel(org.jrdf.graph.ObjectNode contentModel)
throws ServerException
contentModel - The object node of the content modelServerExceptionString[] ListDatastreamIDs(String state) throws ServerException
state - The state of the Datastreams to be listed.ServerException - If any type of error occurred fulfilling the request.Date[] getDatastreamVersions(String datastreamID) throws ServerException
datastreamID - The datastream identifierServerException - If any type of error occurred fulfilling the request.Datastream[] GetDatastreams(Date versDateTime, String state) throws ServerException
versDateTime - The date-time stamp to get appropriate Datastream versionsstate - The state, null for any.ServerException - If any type of error occurred fulfilling the request.Datastream GetDatastream(String datastreamID, Date versDateTime) throws ServerException
datastreamID - The Datastream identifierversDateTime - The date-time stamp to get appropriate Datastream versionServerException - If any type of error occurred fulfilling the request.Datastream getDatastream(String datastreamID, String versionID) throws ServerException
datastreamID - The datastream identifierversionID - The identifier of the particular versionServerException - If any time of error occurred fulfilling the request.ObjectMethodsDef[] listMethods(Date versDateTime) throws ServerException
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.String[] getObjectHistory(String PID) throws ServerException
PID - The persistent identifier of the digitla object.ServerException - If any type of error occurred fulfilling the request.boolean hasRelationship(org.jrdf.graph.SubjectNode subject,
org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object)
throws ServerException
subject - Subject of the relationship, or null if unspecified (will match
any).predicate - Predicate of the relationship, or null if unspecified (will match
any).object - Object (target) of the relationship, or null if unspecified (will
match any).ServerException - If any type of error occurred fulfilling the request.boolean hasRelationship(org.jrdf.graph.PredicateNode predicate,
org.jrdf.graph.ObjectNode object)
throws ServerException
predicate - Predicate of the relationship, or null if unspecified (will match
any).object - Object (target) of the relationship, or null if unspecified (will
match any).ServerException - If any type of error occurred fulfilling the request.Set<RelationshipTuple> getRelationships() throws ServerException
ServerException - If any type of error occurred fulfilling the request.Set<RelationshipTuple> getRelationships(org.jrdf.graph.SubjectNode subject, org.jrdf.graph.PredicateNode predicate, org.jrdf.graph.ObjectNode object) throws ServerException
subject - Subject of the relationship, or null if unspecified (will match
any).predicate - Predicate of the relationship, or null if unspecified (will match
any).object - Object (target) of the relationship, or null if unspecified (will
match any).ServerException - If any type of error occurred fulfilling the request.Set<RelationshipTuple> getRelationships(org.jrdf.graph.PredicateNode predicate, org.jrdf.graph.ObjectNode object) throws ServerException
predicate - Predicate of the relationship, or null if unspecified (will match
any).object - Object (target) of the relationship, or null if unspecified (will
match any).ServerException - If any type of error occurred fulfilling the request.Copyright © 2013 DuraSpace. All Rights Reserved.