|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.cnri.do_api.DigitalObject
net.cnri.do_api.Repository
public class Repository
This object provides high level access to a digital object repository.
Field Summary | |
---|---|
static java.lang.String |
SERIALIZED_ENCODING
|
Constructor Summary | |
---|---|
Repository(DOAuthentication auth,
java.lang.String repoID)
Constructor for a repository that interfaces an object that provides an interface to the with the given authentication information |
|
Repository(java.lang.String repoID,
net.cnri.dobj.DOClientConnection conn)
Construct a Repository instance which can be used to talk over existing connections to DO servers. |
Method Summary | |
---|---|
java.lang.String |
copyObjectFrom(Repository source,
java.lang.String objectID)
Create a new object on this repository with the given identifier and return the ID of the new object. |
DigitalObject |
createDigitalObject(java.lang.String objectID)
Create a new digital object in this repository and return an interface to that object. |
void |
deleteDigitalObject(java.lang.String objectID)
Deletes a specified digital object from the repository |
net.cnri.dobj.DOClientConnection |
getConnection()
Internal method to return the underlying connection that is used to communicate with this Repository. |
DigitalObject |
getDigitalObject(java.lang.String objectID)
If the specified digital object exists in the repository, this method will return an instance of the DigitalObject class corresponding to that object. |
java.util.Iterator |
listObjects()
Return an iterator of object IDs that are contained in this repository. |
void |
setUseEncryption(boolean encrypt)
Sets whether or not the connection to this repository will be encrypted. |
java.lang.String |
toString()
Returns a nicely formatted label for this object |
boolean |
verifyDigitalObject(java.lang.String objectID)
Verifies that the specified digital object exists in the current repository |
Methods inherited from class net.cnri.do_api.DigitalObject |
---|
deleteDataElement, getAttribute, getDataElement, getDateCreated, getDateLastModified, getID, getRepository, listAttributes, listDataElements, performOperation, setAttribute, verifyDataElement |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SERIALIZED_ENCODING
Constructor Detail |
---|
public Repository(DOAuthentication auth, java.lang.String repoID) throws java.lang.Exception
java.lang.Exception
public Repository(java.lang.String repoID, net.cnri.dobj.DOClientConnection conn)
Method Detail |
---|
public java.lang.String toString()
DigitalObject
toString
in class DigitalObject
public void setUseEncryption(boolean encrypt)
public net.cnri.dobj.DOClientConnection getConnection() throws DOException
DOException
public boolean verifyDigitalObject(java.lang.String objectID) throws DOException, java.io.IOException
DOException
java.io.IOException
public DigitalObject createDigitalObject(java.lang.String objectID) throws DOException
DOException
public void deleteDigitalObject(java.lang.String objectID) throws DOException, java.io.IOException
DOException
java.io.IOException
public DigitalObject getDigitalObject(java.lang.String objectID) throws DOException, java.io.IOException
DOException
java.io.IOException
public java.util.Iterator listObjects() throws DOException, java.io.IOException
DOException
java.io.IOException
public java.lang.String copyObjectFrom(Repository source, java.lang.String objectID) throws DOException
DOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |