|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.senn.magic.util.DSUtils
public final class DSUtils
This class contains useful methods for DocuShare actions.
You need to include the necessary DocuShare jars (dsapi.jar) in your classpath to be able to use these methods.
| Method Summary | |
|---|---|
static com.xerox.docushare.rm.DSRMSession |
createRMSession(String host,
int port,
String user,
String password,
String domain)
The method creates a DocuShare RM-session with the provided credentials. |
static com.xerox.docushare.DSSession |
createSession(String host,
int port,
String user,
String password,
String domain)
The method creates a DocuShare session with the provided credentials. |
static com.xerox.docushare.DSObject |
getObject(String handle,
com.xerox.docushare.DSSession session)
This method gets the object with the specified handle. |
static boolean |
objectExists(com.xerox.docushare.DSHandle handle,
com.xerox.docushare.DSSession session)
This method checks if an object with specified handle exists |
static boolean |
objectExists(String handle,
com.xerox.docushare.DSSession session)
This method checks if an object with specified handle exists |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static com.xerox.docushare.DSSession createSession(String host,
int port,
String user,
String password,
String domain)
throws com.xerox.docushare.DSException
host - the DocuShare host (ie. "localhost" or "192.168.10.13")port - the DocuShare port (usually 1099)user - the DocuShare usernamepassword - the DocuShare passworddomain - the DocuShare domain (usually "DocuShare")
DSSession - a DocuShare session for the provided credentials
com.xerox.docushare.DSException
public static com.xerox.docushare.rm.DSRMSession createRMSession(String host,
int port,
String user,
String password,
String domain)
throws com.xerox.docushare.DSException
host - the DocuShare host (ie. "localhost" or "192.168.10.13")port - the DocuShare port (usually 1099)user - the DocuShare usernamepassword - the DocuShare passworddomain - the DocuShare domain (usually "DocuShare")
DSRMSession - a DocuShare RM session for the provided credentials
com.xerox.docushare.DSException
public static com.xerox.docushare.DSObject getObject(String handle,
com.xerox.docushare.DSSession session)
throws com.xerox.docushare.DSException
DSHandle instance. DSException if the object doesn't exist or is not accessible due
to ACL restrictions.
handle - the object handle as a Stringsession - the DocuShare session
DSObject - the object to which @param handle refers
com.xerox.docushare.DSException
public static boolean objectExists(String handle,
com.xerox.docushare.DSSession session)
throws com.xerox.docushare.DSException
handle - the object handle as a Stringsession - the DocuShare session
boolean - true if the object exists, false if it doesn't
com.xerox.docushare.DSExceptionobjectExists(DSHandle, DSSession)
public static boolean objectExists(com.xerox.docushare.DSHandle handle,
com.xerox.docushare.DSSession session)
throws com.xerox.docushare.DSException
handle - the object handle as a DSHandle objectsession - the DocuShare session
boolean - true if the object exists, false if it doesn't
com.xerox.docushare.DSExceptionobjectExists(String, DSSession)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||