public interface StorageProxy
| Modifier and Type | Method and Description |
|---|---|
void |
appendDataElement(java.lang.String elementID,
java.io.InputStream input)
Appends data from the given InputStream to the data element for the given object ID.
|
java.lang.String |
createObject(java.lang.String newObjectID)
Creates a new digital object with the given ID, if one does not already exist.
|
java.lang.String |
createObject(java.lang.String newObjectID,
java.lang.String newObjectName)
Creates a new digital object with the given ID, if one does not already exist.
|
void |
deleteAttributes(java.lang.String[] attributeKeys)
Remove the attributes with the given keys from the object.
|
boolean |
deleteDataElement(java.lang.String elementID)
Deletes the specified data element from the current object.
|
void |
deleteElementAttributes(java.lang.String elementID,
java.lang.String[] attributeKeys)
Remove the attributes with the given keys from the element.
|
void |
deleteObject()
Deletes the current object object along with all data elements or files that
are associated with it.
|
void |
deserializeObject(java.lang.String format,
java.io.InputStream in)
Reset the object's state and re-initialize the object with the data in the
given InputStream in the given format.
|
boolean |
doesDataElementExist(java.lang.String elementID)
Returns true if the given data element exists
|
boolean |
doesObjectExist()
Returns true if the given digital object exists.
|
HeaderSet |
getAttributes(HeaderSet container)
Get all of the key-value attributes that are associated with the object.
|
java.io.InputStream |
getDataElement(java.lang.String elementID)
Returns a stream for reading the identified data element for this object.
|
HeaderSet |
getElementAttributes(java.lang.String elementID,
HeaderSet container)
Get all of the key-value attributes that are associated with the given
element in the object.
|
java.io.File |
getFileForDataElement(java.lang.String elementID)
Returns the File in which the given data element is stored, if any.
|
StorageProxy |
getObjectAccessor(java.lang.String objectID)
Returns a StorageProxy for a different object in this Repository.
|
java.lang.String |
getObjectID()
Get the object identifier of the given object.
|
java.lang.String |
getRepoID()
Get the repository identifier of the repository for the given object.
|
java.util.Enumeration |
listDataElements()
Returns a list of the data elements associated with the current object.
|
java.util.Enumeration |
listObjects()
Returns an Enumeration of all of the objects in the repository.
|
void |
serializeObject(java.lang.String format,
java.io.OutputStream out)
Serialize the entire object using the given format to the given stream
|
void |
setAttributes(HeaderSet attributes)
Set the given key-value attributes in the object, replacing any existing
attributes that have the same keys.
|
void |
setElementAttributes(java.lang.String elementID,
HeaderSet attributes)
Set the given key-value attributes for the given element in the object,
replacing any existing attributes that have the same keys.
|
void |
storeDataElement(java.lang.String elementID,
java.io.InputStream input)
Writes data from the given InputStream as the data element for the given object ID.
|
java.lang.String getObjectID()
java.lang.String getRepoID()
StorageProxy getObjectAccessor(java.lang.String objectID)
boolean doesObjectExist()
throws DOException
DOExceptionboolean doesDataElementExist(java.lang.String elementID)
throws DOException
DOExceptionjava.io.File getFileForDataElement(java.lang.String elementID)
throws DOException
DOExceptionjava.lang.String createObject(java.lang.String newObjectID)
throws DOException
DOExceptionjava.lang.String createObject(java.lang.String newObjectID,
java.lang.String newObjectName)
throws DOException
DOExceptionvoid deleteObject()
throws DOException
DOExceptionjava.util.Enumeration listObjects()
throws DOException
DOExceptionjava.util.Enumeration listDataElements()
throws DOException
DOExceptionjava.io.InputStream getDataElement(java.lang.String elementID)
throws DOException
DOExceptionvoid storeDataElement(java.lang.String elementID,
java.io.InputStream input)
throws java.lang.Exception
java.lang.Exceptionvoid appendDataElement(java.lang.String elementID,
java.io.InputStream input)
throws java.lang.Exception
java.lang.Exceptionboolean deleteDataElement(java.lang.String elementID)
throws DOException
DOExceptionHeaderSet getAttributes(HeaderSet container) throws DOException
DOExceptionHeaderSet getElementAttributes(java.lang.String elementID, HeaderSet container) throws DOException
DOExceptionvoid setAttributes(HeaderSet attributes) throws DOException
DOExceptionvoid setElementAttributes(java.lang.String elementID,
HeaderSet attributes)
throws DOException
DOExceptionvoid deleteAttributes(java.lang.String[] attributeKeys)
throws DOException
DOExceptionvoid deleteElementAttributes(java.lang.String elementID,
java.lang.String[] attributeKeys)
throws DOException
DOExceptionvoid serializeObject(java.lang.String format,
java.io.OutputStream out)
throws DOException
DOExceptionvoid deserializeObject(java.lang.String format,
java.io.InputStream in)
throws DOException
DOException