|
DOPs Framework 1.0 alpha | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DOStorage
An abstraction over a digital object repository (as far as storage is concerned). DOPs implementation uses this interface to interact with the underlying storage layer in order to provide repository-independent digital object type-conformance.
| Method Summary | |
|---|---|
String |
addNewDO(String dopId)
Adds / ingests a new (empty) digital object. |
boolean |
attributeExists(String doId,
String attrId)
Returns true if the given attribute exists in the underlying stored digital object. |
String |
getDOPId(String doId)
Returns the DOP identifier of the given digital object. |
long |
getStreamLength(String doId,
String streamId)
Returns the length of the given digital object's stream in bytes. |
String |
getStreamMIMEType(String doId,
String streamId)
Returns the MIME type of the given digital object's stream. |
String |
getStreamURL(String doId,
String streamId)
Returns the URL of the given digital object's stream. |
MultilingualValue[] |
loadMetadataSet(String doId,
String mdSetId)
Loads the values of the fields contained in the given digital object's metadata set. |
String[] |
loadRelationMembers(String doId,
String relId)
Loads the members of the given digital object's relation context. |
InputStream |
loadStreamContent(String doId,
String streamId)
Returns an InputStream to the content of the given digital object's stream. |
void |
saveMetadataSet(String doId,
String mdSetId,
MultilingualValue[] fieldValues)
Stores the supplied field values to the given digital object's metadata set. |
void |
saveRelationMembers(String doId,
String relId,
String[] ids)
Stores the members of the given digital object's relation context. |
void |
saveStreamContent(String doId,
String streamId,
InputStream is,
String mimeType)
Stores the contents of the supplied InputStream to the given object's stream attribute. |
void |
saveStreamURL(String doId,
String streamId,
String url)
Stores the given URL to the given object's stream attribute. |
| Method Detail |
|---|
boolean attributeExists(String doId,
String attrId)
throws DOStorageException
doId - the digital object identifierattrId - the attribute's identifier
DOStorageException
MultilingualValue[] loadMetadataSet(String doId,
String mdSetId)
throws DOStorageException
doId - the digital object identifiermdSetId - the metadata set identifier
DOStorageException - if an underlying storage error occursMultilingualValue
void saveMetadataSet(String doId,
String mdSetId,
MultilingualValue[] fieldValues)
throws DOStorageException
doId - the digital object identifiermdSetId - the metadata set identifierfieldValues - the values of the metadata fields
DOStorageException - if an underlying storage error occursMultilingualValue
void saveStreamContent(String doId,
String streamId,
InputStream is,
String mimeType)
throws DOStorageException
InputStream to the given object's stream attribute.
doId - the digital object identifierstreamId - the stream identifieris - the input stream containing the actual digital contentmimeType - the MIME type of digital content
DOStorageException - if an underlying storage error occurs
void saveStreamURL(String doId,
String streamId,
String url)
throws DOStorageException
doId - the digital object identifierstreamId - the stream identifierurl - a String representation of the URL
DOStorageException - if an underlying storage error occurs
String addNewDO(String dopId)
throws DOStorageException
dopId - the DOP identifier expressing the type of the newly created digital object
DOStorageException - if an underlying storage error occurs
String getDOPId(String doId)
throws DOStorageException
doId - the digital object identifier
DOStorageException - if an underlying storage error occurs
String[] loadRelationMembers(String doId,
String relId)
throws DOStorageException
doId - the digital object identifierrelId - the relation context identifier
DOStorageException - if an underlying storage error occurs
void saveRelationMembers(String doId,
String relId,
String[] ids)
throws DOStorageException
doId - the digital object identifierrelId - the relation context identifierids - a String array containing the identifiers of the member objects
DOStorageException - if an underlying storage error occurs
InputStream loadStreamContent(String doId,
String streamId)
throws DOStorageException
InputStream to the content of the given digital object's stream.
doId - the digital object identifierstreamId - the stream identifier
DOStorageException - if an underlying storage error occurs
String getStreamURL(String doId,
String streamId)
throws DOStorageException
doId - the digital object identifierstreamId - the stream identifier
DOStorageException - if an underlying storage error occurs
String getStreamMIMEType(String doId,
String streamId)
throws DOStorageException
doId - the digital object identifierstreamId - the stream identifier
DOStorageException - if an underlying storage error occurs
long getStreamLength(String doId,
String streamId)
throws DOStorageException
doId - the digital object identifierstreamId - the stream identifier
DOStorageException - if an underlying storage error occurs
|
Copyright (c) 2005-2007, Kostas Saidis. Consult the license for terms and conditions of use. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||