public class DigitalObject
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
checkAuthorization(java.lang.String userID,
java.lang.String[] delegatedids,
java.lang.String operationID,
HeaderSet parameters)
Determine whether a user in some groups is authorized to perform an operation with certain parameters on this object.
|
void |
deleteAttribute(java.lang.String attributeName)
Delete the given attributeName for this
object.
|
void |
deleteAttributes(java.lang.String[] atts)
Atomically delete more than one attribute
|
void |
deleteDataElement(java.lang.String elementID) |
void |
deleteObject()
Deletes this digital object
|
java.lang.String |
getAttribute(java.lang.String attributeName,
java.lang.String defaultValue)
Associates the given attributeValue with the given attributeName for this
object.
|
HeaderSet |
getAttributes()
Return all attributes
|
DataElement |
getDataElement(java.lang.String elementID)
Return a reference to the given data element within this object
|
java.util.Date |
getDateCreated()
Return the date that this object was created
|
java.util.Date |
getDateLastModified()
Return the date that this object was last modified
|
java.lang.String |
getID() |
java.lang.String |
getObjectID()
Returns the identifier for this digital object
|
Repository |
getRepository()
Return the repository server through which this object is accessed
|
long |
getSize()
Gets the size in bytes of the data element, not including attributes
|
java.lang.String[] |
listAttributes()
Return the list of attribute names for this object
|
java.lang.String[] |
listDataElements()
List the elements in this digital object
|
StreamPair |
performOperation(java.lang.String operationID,
HeaderSet parameters)
Invoke a low-level operation on this object, returning the input and output
streams for the operation in a StreamPair.
|
void |
refresh()
Refresh information about Data Elements or Attributes.
|
void |
setAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
Associates the given attributeValue with the given attributeName for this
object.
|
void |
setAttributes(HeaderSet atts)
Atomically set more than one attribute
|
java.lang.String |
toString()
Returns a nicely formatted label for this object
|
boolean |
verifyDataElement(java.lang.String elementID)
Verifies whether or not the data element with the given name exists
within this object
|
public Repository getRepository()
public java.lang.String getObjectID()
public java.lang.String getID()
public boolean verifyDataElement(java.lang.String elementID) throws DOException, java.io.IOException
DOException
java.io.IOException
public void deleteDataElement(java.lang.String elementID) throws DOException, java.io.IOException
DOException
java.io.IOException
public void deleteObject() throws DOException, java.io.IOException
DOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String[] listDataElements() throws DOException, java.io.IOException
DOException
java.io.IOException
public DataElement getDataElement(java.lang.String elementID) throws DOException, java.io.IOException
DOException
java.io.IOException
public StreamPair performOperation(java.lang.String operationID, HeaderSet parameters) throws DOException, java.io.IOException
DOException
java.io.IOException
public boolean checkAuthorization(java.lang.String userID, java.lang.String[] delegatedids, java.lang.String operationID, HeaderSet parameters) throws DOException, java.io.IOException
userID
- If null, presume the caller.delegatedids
- If null, generate the list of all groups by querying the member's digital object.operationID
- May not be null.parameters
- If null, no operation parameters.DOException
java.io.IOException
public void refresh()
public java.util.Date getDateCreated() throws DOException, java.io.IOException
DOException
java.io.IOException
public java.util.Date getDateLastModified() throws DOException, java.io.IOException
DOException
java.io.IOException
public long getSize() throws DOException, java.io.IOException
DOException
java.io.IOException
public void setAttribute(java.lang.String attributeName, java.lang.String attributeValue) throws DOException, java.io.IOException
DOException
java.io.IOException
public void setAttributes(HeaderSet atts) throws DOException, java.io.IOException
DOException
java.io.IOException
public void deleteAttribute(java.lang.String attributeName) throws DOException, java.io.IOException
DOException
java.io.IOException
public void deleteAttributes(java.lang.String[] atts) throws DOException, java.io.IOException
DOException
java.io.IOException
public java.lang.String getAttribute(java.lang.String attributeName, java.lang.String defaultValue) throws DOException, java.io.IOException
DOException
java.io.IOException
public HeaderSet getAttributes() throws DOException, java.io.IOException
DOException
java.io.IOException
public java.lang.String[] listAttributes() throws DOException, java.io.IOException
DOException
java.io.IOException