|
Content Manager OnDemand V8.5 WEK APIs |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.edms.od.ODServer
public class ODServer
A class representing a connection to an OnDemand server.
From this class you can logon to an OnDemand Server, logoff from an OnDemand Server, change the user's password,
get a listing of OnDemand Folders that are available to the user, and open an OnDemand Folder (ODFolder) for document searches
and retrieval.
The ODServer object is the base object of a single ODWEK Instance.
All other ODWEK (OnDemand Web Enablement Kit) objects such as ODFolder, ODHit,
and etc. will be based on this ODServer object.
This grouping of objects will be referred to in this JavaDoc as a single ODWEK Instance.
WARNING:
It is the application developer's responsibility to limit concurrent access to a single ODWEK Instance. Failure to do so
will result in unexpected results. If the client application requires more throughput, then additional ODWEK Instances should be
initialized to handle an increased number of threads.
For Example: If the application was to make two simultaneous ODFolder.Search() calls against a single ODWEK Instance,
the second search will be blocked until the first completes. Best Usage here would be to have a separate ODWEK Instance to
handle each ODFolder.search() call separately.
(c) Copyright IBM Corp. 1993, 2003. All Rights Reserved
ODServer.ODServer(ODConfig),
ODServer.ODServer(),
ODServer.cancel(),
Serialized Form| Constructor Summary | |
|---|---|
ODServer()
Deprecated. Use ODServer.ODServer(ODConfig cfg). Removed v8.4. |
|
ODServer(ODConfig cfg)
The class constructor. |
|
| Method Summary | |
|---|---|
ODHold |
addHold(java.lang.String name,
java.lang.String desc)
Add a new Hold Definition to the OnDemand Server. |
void |
cancel()
Cancel the current search or retrieve operation. |
void |
changePassword(java.lang.String newPassword)
Change the user's password. |
void |
changePassword(java.lang.String server,
java.lang.String user,
java.lang.String password,
java.lang.String newPassword)
Change the user's password. |
long |
getAnnotationAddMask()
Get the mask to determine which types of annotations can be added, and what the default is set to. |
ODApplicationGroup |
getApplicationGroup(long id)
Get an ODApplicationGroup object. |
ODApplicationGroup |
getApplicationGroup(java.lang.String name)
Get an ODApplicationGroup object. |
java.lang.String[] |
getApplicationGroupNames()
Get String[] of names for all Application Groups available to this user/server. |
java.lang.String[] |
getApplicationGroupNames(java.lang.String criteria)
Get String[] of Application Group names that match the criteria. |
java.util.Enumeration |
getCabinets()
Get the Cabinets defined for this ODServer. |
char |
getConnectType()
Get the connection type used during logon. |
long |
getCurrentDate(char qual)
Return the current date in the OnDemand Internal date format. |
java.lang.String |
getExternalDate(long internalDate,
java.lang.String fmt,
char qual)
Convert an OnDemand Internal date format to a formatted string |
java.lang.String |
getFolderDescription(java.lang.String fldName)
Get the folder description for the specified folder. |
java.util.Enumeration |
getFolderNames()
Get the folder names. |
java.util.Enumeration |
getFolderNames(java.lang.String criteria)
Get the list of folder names that match the search criteria. |
java.util.Enumeration |
getFolders()
Return an Enumeration of all ODFolder objects available to this user/server. |
java.util.Enumeration |
getFolders(java.lang.String criteria)
Return an Enumeration of all ODFolder objects available to this user/server, limited by the search criteria specified. |
java.util.Enumeration |
getHolds()
Get an enumeration of ODHold objects that are defined for this OnDemand Server/User. |
long |
getInternalDate(java.lang.String date,
java.lang.String fmt,
char qual)
Convert date string to OnDemand Internal date format. |
java.lang.String |
getMessageOfTheDay()
|
int |
getNumCabinets()
Get the number of Cabinets defined for this ODServer. |
int |
getNumFolders()
Get the number of folders available, based on the user permissions associated with this ODServer object. |
int |
getNumFolders(java.lang.String criteria)
Get the number of folders. |
java.lang.String |
getOS()
Get the OS type that the OnDemand Server is running on. |
java.lang.String |
getPassword()
Return the user's password. |
int |
getPort()
Get the port used for logon. |
java.lang.String |
getServerName()
Get the server name. |
java.lang.String[] |
getServerPrinters()
Return a list of server printers. |
char |
getServerPrinterType(java.lang.String printer)
Return the type of the specified server printer. |
long |
getServerTimeoutValue()
Get the server timeout value. |
java.util.Hashtable |
getTransformViewersForDocType(char doctype)
Get a listing of Transform viewer names that are defined for a specific docType. |
ODUser |
getUser()
Get the ODUser object for the current user. |
java.lang.String |
getUserAlias()
Get the alias of the user. |
java.lang.String |
getUserId()
Get the name of the user. |
java.lang.String |
getVersion()
Get the ODWEK Version string for this version of the ODApi.jar. |
void |
initialize(java.lang.String applicationName)
Initialize the connection to the OnDemand server. |
void |
initialize(java.lang.String configDir,
java.lang.String applicationName)
Deprecated. Use ODServer.initialize(String applicationName). Removed v8.4. |
void |
initialize(java.lang.String configDir,
java.lang.String applicationName,
int code_page)
Deprecated. Use ODServer.initialize(String applicationName). Removed v8.4. |
boolean |
isInitialized()
Determine whether the ODServer object is currently initialized. |
boolean |
isServerTimedOut()
Get the server timeout status. |
boolean |
keepServerAlive()
Keep the connection alive by resetting the server timeout timer. |
void |
logoff()
This method will log the user off of the OD server. |
void |
logon()
This method is used to logon to the server. |
void |
logon(java.lang.String server,
java.lang.String user,
java.lang.String password)
This method is used to logon to the OnDemand server. |
void |
logon(java.lang.String server,
java.lang.String user,
java.lang.String password,
char connectType,
int port,
java.lang.String resv)
Deprecated. Use ODServer#logon(ODServer,User, Password). |
void |
logon(java.lang.String server,
java.lang.String user,
java.lang.String password,
java.lang.String new_password)
This method is used to logon to the OnDemand server. |
ODFolder |
openFolder(java.lang.String fldName)
This method will open the specified folder. |
void |
setConnectType(char connectType)
This method is used to set the server connection type. |
void |
setPassword(java.lang.String password)
Set the password for the user. |
void |
setPort(int port)
Set the OD port number. |
void |
setServerName(java.lang.String server)
Set the name of the OnDemand server to logon with. |
void |
setSSL(boolean useSSL,
java.lang.String keyRingFile,
java.lang.String keyStashFile)
Set details for SSL usages with this ODServer. |
void |
setUserAlias(java.lang.String user_alias)
Set the name of the user alias to log onto OD with. |
void |
setUserId(java.lang.String user)
Set the name of the user to log onto OD with. |
void |
terminate()
Terminate the connection to the OnDemand server. |
void |
unifiedLogon(java.lang.String server)
This method will use UnifiedLogon to logon to the server. |
byte[] |
viewerPassthru(java.lang.String queryStr)
This method is used to pass ODWEK document viewer requests for data through to the ODWEK code. |
byte[] |
xmlParse(java.lang.String xml,
int action,
boolean continueOnError,
int exportFlags,
int exportEncoding,
java.lang.String exportSchemaLocation,
ODCallback odc)
Interface to arsxml batch administration client. |
byte[] |
xmlParse(java.lang.String xml,
int action,
java.util.Properties xmlProperties,
ODCallback odc)
Interface to arsxml batch administration client. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ODServer()
ODServer.ODServer(ODConfig cfg). Removed v8.4.
ODServer.ODServer(ODConfig)public ODServer(ODConfig cfg)
ODConfig object which contains all the configuration details for this
ODServer.
cfg - ODConfig object with the configuration details.ODConfig| Method Detail |
|---|
public void initialize(java.lang.String applicationName)
throws ODException
applicationName - This is the application name that will be invoked by the ODWEK
viewers via URL when requesting addition document data. This should include
the relative webserver path.
odServer.initialze("/CustomServlet/");
ODExceptionODServer.initialize(String configDir, String applicationName),
ODServer.viewerPassthru(java.lang.String)
public void initialize(java.lang.String configDir,
java.lang.String applicationName)
throws ODException
ODServer.initialize(String applicationName). Removed v8.4.
configDir - The directory where the arswww.ini file exists.applicationName - This is the application name that will be invoked by the ODWEK
viewers via URL when requesting addition document data. This should include
the relative webserver path.
odServer.initialze("/CustomServlet/");
ODException#setApplicationName
public void initialize(java.lang.String configDir,
java.lang.String applicationName,
int code_page)
throws ODException
ODServer.initialize(String applicationName). Removed v8.4.
configDir - The directory where the arswww.ini file exists.applicationName - This is the application name that will be invoked by the ODWEK
viewers via URL when requesting addition document data. This should include
the relative webserver path.
odServer.initialze("/CustomServlet/");
ODException#setApplicationNamepublic void terminate()
#initialize(),
ODServer.isInitialized()public boolean isInitialized()
public void cancel()
public void logon(java.lang.String server,
java.lang.String user,
java.lang.String password,
char connectType,
int port,
java.lang.String resv)
throws java.lang.Exception
ODServer#logon(ODServer,User, Password).
server - The name of the OD server.user - The name of the user.password - The user's password.
java.lang.Exception
public void logon(java.lang.String server,
java.lang.String user,
java.lang.String password)
throws java.lang.Exception
server - The name of the OD server.user - The name of the user.password - The user's password.
java.lang.ExceptionODServer.setSSL(boolean, java.lang.String, java.lang.String)
public void logon(java.lang.String server,
java.lang.String user,
java.lang.String password,
java.lang.String new_password)
throws java.lang.Exception
server - The name of the OD server.user - The name of the user.password - The user's password.new_password - A new password to be set if the current password has expired.
java.lang.ExceptionODServer.initialize(java.lang.String),
ODServer.setSSL(boolean, java.lang.String, java.lang.String)
public void unifiedLogon(java.lang.String server)
throws java.lang.Exception
server - The name of the OD server.
java.lang.ExceptionODServer.setSSL(boolean, java.lang.String, java.lang.String)
public void logon()
throws java.lang.Exception
ODServer.setServerName(java.lang.String),
ODServer.setUserId(java.lang.String) and ODServer.setPassword(java.lang.String) have been called.
java.lang.ExceptionODServer.initialize(java.lang.String),
ODServer.setUserId(java.lang.String),
ODServer.setPassword(java.lang.String),
ODServer.setServerName(java.lang.String),
ODServer.setSSL(boolean, java.lang.String, java.lang.String)
public void logoff()
throws java.lang.Exception
java.lang.Exception
public void changePassword(java.lang.String server,
java.lang.String user,
java.lang.String password,
java.lang.String newPassword)
throws java.lang.Exception
server - The name of the OD server.user - The name of the user.password - The user's password.newPassword - The user's new password.
java.lang.Exception - "Incorrect Logon Parameters" if Server, UserID or Password are not set.
public void changePassword(java.lang.String newPassword)
throws java.lang.Exception
ODServer.setServerName(java.lang.String),
ODServer.setUserId(java.lang.String) and ODServer.setPassword(java.lang.String) have been called.
newPassword - The user's new password.
java.lang.Exception - "Incorrect Logon Parameters" if Server, UserID or Password are not set.
public ODFolder openFolder(java.lang.String fldName)
throws java.lang.Exception
fldName - Name of folder to open.
java.lang.ExceptionODFolder
public byte[] viewerPassthru(java.lang.String queryStr)
throws java.lang.Exception
queryStr - The query string as sent from the ODWEK document viewer.
java.lang.ExceptionODServer#retrieve
public java.util.Enumeration getFolders(java.lang.String criteria)
throws java.lang.Exception
criteria - The search criteria to be used to limit the folder list. Can include the wildcard '%'.
Examples include: 'Credit%', 'C%', etc... A complete folder name may be specified as well which results in only one folder being returned.
java.lang.ExceptionODFolder.open()
public int getNumFolders()
throws java.lang.Exception
java.lang.Exception
public int getNumFolders(java.lang.String criteria)
throws java.lang.Exception
criteria - Folder search criteria. This can include wild cards.
Examples include: 'Credit%', 'C%', etc...
A complete folder name may be specified as well which
results in only one folder being returned.
java.lang.Exception
public java.util.Enumeration getFolderNames()
throws java.lang.Exception
java.lang.ExceptionODServer.openFolder(java.lang.String)
public java.util.Enumeration getFolderNames(java.lang.String criteria)
throws java.lang.Exception
criteria - Folder search criteria. This can include wild cards.
Examples include: 'Credit%', 'C%', etc...
A complete folder name may be specified as well which
results in only one folder name being returned.
java.lang.ExceptionODServer.openFolder(java.lang.String)
public java.lang.String getFolderDescription(java.lang.String fldName)
throws java.lang.Exception
fldName - The name of the folder to retrieve a description for.
java.lang.Exceptionpublic boolean isServerTimedOut()
public long getServerTimeoutValue()
public boolean keepServerAlive()
public java.lang.String getServerName()
public void setServerName(java.lang.String server)
server - Name of the OnDemand server.ODServer.logon(java.lang.String, java.lang.String, java.lang.String, char, int, java.lang.String)public java.lang.String getUserId()
public java.lang.String getUserAlias()
ODServer.setUserAlias(java.lang.String)public void setUserId(java.lang.String user)
user - The name of the user.public void setUserAlias(java.lang.String user_alias)
user_alias - The alias of the user.
KVW - CMVC 69695
public void setSSL(boolean useSSL,
java.lang.String keyRingFile,
java.lang.String keyStashFile)
boolean - Set to True if SSL port will be used.String - KeyRingFile Fully qualified path to the SSL Key Ring File.String - KeyStashFile Fully qualified path to the SSL Key Stash File.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - The user's password, to be used during logon.ODServer.changePassword(java.lang.String, java.lang.String, java.lang.String, java.lang.String)public char getConnectType()
ODConstant.CONNECT_TYPE_TCPIP
public void setConnectType(char connectType)
throws ODException
connectType - Connection type to use during logon.
ODExceptionODConstant.CONNECT_TYPE_TCPIP,
ODServer.logon(java.lang.String, java.lang.String, java.lang.String, char, int, java.lang.String)public int getPort()
ODServer.logon(java.lang.String, java.lang.String, java.lang.String, char, int, java.lang.String)public void setPort(int port)
port - OD port number
public java.lang.String[] getServerPrinters()
throws java.lang.Exception
java.lang.Exception
public char getServerPrinterType(java.lang.String printer)
throws java.lang.Exception
printer - The name of the printer
java.lang.ExceptionODServer.getServerPrinters(),
ODConstant.OD_PRT_TYPE_PRINT,
ODConstant.OD_PRT_TYPE_FAX,
ODConstant.OD_PRT_TYPE_PRINT_WITH_INFO
public java.util.Enumeration getFolders()
throws java.lang.Exception
java.lang.ExceptionODFolder.open()
public ODApplicationGroup getApplicationGroup(long id)
throws ODException
id - the numeric Application Group ID
ODExceptionODApplicationGroup
public ODApplicationGroup getApplicationGroup(java.lang.String name)
throws ODException
name - The name of the Application Group
ODExceptionODApplicationGroup
public java.lang.String[] getApplicationGroupNames()
throws java.lang.Exception
java.lang.ExceptionODServer#openApplicationGroup(String)
public java.lang.String[] getApplicationGroupNames(java.lang.String criteria)
throws java.lang.Exception
java.lang.ExceptionODServer#openApplicationGroup(String)
public ODUser getUser()
throws java.lang.Exception
ODUser object for the current user. This user object includes all the default user info as set
at the OnDemand server, as well as several user parameters that can be set via the ODUser class.
java.lang.ExceptionODUserpublic long getAnnotationAddMask()
System.out.println( " Can Add Public Annotations = " +
((ODServer.getAnnotationAddMask() & ODConstant.OD_SYSTEM_ANN_ADD_PUB_NOT_ALLOWED )== 0
? false : true ));
ODConstant.OD_SYSTEM_ANN_ADD_PUB_NOT_ALLOWED,
ODConstant.OD_SYSTEM_ANN_ADD_PRI_NOT_ALLOWED,
ODConstant.OD_SYSTEM_ANN_ADD_GRP_NOT_ALLOWED,
ODConstant.OD_SYSTEM_ANN_ADD_DEFAULT_PUBLIC,
ODConstant.OD_SYSTEM_ANN_ADD_DEFAULT_PRIVATE,
ODConstant.OD_SYSTEM_ANN_ADD_DEFAULT_GROUP
public java.util.Enumeration getCabinets()
throws java.lang.Exception
ODCabinet objects. Enumerator will be empty if there are zero cabinets
defined to this server.
java.lang.ExceptionODCabinet
public int getNumCabinets()
throws java.lang.Exception
java.lang.ExceptionODServer.getCabinets()
public java.lang.String getOS()
throws ODException
ODExceptionODConstant#SERVER_OS_AIX,
ODConstant#SERVER_OS_SUNOS,
ODConstant#SERVER_OS_HPUX,
ODConstant#SERVER_OS_LINUX,
ODConstant#SERVER_OS_WIN32,
ODConstant#SERVER_OS_OS400,
ODConstant#SERVER_OS_OS390
public java.util.Enumeration getHolds()
throws java.lang.Exception
java.lang.ExceptionODHold
public ODHold addHold(java.lang.String name,
java.lang.String desc)
throws ODException
ODExceptionto check if permissions will allow this user to add a Hold.
public byte[] xmlParse(java.lang.String xml,
int action,
java.util.Properties xmlProperties,
ODCallback odc)
throws java.lang.Exception
xml - This is data to be parsed by arsxml. It must be fully
composed XML.action - Action to take on input xml.xmlProperties - - array of keyword/value pairs
ContinueOnError Controls error handling.
true - Continue processing even if error encountered.
false - Stop processing if error encountered.
UpdateExisting Controls update handling.
true - If an object already exists, then update it instead of add.
false - If an object already exists, do not update it
ExportFlags Controls child object exporting.
Values are additive.
1 -- export applications
2 -- export permissions
4 -- export logical views
8 -- export dependent objects
ExportEncoding Codepage of exported data. Must be an Integer. Ignored for non export actions.
ExportSchemaLocation Path to include as part of noNamespaceSchemaLocation attribute. Must be a String.odc - Instance of ODCallback object for processBegin/End calls
ODException
java.lang.Exception
public byte[] xmlParse(java.lang.String xml,
int action,
boolean continueOnError,
int exportFlags,
int exportEncoding,
java.lang.String exportSchemaLocation,
ODCallback odc)
throws java.lang.Exception
xml - This is data to be parsed by arsxml. It must be fully
composed XML.action - Action to take on input xml.continueOnError - Continue processing even if error encountered.exportFlags - Controls child object exporting.exportEncoding - Codepage of exported data. Ignored for non export
actions.exportSchemaLocation - Path to include as part of
noNamespaceSchemaLocation attribute.odc - Instance of ODCallback object for processBegin/End calls
ODException
java.lang.Exception
public long getInternalDate(java.lang.String date,
java.lang.String fmt,
char qual)
date - String containing user readable date.fmt - String with date format of input date string.
Will use default date format if a date format is not specified.qual - ODConstant for date type.
ODConstant.ODDATE_DATE,
ODConstant.ODDATE_DATETIME,
ODConstant.ODDATE_TIME,
ODConstant.ODDATE_TZ_DATETIMEpublic long getCurrentDate(char qual)
qual - ODConstant for date type.
ODConstant.ODDATE_DATE,
ODConstant.ODDATE_DATETIME,
ODConstant.ODDATE_TIME,
ODConstant.ODDATE_TZ_DATETIME
public java.lang.String getExternalDate(long internalDate,
java.lang.String fmt,
char qual)
long - representing an internal date value.fmt - String with date format of input date string.
Will use default date format if a date format is not specified.qual - ODConstant for date type.
ODConstant.ODDATE_DATE,
ODConstant.ODDATE_DATETIME,
ODConstant.ODDATE_TIME,
ODConstant.ODDATE_TZ_DATETIME
public java.util.Hashtable getTransformViewersForDocType(char doctype)
throws java.lang.Exception
doctype -
java.lang.ExceptionODConstant.FileTypeAFP,
ODConstant.FileTypeLINEpublic java.lang.String getVersion()
public java.lang.String getMessageOfTheDay()
|
CM OnDemand V8.5 WEK Java APIs | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||