|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.exist.xmlrpc.RpcConnection
Description of the Class
Field Summary | |
protected BrokerPool |
brokerPool
|
protected org.exist.xmlrpc.RpcServer.ConnectionPool |
connectionPool
|
protected javax.xml.parsers.DocumentBuilder |
docBuilder
|
protected java.util.WeakHashMap |
documentCache
|
protected Parser |
parser
|
protected java.util.TreeMap |
tempFiles
|
protected boolean |
terminate
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
RpcConnection(Configuration conf,
org.exist.xmlrpc.RpcServer.ConnectionPool pool)
Constructor for the RpcConnection object |
Method Summary | |
void |
createCollection(User user,
java.lang.String name)
Description of the Method |
java.lang.String |
createId(User user,
java.lang.String collName)
Description of the Method |
protected Value |
doQuery(User user,
java.lang.String xpath,
DocumentSet docs,
NodeSet context)
Description of the Method |
int |
executeQuery(User user,
java.lang.String xpath)
|
protected java.lang.String |
formatErrorMsg(java.lang.String message)
Description of the Method |
protected java.lang.String |
formatErrorMsg(java.lang.String type,
java.lang.String message)
|
java.util.Hashtable |
getCollectionDesc(User user,
java.lang.String rootCollection)
|
java.util.Date |
getCreationDate(User user,
java.lang.String collectionPath)
|
java.lang.String |
getDocument(User user,
java.lang.String name,
boolean prettyPrint,
java.lang.String encoding,
java.lang.String stylesheet)
|
java.util.Vector |
getDocumentListing(User user)
Gets the documentListing attribute of the RpcConnection object |
java.util.Vector |
getDocumentListing(User user,
java.lang.String name)
Gets the documentListing attribute of the RpcConnection object |
java.util.Vector |
getGroups(User user)
|
int |
getHits(User user,
int resultId)
Gets the hits attribute of the RpcConnection object |
java.util.Vector |
getIndexedElements(User user,
java.lang.String collectionName,
boolean inclusive)
|
java.util.Hashtable |
getPermissions(User user,
java.lang.String name)
Get permissions for the given collection or resource |
java.util.Vector |
getTimestamps(User user,
java.lang.String documentPath)
|
java.util.Hashtable |
getUser(User user,
java.lang.String name)
Gets the permissions attribute of the RpcConnection object |
java.util.Vector |
getUsers(User user)
|
boolean |
hasDocument(User user,
java.lang.String name)
|
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[] xml,
java.lang.String docName,
boolean replace)
|
boolean |
parseLocal(User user,
java.lang.String localFile,
java.lang.String docName,
boolean replace)
Parse a file previously uploaded with upload. |
protected java.lang.String |
printAll(DBBroker broker,
org.w3c.dom.NodeList resultSet,
int howmany,
int start,
boolean prettyPrint,
long queryTime,
java.lang.String encoding)
|
protected java.lang.String |
printValues(ValueSet resultSet,
int howmany,
int start,
boolean prettyPrint,
java.lang.String encoding)
|
java.util.Vector |
query(User user,
java.lang.String xpath)
|
java.lang.String |
query(User user,
java.lang.String xpath,
int howmany,
int start,
boolean prettyPrint,
boolean summary,
java.lang.String encoding)
|
java.lang.String |
query(User user,
java.lang.String xpath,
int howmany,
int start,
boolean prettyPrint,
boolean summary,
java.lang.String encoding,
java.lang.String sortExpr)
|
java.util.Vector |
query(User user,
java.lang.String xpath,
java.lang.String docName,
java.lang.String s_id)
|
java.util.Hashtable |
queryP(User user,
java.lang.String xpath,
java.lang.String docName,
java.lang.String s_id,
java.lang.String sortBy)
|
void |
releaseQueryResult(int handle)
|
void |
remove(User user,
java.lang.String docName)
|
boolean |
removeCollection(User user,
java.lang.String name)
|
boolean |
removeUser(User user,
java.lang.String name)
|
java.lang.String |
retrieve(User user,
int resultId,
int num,
boolean prettyPrint,
java.lang.String encoding)
Description of the Method |
java.lang.String |
retrieve(User user,
java.lang.String docName,
java.lang.String s_id,
boolean prettyPrint,
java.lang.String encoding)
|
void |
run()
|
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,
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 RpcConnection object |
boolean |
setUser(User user,
java.lang.String name,
java.lang.String passwd,
java.util.Vector groups,
java.lang.String home)
Sets the password attribute of the RpcConnection object |
java.util.Hashtable |
summary(User user,
int resultId)
Description of the Method |
java.util.Hashtable |
summary(User user,
java.lang.String xpath)
Description of the Method |
boolean |
sync()
|
void |
synchronize()
|
void |
terminate()
|
java.lang.String |
upload(User user,
byte[] chunk,
int length,
java.lang.String fileName)
|
int |
xupdate(User user,
java.lang.String collectionName,
java.lang.String xupdate)
|
int |
xupdateResource(User user,
java.lang.String resource,
java.lang.String xupdate)
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected BrokerPool brokerPool
protected java.util.WeakHashMap documentCache
protected Parser parser
protected boolean terminate
protected javax.xml.parsers.DocumentBuilder docBuilder
protected org.exist.xmlrpc.RpcServer.ConnectionPool connectionPool
protected java.util.TreeMap tempFiles
Constructor Detail |
public RpcConnection(Configuration conf, org.exist.xmlrpc.RpcServer.ConnectionPool pool) throws EXistException
conf
- Description of the Parameter
EXistException
- Description of the ExceptionMethod Detail |
public void createCollection(User user, java.lang.String name) throws java.lang.Exception, PermissionDeniedException
name
- Description of the Parameteruser
- Description of the Parameter
java.lang.Exception
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic java.lang.String createId(User user, java.lang.String collName) throws EXistException
collName
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exceptionprotected Value doQuery(User user, java.lang.String xpath, DocumentSet docs, NodeSet context) throws java.lang.Exception
xpath
- Description of the Parameteruser
- Description of the Parameter
java.lang.Exception
- Description of the Exceptionpublic int executeQuery(User user, java.lang.String xpath) throws java.lang.Exception
java.lang.Exception
protected java.lang.String formatErrorMsg(java.lang.String message)
message
- Description of the Parameter
protected java.lang.String formatErrorMsg(java.lang.String type, java.lang.String message)
public java.util.Hashtable getCollectionDesc(User user, java.lang.String rootCollection) throws java.lang.Exception
java.lang.Exception
public java.lang.String getDocument(User user, java.lang.String name, boolean prettyPrint, java.lang.String encoding, java.lang.String stylesheet) throws java.lang.Exception
java.lang.Exception
public int xupdate(User user, java.lang.String collectionName, java.lang.String xupdate) throws EXistException, PermissionDeniedException, org.xml.sax.SAXException
EXistException
PermissionDeniedException
org.xml.sax.SAXException
public int xupdateResource(User user, java.lang.String resource, java.lang.String xupdate) throws EXistException, PermissionDeniedException, org.xml.sax.SAXException
EXistException
PermissionDeniedException
org.xml.sax.SAXException
public boolean sync()
public java.util.Vector getDocumentListing(User user) throws EXistException
user
- Description of the Parameter
EXistException
- Description of the Exceptionpublic java.util.Vector getDocumentListing(User user, java.lang.String name) throws EXistException, PermissionDeniedException
user
- 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
EXistException
PermissionDeniedException
public java.util.Hashtable listCollectionPermissions(User user, java.lang.String name) throws EXistException, PermissionDeniedException
EXistException
PermissionDeniedException
public int getHits(User user, int resultId) throws EXistException
resultId
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exceptionpublic java.util.Hashtable getPermissions(User user, java.lang.String name) throws EXistException, PermissionDeniedException
name
- 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 collectionPath) throws PermissionDeniedException, EXistException
PermissionDeniedException
EXistException
public java.util.Vector getTimestamps(User user, java.lang.String documentPath) throws PermissionDeniedException, EXistException
PermissionDeniedException
EXistException
public java.util.Hashtable getUser(User user, java.lang.String name) throws EXistException, PermissionDeniedException
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
EXistException
PermissionDeniedException
public java.util.Vector getGroups(User user) throws EXistException, PermissionDeniedException
EXistException
PermissionDeniedException
public boolean hasDocument(User user, java.lang.String name) throws java.lang.Exception
java.lang.Exception
public boolean parse(User user, byte[] xml, java.lang.String docName, boolean replace) throws java.lang.Exception
java.lang.Exception
public boolean parseLocal(User user, java.lang.String localFile, java.lang.String docName, boolean replace) throws EXistException, PermissionDeniedException, org.xml.sax.SAXException
user
- localFile
-
EXistException
java.io.IOException
PermissionDeniedException
org.xml.sax.SAXException
public java.lang.String upload(User user, byte[] chunk, int length, java.lang.String fileName) throws EXistException, java.io.IOException
EXistException
java.io.IOException
protected java.lang.String printAll(DBBroker broker, org.w3c.dom.NodeList resultSet, int howmany, int start, boolean prettyPrint, long queryTime, java.lang.String encoding) throws java.lang.Exception
java.lang.Exception
protected java.lang.String printValues(ValueSet resultSet, int howmany, int start, boolean prettyPrint, java.lang.String encoding) throws java.lang.Exception
java.lang.Exception
public java.lang.String query(User user, java.lang.String xpath, int howmany, int start, boolean prettyPrint, boolean summary, java.lang.String encoding) throws java.lang.Exception
java.lang.Exception
public java.lang.String query(User user, java.lang.String xpath, int howmany, int start, boolean prettyPrint, boolean summary, java.lang.String encoding, java.lang.String sortExpr) throws java.lang.Exception
java.lang.Exception
public java.util.Vector query(User user, java.lang.String xpath) throws java.lang.Exception
java.lang.Exception
public java.util.Vector query(User user, java.lang.String xpath, java.lang.String docName, java.lang.String s_id) throws java.lang.Exception
java.lang.Exception
public java.util.Hashtable queryP(User user, java.lang.String xpath, java.lang.String docName, java.lang.String s_id, java.lang.String sortBy) throws java.lang.Exception
java.lang.Exception
public void releaseQueryResult(int handle)
public void remove(User user, java.lang.String docName) throws java.lang.Exception
java.lang.Exception
public boolean removeCollection(User user, java.lang.String name) throws java.lang.Exception
java.lang.Exception
public boolean removeUser(User user, java.lang.String name) throws EXistException, PermissionDeniedException
EXistException
PermissionDeniedException
public java.lang.String retrieve(User user, java.lang.String docName, java.lang.String s_id, boolean prettyPrint, java.lang.String encoding) throws java.lang.Exception
java.lang.Exception
public java.lang.String retrieve(User user, int resultId, int num, boolean prettyPrint, java.lang.String encoding) throws java.lang.Exception
resultId
- Description of the Parameternum
- Description of the ParameterprettyPrint
- Description of the Parameterencoding
- Description of the Parameteruser
- Description of the Parameter
java.lang.Exception
- Description of the Exceptionpublic void run()
public boolean setPermissions(User user, java.lang.String resource, java.lang.String owner, java.lang.String ownerGroup, java.lang.String permissions) throws EXistException, PermissionDeniedException
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, java.lang.String owner, java.lang.String ownerGroup, int permissions) throws EXistException, PermissionDeniedException
EXistException
PermissionDeniedException
public boolean setUser(User user, java.lang.String name, java.lang.String passwd, java.util.Vector groups, java.lang.String home) throws EXistException, PermissionDeniedException
user
- The new password valuename
- The new password valuepasswd
- The new password valuegroups
- The new user value
EXistException
- Description of the Exception
PermissionDeniedException
- Description of the Exceptionpublic java.util.Hashtable summary(User user, java.lang.String xpath) throws java.lang.Exception
xpath
- Description of the Parameteruser
- Description of the Parameter
java.lang.Exception
- Description of the Exceptionpublic java.util.Hashtable summary(User user, int resultId) throws EXistException
resultId
- Description of the Parameteruser
- Description of the Parameter
EXistException
- Description of the Exceptionpublic java.util.Vector getIndexedElements(User user, java.lang.String collectionName, boolean inclusive) throws EXistException, PermissionDeniedException
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
PermissionDeniedException
EXistException
public void synchronize()
public void terminate()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |