|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.xmlrpc.RpcServer
Handler class for XMLRPC calls.
To allow calls by many parallel users, RpcServer does not directly execute calls. Instead it delegates all calls to instances of the inner class RpcConnection, which run in their own thread.
On startup, RpcServer creates a pool of RpcConnections. For every call the server first gets a RpcConnection object from the pool, executes the call and releases the RpcConnection.
If the pool's maximum of concurrent connections (MAX_CONNECT) is reached, RpcServer will block until a connection is available.
All methods returning XML data will return UTF-8 encoded strings, unless an encoding is specified. Methods that allow to set the encoding will always return byte[] instead of string. byte[]-values are handled as binary data and are automatically BASE64-encoded by the XMLRPC engine. This way the correct character encoding is preserved during transport.
Field Summary | |
protected static int |
MAX_CONNECT
|
protected static int |
MIN_CONNECT
|
protected org.exist.xmlrpc.RpcServer.ConnectionPool |
pool
|
Constructor Summary | |
RpcServer(Configuration conf)
Constructor for the RpcServer object |
Method Summary | |
boolean |
createCollection(User user,
java.lang.String name)
Description of the Method |
java.lang.String |
createId(User user,
java.lang.String collection)
Description of the Method |
int |
executeQuery(User user,
byte[] xpath)
Description of the Method |
int |
executeQuery(User user,
byte[] xpath,
java.lang.String encoding)
Description of the Method |
int |
executeQuery(User user,
java.lang.String xpath)
Description of the Method |
java.util.Hashtable |
getCollectionDesc(User user,
java.lang.String rootCollection)
Gets the collectionDesc attribute of the RpcServer object |
java.util.Date |
getCreationDate(User user,
java.lang.String collectionName)
|
byte[] |
getDocument(User user,
java.lang.String name,
java.lang.String encoding,
int prettyPrint)
This method is provided to retrieve a document with encodings other than UTF-8. |
byte[] |
getDocument(User user,
java.lang.String name,
java.lang.String encoding,
int prettyPrint,
java.lang.String stylesheet)
This method is provided to retrieve a document with encodings other than UTF-8. |
java.lang.String |
getDocumentAsString(User user,
java.lang.String name,
int prettyPrint)
Retrieve a document. |
java.lang.String |
getDocumentAsString(User user,
java.lang.String name,
int prettyPrint,
java.lang.String stylesheet)
Retrieve a document. |
java.util.Vector |
getDocumentListing(User user)
get a list of all documents contained in the repository. |
java.util.Vector |
getDocumentListing(User user,
java.lang.String collection)
get a list of all documents contained in the collection. |
java.util.Vector |
getGroups(User user)
|
int |
getHits(User user,
int resultId)
Gets the hits attribute of the RpcServer object |
java.util.Vector |
getIndexedElements(User user,
java.lang.String collectionName,
boolean inclusive)
|
java.util.Hashtable |
getPermissions(User user,
java.lang.String docName)
Gets the permissions attribute of the RpcServer object |
java.util.Vector |
getTimestamps(User user,
java.lang.String documentName)
|
java.util.Hashtable |
getUser(User user,
java.lang.String name)
Gets the user attribute of the RpcServer object |
java.util.Vector |
getUsers(User user)
|
boolean |
hasDocument(User user,
java.lang.String name)
does a document called name exist in the repository? |
java.util.Hashtable |
listCollectionPermissions(User user,
java.lang.String name)
|
java.util.Hashtable |
listDocumentPermissions(User user,
java.lang.String name)
|
boolean |
parse(User user,
byte[] xmlData,
java.lang.String docName)
parse an XML document and store it into the database. |
boolean |
parse(User user,
byte[] xmlData,
java.lang.String docName,
int overwrite)
parse an XML document and store it into the database. |
boolean |
parse(User user,
java.lang.String xml,
java.lang.String docName)
Description of the Method |
boolean |
parse(User user,
java.lang.String xml,
java.lang.String docName,
int overwrite)
Description of the Method |
boolean |
parseLocal(User user,
java.lang.String localFile,
java.lang.String docName,
boolean replace)
Parse a file previously uploaded with upload. |
java.util.Vector |
query(User user,
byte[] xpath)
|
java.util.Vector |
query(User user,
java.lang.String xpath)
Execute XPath query and return a list of results. |
java.lang.String |
query(User user,
java.lang.String xpath,
int howmany,
int start,
int prettyPrint)
execute XPath query and return howmany nodes from the result set, starting at position start . |
java.lang.String |
query(User user,
java.lang.String xpath,
int howmany,
int start,
int prettyPrint,
java.lang.String sortExpr)
execute XPath query and return howmany nodes from the result set, starting at position start . |
java.util.Vector |
query(User user,
java.lang.String xpath,
java.lang.String docId,
java.lang.String s_id)
|
java.util.Hashtable |
queryP(User user,
byte[] xpath)
|
java.util.Hashtable |
queryP(User user,
byte[] xpath,
byte[] sortExpr)
|
java.util.Hashtable |
queryP(User user,
byte[] xpath,
java.lang.String docName,
java.lang.String s_id)
|
java.util.Hashtable |
queryP(User user,
byte[] xpath,
java.lang.String docName,
java.lang.String s_id,
byte[] sortExpr)
|
java.util.Hashtable |
querySummary(User user,
int resultId)
Description of the Method |
java.util.Hashtable |
querySummary(User user,
java.lang.String xpath)
execute XPath query and return a summary of hits per document and hits per doctype. |
void |
releaseQueryResult(int handle)
|
boolean |
remove(User user,
java.lang.String docName)
remove a document from the repository. |
boolean |
removeCollection(User user,
java.lang.String name)
Description of the Method |
boolean |
removeUser(User user,
java.lang.String name)
Description of the Method |
byte[] |
retrieve(User user,
int resultId,
int num,
int prettyPrint,
java.lang.String encoding)
Description of the Method |
byte[] |
retrieve(User user,
java.lang.String doc,
java.lang.String id)
retrieve a single node from a document. |
byte[] |
retrieve(User user,
java.lang.String doc,
java.lang.String id,
int prettyPrint)
retrieve a single node from a document. |
byte[] |
retrieve(User user,
java.lang.String doc,
java.lang.String id,
int prettyPrint,
java.lang.String encoding)
retrieve a single node from a document. |
java.lang.String |
retrieveAsString(User user,
java.lang.String doc,
java.lang.String id,
int prettyPrint)
|
java.util.Vector |
scanIndexTerms(User user,
java.lang.String collectionName,
java.lang.String start,
java.lang.String end,
boolean inclusive)
|
boolean |
setPermissions(User user,
java.lang.String resource,
int permissions)
|
boolean |
setPermissions(User user,
java.lang.String resource,
java.lang.String permissions)
Sets the permissions attribute of the RpcServer object |
boolean |
setPermissions(User user,
java.lang.String resource,
java.lang.String owner,
java.lang.String ownerGroup,
int permissions)
|
boolean |
setPermissions(User user,
java.lang.String resource,
java.lang.String owner,
java.lang.String ownerGroup,
java.lang.String permissions)
Sets the permissions attribute of the RpcServer object |
boolean |
setUser(User user,
java.lang.String name,
java.lang.String password,
java.util.Vector groups)
|
boolean |
setUser(User user,
java.lang.String name,
java.lang.String password,
java.util.Vector groups,
java.lang.String home)
Sets the password attribute of the RpcServer object |
boolean |
shutdown(User user)
Shut down the database. |
boolean |
sync(User user)
|
java.lang.String |
upload(User user,
byte[] data,
int length)
An alternative to parse() for larger XML documents. |
java.lang.String |
upload(User user,
java.lang.String file,
byte[] data,
int length)
An alternative to parse() for larger XML documents. |
int |
xupdate(User user,
java.lang.String collectionName,
byte[] xupdate)
|
int |
xupdateResource(User user,
java.lang.String resource,
byte[] xupdate)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int MIN_CONNECT
protected static final int MAX_CONNECT
protected org.exist.xmlrpc.RpcServer.ConnectionPool pool
Constructor Detail |
public RpcServer(Configuration conf) throws EXistException
conf
- Description of the Parameter
EXistException
- Description of the ExceptionMethod Detail |
public boolean createCollection(User user, java.lang.String name) throws EXistException, PermissionDeniedException
createCollection
in interface RpcAPI
name
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic java.lang.String createId(User user, java.lang.String collection) throws EXistException, PermissionDeniedException
collection
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic int executeQuery(User user, java.lang.String xpath) throws EXistException, PermissionDeniedException
executeQuery
in interface RpcAPI
xpath
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic int executeQuery(User user, byte[] xpath, java.lang.String encoding) throws EXistException, PermissionDeniedException
executeQuery
in interface RpcAPI
xpath
- Description of the Parameterencoding
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic int executeQuery(User user, byte[] xpath) throws EXistException, PermissionDeniedException
executeQuery
in interface RpcAPI
xpath
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic java.util.Hashtable getCollectionDesc(User user, java.lang.String rootCollection) throws EXistException, PermissionDeniedException
getCollectionDesc
in interface RpcAPI
rootCollection
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic byte[] getDocument(User user, java.lang.String name, java.lang.String encoding, int prettyPrint) throws EXistException, PermissionDeniedException
getDocument
in interface RpcAPI
name
- Description of the Parameterencoding
- Description of the ParameterprettyPrint
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic byte[] getDocument(User user, java.lang.String name, java.lang.String encoding, int prettyPrint, java.lang.String stylesheet) throws EXistException, PermissionDeniedException
getDocument
in interface RpcAPI
name
- Description of the Parameterencoding
- Description of the ParameterprettyPrint
- Description of the Parameterstylesheet
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic java.lang.String getDocumentAsString(User user, java.lang.String name, int prettyPrint) throws EXistException, PermissionDeniedException
getDocumentAsString
in interface RpcAPI
EXistException
PermissionDeniedException
public java.lang.String getDocumentAsString(User user, java.lang.String name, int prettyPrint, java.lang.String stylesheet) throws EXistException, PermissionDeniedException
getDocumentAsString
in interface RpcAPI
EXistException
PermissionDeniedException
public java.util.Vector getDocumentListing(User user) throws EXistException, PermissionDeniedException
getDocumentListing
in interface RpcAPI
user
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic java.util.Vector getDocumentListing(User user, java.lang.String collection) throws EXistException, PermissionDeniedException
getDocumentListing
in interface RpcAPI
collection
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic java.util.Hashtable listDocumentPermissions(User user, java.lang.String name) throws EXistException, PermissionDeniedException
listDocumentPermissions
in interface RpcAPI
EXistException
PermissionDeniedException
public java.util.Hashtable listCollectionPermissions(User user, java.lang.String name) throws EXistException, PermissionDeniedException
listCollectionPermissions
in interface RpcAPI
EXistException
PermissionDeniedException
public int getHits(User user, int resultId) throws EXistException, PermissionDeniedException
getHits
in interface RpcAPI
resultId
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic java.util.Hashtable getPermissions(User user, java.lang.String docName) throws EXistException, PermissionDeniedException
getPermissions
in interface RpcAPI
docName
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic java.util.Date getCreationDate(User user, java.lang.String collectionName) throws PermissionDeniedException, EXistException
getCreationDate
in interface RpcAPI
PermissionDeniedException
EXistException
public java.util.Vector getTimestamps(User user, java.lang.String documentName) throws PermissionDeniedException, EXistException
getTimestamps
in interface RpcAPI
PermissionDeniedException
EXistException
public java.util.Hashtable getUser(User user, java.lang.String name) throws EXistException, PermissionDeniedException
getUser
in interface RpcAPI
user
- Description of the Parametername
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic java.util.Vector getUsers(User user) throws EXistException, PermissionDeniedException
getUsers
in interface RpcAPI
EXistException
PermissionDeniedException
public java.util.Vector getGroups(User user) throws EXistException, PermissionDeniedException
getGroups
in interface RpcAPI
EXistException
PermissionDeniedException
public java.util.Vector getIndexedElements(User user, java.lang.String collectionName, boolean inclusive) throws EXistException, PermissionDeniedException
getIndexedElements
in interface RpcAPI
EXistException
PermissionDeniedException
public java.util.Vector scanIndexTerms(User user, java.lang.String collectionName, java.lang.String start, java.lang.String end, boolean inclusive) throws PermissionDeniedException, EXistException
scanIndexTerms
in interface RpcAPI
PermissionDeniedException
EXistException
public boolean hasDocument(User user, java.lang.String name) throws EXistException, PermissionDeniedException
name
exist in the repository?
hasDocument
in interface RpcAPI
name
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic boolean parse(User user, byte[] xmlData, java.lang.String docName) throws EXistException, PermissionDeniedException
docName
. Some xmlrpc clients seem to
have problems with character encodings when sending xml content. To
avoid this, parse() accepts the xml document content as byte[].
parse
in interface RpcAPI
xmlData
- the document's XML content as UTF-8
encoded array of bytes.docName
- the document's nameuser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic boolean parse(User user, byte[] xmlData, java.lang.String docName, int overwrite) throws EXistException, PermissionDeniedException
docName
. Some xmlrpc clients seem to
have problems with character encodings when sending xml content. To
avoid this, parse() accepts the xml document content as byte[].
parse
in interface RpcAPI
xmlData
- the document's XML content as UTF-8
encoded array of bytes.docName
- the document's nameoverwrite
- replace an existing document with
the same name? (1=yes, 0=no)user
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic boolean parse(User user, java.lang.String xml, java.lang.String docName, int overwrite) throws EXistException, PermissionDeniedException
parse
in interface RpcAPI
xml
- Description of the ParameterdocName
- Description of the Parameteroverwrite
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic boolean parseLocal(User user, java.lang.String localFile, java.lang.String docName, boolean replace) throws EXistException, PermissionDeniedException, org.xml.sax.SAXException
parseLocal
in interface RpcAPI
user
- localFile
-
EXistException
java.io.IOException
PermissionDeniedException
org.xml.sax.SAXException
public java.lang.String upload(User user, byte[] data, int length) throws EXistException, PermissionDeniedException
RpcAPI
upload
in interface RpcAPI
user
- data
- the current chunklength
- total length of the file
PermissionDeniedException
EXistException
public java.lang.String upload(User user, java.lang.String file, byte[] data, int length) throws EXistException, PermissionDeniedException
RpcAPI
upload
in interface RpcAPI
user
- data
- the current chunklength
- total length of the file
PermissionDeniedException
EXistException
public boolean parse(User user, java.lang.String xml, java.lang.String docName) throws EXistException, PermissionDeniedException
parse
in interface RpcAPI
xml
- Description of the ParameterdocName
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic java.util.Hashtable queryP(User user, byte[] xpath) throws EXistException, PermissionDeniedException
queryP
in interface RpcAPI
EXistException
PermissionDeniedException
public java.util.Hashtable queryP(User user, byte[] xpath, byte[] sortExpr) throws EXistException, PermissionDeniedException
queryP
in interface RpcAPI
EXistException
PermissionDeniedException
public java.util.Hashtable queryP(User user, byte[] xpath, java.lang.String docName, java.lang.String s_id) throws EXistException, PermissionDeniedException
queryP
in interface RpcAPI
EXistException
PermissionDeniedException
public java.util.Hashtable queryP(User user, byte[] xpath, java.lang.String docName, java.lang.String s_id, byte[] sortExpr) throws EXistException, PermissionDeniedException
queryP
in interface RpcAPI
EXistException
PermissionDeniedException
public void releaseQueryResult(int handle)
releaseQueryResult
in interface RpcAPI
public java.util.Vector query(User user, byte[] xpath) throws EXistException, PermissionDeniedException
query
in interface RpcAPI
EXistException
PermissionDeniedException
public java.util.Vector query(User user, java.lang.String xpath) throws EXistException, PermissionDeniedException
RpcAPI
hamlet.xml | 8398 |
hamlet.xml | 8399 |
You may use this information with the retrieve-call to retrieve the actual nodes.
Otherwise, if the result is a set of values, each value will be converted to string. In this case the return type is an array of strings String[].
query
in interface RpcAPI
xpath
- the XPath query to execute.user
-
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic java.util.Vector query(User user, java.lang.String xpath, java.lang.String docId, java.lang.String s_id) throws EXistException, PermissionDeniedException
query
in interface RpcAPI
EXistException
PermissionDeniedException
public java.lang.String query(User user, java.lang.String xpath, int howmany, int start, int prettyPrint) throws EXistException, PermissionDeniedException
start
. If prettyPrint
is
set to >0 (true), results are pretty printed.
query
in interface RpcAPI
xpath
- the XPath query to executehowmany
- maximum number of results to
return.start
- item in the result set to start
with.prettyPrint
- turn on pretty printing if >0.user
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic java.lang.String query(User user, java.lang.String xpath, int howmany, int start, int prettyPrint, java.lang.String sortExpr) throws EXistException, PermissionDeniedException
start
. If prettyPrint
is
set to >0 (true), results are pretty printed.
query
in interface RpcAPI
xpath
- the XPath query to executehowmany
- maximum number of results to
return.start
- item in the result set to start
with.prettyPrint
- turn on pretty printing if >0.sortExpr
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic java.util.Hashtable querySummary(User user, int resultId) throws EXistException, PermissionDeniedException
querySummary
in interface RpcAPI
resultId
- Description of the Parameteruser
- Description of the Parameter
PermissionDeniedException
- Description of the Exception
EXistException
- Description of the Exceptionpublic java.util.Hashtable querySummary(User user, java.lang.String xpath) throws EXistException, PermissionDeniedException
querySummary
in interface RpcAPI
xpath
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic boolean remove(User user, java.lang.String docName) throws EXistException, PermissionDeniedException
remove
in interface RpcAPI
docName
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic boolean removeCollection(User user, java.lang.String name) throws EXistException, PermissionDeniedException
removeCollection
in interface RpcAPI
name
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic boolean removeUser(User user, java.lang.String name) throws EXistException, PermissionDeniedException
removeUser
in interface RpcAPI
user
- Description of the Parametername
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic byte[] retrieve(User user, java.lang.String doc, java.lang.String id) throws EXistException, PermissionDeniedException
retrieve
in interface RpcAPI
doc
- the document containing the nodeid
- the node's internal iduser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic byte[] retrieve(User user, java.lang.String doc, java.lang.String id, int prettyPrint) throws EXistException, PermissionDeniedException
retrieve
in interface RpcAPI
doc
- the document containing the nodeid
- the node's internal idprettyPrint
- result is pretty printed if >0user
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic byte[] retrieve(User user, java.lang.String doc, java.lang.String id, int prettyPrint, java.lang.String encoding) throws EXistException, PermissionDeniedException
retrieve
in interface RpcAPI
doc
- the document containing the nodeid
- the node's internal idprettyPrint
- result is pretty printed if >0encoding
- character encoding to useuser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic java.lang.String retrieveAsString(User user, java.lang.String doc, java.lang.String id, int prettyPrint) throws EXistException, PermissionDeniedException
retrieveAsString
in interface RpcAPI
EXistException
PermissionDeniedException
public byte[] retrieve(User user, int resultId, int num, int prettyPrint, java.lang.String encoding) throws EXistException, PermissionDeniedException
retrieve
in interface RpcAPI
resultId
- Description of the Parameternum
- Description of the ParameterprettyPrint
- Description of the Parameterencoding
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic boolean setPermissions(User user, java.lang.String resource, java.lang.String permissions) throws EXistException, PermissionDeniedException
setPermissions
in interface RpcAPI
user
- The new permissions valueresource
- The new permissions valuepermissions
- The new permissions value
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic boolean setPermissions(User user, java.lang.String resource, java.lang.String owner, java.lang.String ownerGroup, java.lang.String permissions) throws EXistException, PermissionDeniedException
setPermissions
in interface RpcAPI
user
- The new permissions valueresource
- The new permissions valuepermissions
- The new permissions valueowner
- The new permissions valueownerGroup
- The new permissions value
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic boolean setPermissions(User user, java.lang.String resource, int permissions) throws EXistException, PermissionDeniedException
setPermissions
in interface RpcAPI
EXistException
PermissionDeniedException
RpcAPI.setPermissions(org.exist.security.User, java.lang.String, int)
public boolean setPermissions(User user, java.lang.String resource, java.lang.String owner, java.lang.String ownerGroup, int permissions) throws EXistException, PermissionDeniedException
setPermissions
in interface RpcAPI
EXistException
PermissionDeniedException
RpcAPI.setPermissions(org.exist.security.User, java.lang.String, java.lang.String, java.lang.String, int)
public boolean setUser(User user, java.lang.String name, java.lang.String password, java.util.Vector groups, java.lang.String home) throws EXistException, PermissionDeniedException
setUser
in interface RpcAPI
user
- The new password valuename
- The new password valuepassword
- The new password valuegroups
- The new user value
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic boolean setUser(User user, java.lang.String name, java.lang.String password, java.util.Vector groups) throws EXistException, PermissionDeniedException
setUser
in interface RpcAPI
EXistException
PermissionDeniedException
public int xupdate(User user, java.lang.String collectionName, byte[] xupdate) throws PermissionDeniedException, EXistException, org.xml.sax.SAXException
xupdate
in interface RpcAPI
PermissionDeniedException
EXistException
org.xml.sax.SAXException
public int xupdateResource(User user, java.lang.String resource, byte[] xupdate) throws PermissionDeniedException, EXistException, org.xml.sax.SAXException
xupdateResource
in interface RpcAPI
PermissionDeniedException
EXistException
org.xml.sax.SAXException
public boolean shutdown(User user) throws PermissionDeniedException
RpcAPI
shutdown
in interface RpcAPI
PermissionDeniedException
public boolean sync(User user)
sync
in interface RpcAPI
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |