|
Xindice XML-RPC API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xmldatabases.xmlrpc.RPCOperations
Provides the basic implementation for XML-RPC support in Xindice.
Constructor Summary | |
RPCOperations()
|
Method Summary | |
int |
createCollection(java.lang.String parentCollection,
java.lang.String collectionName)
Creates specified Collection |
int |
createIndexer(java.lang.String collectionName,
java.lang.String indexName,
java.lang.String pattern)
Creates a new indexer in the specified Collection |
java.lang.String |
createNewOID(java.lang.String collectionName)
Creates a new unique OID for this collection. |
int |
dropCollection(java.lang.String collectionName)
Deletes specified Collection |
int |
dropIndexer(java.lang.String collectionName,
java.lang.String index)
Removes indexer in the specified Collection |
java.lang.String |
getDocument(java.lang.String collectionName,
java.lang.String id)
Retrieves a document from the collection |
int |
getDocumentCount(java.lang.String collectionName)
Returns the number of documents stored in this collection. |
java.lang.String |
insertDocument(java.lang.String collectionName,
java.lang.String id,
java.lang.String content)
Inserts a new document into the collection |
java.util.Vector |
listCollections(java.lang.String collectionName)
Lists all child collections under this collection |
java.util.Vector |
listDocuments(java.lang.String collectionName)
Returns a set containing all documents in the collection. |
java.util.Vector |
listIndexers(java.lang.String collectionName)
Returns a set containing all indexers in the collection. |
java.util.Vector |
listXMLObjects(java.lang.String collectionName)
Lists all XML objects within the collection |
java.lang.String |
queryCollection(java.lang.String collectionName,
java.lang.String type,
java.lang.String query,
java.util.Hashtable namespaces)
Executes a query against a collection |
java.lang.String |
queryDocument(java.lang.String collectionName,
java.lang.String style,
java.lang.String query,
java.util.Hashtable namespaces,
java.lang.String id)
Executes a query against a Document in this collection |
int |
removeDocument(java.lang.String collectionName,
java.lang.String id)
Deletes a document from the collection. |
java.lang.String |
setDocument(java.lang.String collectionName,
java.lang.String id,
java.lang.String content)
Sets a document in the collection. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RPCOperations()
Method Detail |
public java.lang.String setDocument(java.lang.String collectionName, java.lang.String id, java.lang.String content) throws java.lang.Exception
collectionName
- The name of the collection including database
instance.id
- The id of the Document to setcontent
- The new Document valuejava.lang.Exception
- thrown if the document can't be found.public java.lang.String getDocument(java.lang.String collectionName, java.lang.String id) throws java.lang.Exception
collectionName
- The name of the collection including database
instance.id
- The id of the document to retrievejava.lang.Exception
- thrown if the document can't be foundpublic int getDocumentCount(java.lang.String collectionName) throws java.lang.Exception
collectionName
- The name of the collection including database
instance.java.lang.Exception
- Thrown if any internal error occurspublic java.lang.String insertDocument(java.lang.String collectionName, java.lang.String id, java.lang.String content) throws java.lang.Exception
collectionName
- The name of the collection including database
instance.id
- The id to insert the document under or the empty string if a new
id should be generated automatically.content
- The Document to insertjava.lang.Exception
- Thrown if there is a parse error or other internal
errorpublic int removeDocument(java.lang.String collectionName, java.lang.String id) throws java.lang.Exception
collectionName
- The name of the collection including database
instance.id
- The id of the Document to deletejava.lang.Exception
- thrown if the document could not be found or any
other internal error occurs.public java.util.Vector listCollections(java.lang.String collectionName) throws java.lang.Exception
collectionName
- The name of the collection including database
instance.java.lang.Exception
- Thrown if any internal error occurspublic int dropCollection(java.lang.String collectionName) throws java.lang.Exception
collectionName
- The name of the collection including database
instance.java.lang.Exception
- thrown if the collection could not be found or any
other internal error occurs.public int createCollection(java.lang.String parentCollection, java.lang.String collectionName) throws java.lang.Exception
parentCollection
- The name of the collection including database
instance to create the collection.collectionName
- The name of newly created collection.java.lang.Exception
- thrown if the collection could not be found or any
other internal error occurs.public java.util.Vector listIndexers(java.lang.String collectionName) throws java.lang.Exception
collectionName
- The name of the collection including database
instance.java.lang.Exception
- thrown if the collection could not be found or any
other internal error occurs.public int createIndexer(java.lang.String collectionName, java.lang.String indexName, java.lang.String pattern) throws java.lang.Exception
collectionName
- The name of the collection including database
instance.indexName
- The name of the newly created indexer.pattern
- The pattern of the indexer.java.lang.Exception
- thrown if the collection could not be found or any
other internal error occurs.public int dropIndexer(java.lang.String collectionName, java.lang.String index) throws java.lang.Exception
collectionName
- The name of the collection including database
instance.indexerName
- The name of the indexer to remove.java.lang.Exception
- thrown if the indexer could not be found or any
other internal error occurs.public java.util.Vector listDocuments(java.lang.String collectionName) throws java.lang.Exception
collectionName
- The name of the collection including database
instance.java.lang.Exception
- thrown if any internal error occurs.public java.util.Vector listXMLObjects(java.lang.String collectionName) throws java.lang.Exception
collectionName
- The name of the collection including database
instance.java.lang.Exception
- Thrown if any internal error occurspublic java.lang.String createNewOID(java.lang.String collectionName) throws java.lang.Exception
collectionName
- The name of the collection including database
instance.java.lang.Exception
- thrown id any internal error occurspublic java.lang.String queryCollection(java.lang.String collectionName, java.lang.String type, java.lang.String query, java.util.Hashtable namespaces) throws java.lang.Exception
collectionName
- The name of the collection including database
instance.type
- The type of query to execute. Valid values are XPath and
XUpdate.query
- The query string to execute, should be in the proper syntax
for the style specifiednamespaces
- A Hashtable containing namespace definitions. The key is
the namespace prefix and the value is the namespace URIjava.lang.Exception
- thrown if any internal error occurspublic java.lang.String queryDocument(java.lang.String collectionName, java.lang.String style, java.lang.String query, java.util.Hashtable namespaces, java.lang.String id) throws java.lang.Exception
collectionName
- The name of the collection including database
instance.type
- the type of query to execute. Valid values are XPath and
XUpdatequery
- The query string to execute, should be in the proper syntax
for the style specifiednamespaces
- A Hashtable containing namespace definitions. The key is
the namespace prefix and the value is the namespace URIid
- the id of the document to query.java.lang.Exception
- thrown if any internal error occurs
|
Xindice XML-RPC API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |