|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGridServiceImpl
edu.ucsb.nceas.metacat.stringclient.impl.MetacatStringImpl
This interface provides methods for initializing and logging in to a Metacat server, and then querying, reading, transforming, inserting, updating and deleting documents from that server.
Constructor Summary | |
MetacatStringImpl()
|
Method Summary | |
java.lang.String |
delete(java.lang.String docid)
Delete an XML document in the repository. |
java.lang.String |
insert(java.lang.String docid,
java.lang.String xmlDocument,
java.lang.String schema)
Insert an XML document into the repository. |
void |
login(java.lang.String username,
java.lang.String password)
Method used to log in to a metacat server. |
void |
logout()
Method used to log out a metacat server. |
java.lang.String |
query(java.lang.String xmlQuery)
Query the metacat document store with the given metacat-compatible query document, and return the result set as a Reader. |
java.lang.String |
read(java.lang.String docid)
Read an XML document from the metacat server session, accessed by docid, and returned as a String. |
void |
setMetacatUrl(java.lang.String metacatUrl)
When the MetacatFactory creates an instance it needs to set the MetacatUrl to which connections should be made. |
java.lang.String |
update(java.lang.String docid,
java.lang.String xmlDocument,
java.lang.String schema)
Update an XML document in the repository. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MetacatStringImpl()
Method Detail |
public void login(java.lang.String username, java.lang.String password) throws java.rmi.RemoteException
username
- the username of the user, like an LDAP DNpassword
- the password for that user for authentication
java.rmi.RemoteException
public void logout() throws java.rmi.RemoteException
MetacatInaccessibleException
- when the metacat server can not be
reached or does not respond
java.rmi.RemoteException
public java.lang.String read(java.lang.String docid) throws java.rmi.RemoteException
docid
- the identifier of the document to be read
java.rmi.RemoteException
public java.lang.String query(java.lang.String xmlQuery) throws java.rmi.RemoteException
xmlQuery
- a string for accessing the XML version of the query
java.rmi.RemoteException
public java.lang.String insert(java.lang.String docid, java.lang.String xmlDocument, java.lang.String schema) throws java.rmi.RemoteException
docid
- the docid to insert the documentxmlDocument
- a Reader for accessing the XML document to be insertedschema
- a Reader for accessing the DTD or XML Schema for
the document
java.rmi.RemoteException
public java.lang.String update(java.lang.String docid, java.lang.String xmlDocument, java.lang.String schema) throws java.rmi.RemoteException
docid
- the docid to updatexmlDocument
- a Reader for accessing the XML text to be updatedschema
- a Reader for accessing the DTD or XML Schema for
the document
java.rmi.RemoteException
public java.lang.String delete(java.lang.String docid) throws java.rmi.RemoteException
docid
- the docid to delete
java.rmi.RemoteException
public void setMetacatUrl(java.lang.String metacatUrl) throws java.rmi.RemoteException
metacatUrl
- the URL for the metacat server
java.rmi.RemoteException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |