public class ODServer
extends java.lang.Object
implements java.io.Serializable
ODFolder) for document searches
and retrieval. ODFolder, ODHit,
and etc. will be based on this ODServer object. | Constructor and Description |
|---|
ODServer()
Deprecated.
Use
ODServer.ODServer(ODConfig cfg). Removed v8.4. |
ODServer(ODConfig cfg)
The class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String[] |
getAllTransformViewerNames()
Get all ODTransform names as specified in the transform.xml
|
java.util.Enumeration |
getAllTransformViewers()
Get all ODTransform defined in the transform.xml
|
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.Hashtable |
getHeaders() |
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.util.Locale |
getLocale()
Get the Locale for this session.
|
java.lang.String |
getMessageOfTheDay() |
java.lang.String |
getMsgsLanguage()
Deprecated.
Use
ODServer.getLocale(). |
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 for the logged on user.
|
java.lang.String |
getServerVersion()
Get the OnDemand Server version string.
|
ODTransform |
getTransformViewer(java.lang.String vwrName)
Get the specified ODTransform as specified in the transform.xml
|
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.
|
boolean |
hasPermToLoad(java.lang.String fldrName,
java.lang.String applGrpName)
Determines if conditions are in place for the logged on user to perform the load
operations through ODWEK.
|
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 |
loadAddDoc(int numPages,
java.util.Hashtable idxs_vals,
byte[] b)
The second call made in a series that will load n number of documents as a single load.
|
void |
loadAddDoc(int numPages,
java.util.Hashtable idxs_vals,
java.io.File file)
The second call made in a series that will load n number of documents as a single load.
|
void |
loadCommit(java.lang.String agname,
java.lang.String appname)
The third call made in a series that will load n number of documents as a single load.
|
void |
loadInit()
The first call made in a series that will load n number of documents as a single load.
|
void |
loadReset()
An optional utility call that will reset the load process state back to uninitialized.
|
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.
|
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.
|
ODFolder |
openFolderByBasename(java.lang.String fldBaseName)
This method will open the specified folder.
|
void |
setConnectType(char connectType)
This method is used to set the server connection type.
|
void |
setEncryptionKey(java.lang.String key)
Set the encrypt key.
Document identifiers (docids) are now encrypted. |
void |
setLocale(java.util.Locale locale)
Set the Locale for this session.
|
void |
setMsgsLanguage(java.lang.String language)
Deprecated.
|
void |
setPassThruToken(java.lang.String passThruText,
int passThruSize,
byte[] passThruByteArray)
Method to set custom security tokens for Logon.
|
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.
|
void |
updateTraceLevel(java.lang.String szNewLevel)
Update the trace level at which events will be logged.
|
byte[] |
viewerPassthru(java.lang.String queryStr)
This method is used to pass ODWEK document viewer requests for data
through to the ODWEK code.
|
byte[] |
viewerPassthru(java.lang.String qs,
java.io.InputStream is)
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,
ODCallback odc)
Interface to arsxml batch administration client.
|
byte[] |
xmlParse(java.lang.String xml,
int action,
boolean continueOnError,
int exportFlags,
int exportEncoding,
java.lang.String exportSchemaLocation,
ODCallback odc)
Deprecated.
Use
ODServer.xmlParse(String, int, boolean, int, int, ODCallback). Deprecated at v10.5. |
byte[] |
xmlParse(java.lang.String xml,
int action,
java.util.Properties xmlProperties,
ODCallback odc)
Interface to arsxml batch administration client.
|
public ODServer()
ODServer.ODServer(ODConfig cfg). Removed v8.4.ODServer.ODServer(ODConfig)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, java.io.InputStream)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/");
ODExceptionpublic 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/");
ODExceptionpublic void terminate()
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(String, String, String).server - The name of the OD server.user - The name of the user.password - The user's password.java.lang.Exceptionpublic 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 setPassThruToken(java.lang.String passThruText,
int passThruSize,
byte[] passThruByteArray)
passThruText - String containing custom token.passThruSize - Int size of the byte array containing the custom token. (Required when passing token as a byte array)passThruByteArray - byte[] containing custom token.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.public void logoff()
throws java.lang.Exception
java.lang.Exceptionpublic 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 openFolderByBasename(java.lang.String fldBaseName) throws java.lang.Exception
fldBaseName - Name of folder to open.java.lang.ExceptionODFolderpublic ODFolder openFolder(java.lang.String fldName) throws java.lang.Exception
ODServer.getFolders()
must be called prior to the ODServer.openFolder(String) call. Failure to call these methods
in the proper order could result in an Exception indicating the folder cannot be found on the server.fldName - Name of folder to open.java.lang.ExceptionODFolderpublic byte[] viewerPassthru(java.lang.String qs,
java.io.InputStream is)
throws java.lang.Exception
qs - The query string as sent from the ODWEK document viewer.is - The InputStream from an HttpServletRequest as sent from the ODWEK document viewer.java.lang.Exceptionpublic byte[] viewerPassthru(java.lang.String queryStr)
throws java.lang.Exception
queryStr - The query string as sent from the ODWEK document viewer.java.lang.Exceptionpublic 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(),
ODFolder.getBaseName(),
ODServer.getLocale()public int getNumFolders()
throws java.lang.Exception
java.lang.Exceptionpublic 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.ExceptionODFolder.getBaseName(),
ODServer.getLocale()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),
ODFolder.getBaseName(),
ODServer.getLocale()public java.lang.String getFolderDescription(java.lang.String fldName)
throws java.lang.Exception
ODServer.getFolders()
must be called prior to the ODServer.getFolderDescription(String) call. Failure to call these methods
in the proper order could result in an Exception indicating the folder cannot be found on the server.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.public void setSSL(boolean useSSL,
java.lang.String keyRingFile,
java.lang.String keyStashFile)
useSSL - Set to True if SSL port will be used.keyRingFile - Fully qualified path to the SSL Key Ring File.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 void setEncryptionKey(java.lang.String key)
throws ODException
key - Encryption key to be used for document ID generation.ODExceptionpublic char getConnectType()
ODConstant.CONNECT_TYPE_TCPIPpublic 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 void setMsgsLanguage(java.lang.String language)
throws java.lang.Exception
ODServer.setLocale(Locale).language - MSG Language to be used in any OnDemand Generated messages.java.lang.ExceptionODConstant.LANGUAGE_ARA,
ODConstant.LANGUAGE_CHS,
ODConstant.LANGUAGE_CHT,
ODConstant.LANGUAGE_CZE,
ODConstant.LANGUAGE_DAN,
ODConstant.LANGUAGE_DEU,
ODConstant.LANGUAGE_ELL,
ODConstant.LANGUAGE_ENU,
ODConstant.LANGUAGE_ESP,
ODConstant.LANGUAGE_FIN,
ODConstant.LANGUAGE_FRA,
ODConstant.LANGUAGE_HEB,
ODConstant.LANGUAGE_HRV,
ODConstant.LANGUAGE_HUN,
ODConstant.LANGUAGE_ITA,
ODConstant.LANGUAGE_JPN,
ODConstant.LANGUAGE_KOR,
ODConstant.LANGUAGE_NLD,
ODConstant.LANGUAGE_NOR,
ODConstant.LANGUAGE_PLK,
ODConstant.LANGUAGE_PTB,
ODConstant.LANGUAGE_RUS,
ODConstant.LANGUAGE_SKY,
ODConstant.LANGUAGE_SLO,
ODConstant.LANGUAGE_SVE,
ODConstant.LANGUAGE_TRKpublic java.lang.String getMsgsLanguage()
throws java.lang.Exception
ODServer.getLocale().java.lang.ExceptionODConstant.LANGUAGE_ARA,
ODConstant.LANGUAGE_CHS,
ODConstant.LANGUAGE_CHT,
ODConstant.LANGUAGE_CZE,
ODConstant.LANGUAGE_DAN,
ODConstant.LANGUAGE_DEU,
ODConstant.LANGUAGE_ELL,
ODConstant.LANGUAGE_ENU,
ODConstant.LANGUAGE_ESP,
ODConstant.LANGUAGE_FIN,
ODConstant.LANGUAGE_FRA,
ODConstant.LANGUAGE_HEB,
ODConstant.LANGUAGE_HRV,
ODConstant.LANGUAGE_HUN,
ODConstant.LANGUAGE_ITA,
ODConstant.LANGUAGE_JPN,
ODConstant.LANGUAGE_KOR,
ODConstant.LANGUAGE_NLD,
ODConstant.LANGUAGE_NOR,
ODConstant.LANGUAGE_PLK,
ODConstant.LANGUAGE_PTB,
ODConstant.LANGUAGE_RUS,
ODConstant.LANGUAGE_SKY,
ODConstant.LANGUAGE_SLO,
ODConstant.LANGUAGE_SVE,
ODConstant.LANGUAGE_TRKpublic void setLocale(java.util.Locale locale)
throws java.lang.Exception
locale - Locale to be used in any OnDemand Generated messages.java.lang.Exceptionpublic java.util.Locale getLocale()
throws java.lang.Exception
java.lang.ExceptionODConstant.LANGUAGE_ARA,
ODConstant.LANGUAGE_CHS,
ODConstant.LANGUAGE_CHT,
ODConstant.LANGUAGE_CZE,
ODConstant.LANGUAGE_DAN,
ODConstant.LANGUAGE_DEU,
ODConstant.LANGUAGE_ELL,
ODConstant.LANGUAGE_ENU,
ODConstant.LANGUAGE_ESP,
ODConstant.LANGUAGE_FIN,
ODConstant.LANGUAGE_FRA,
ODConstant.LANGUAGE_HEB,
ODConstant.LANGUAGE_HRV,
ODConstant.LANGUAGE_HUN,
ODConstant.LANGUAGE_ITA,
ODConstant.LANGUAGE_JPN,
ODConstant.LANGUAGE_KOR,
ODConstant.LANGUAGE_NLD,
ODConstant.LANGUAGE_NOR,
ODConstant.LANGUAGE_PLK,
ODConstant.LANGUAGE_PTB,
ODConstant.LANGUAGE_RUS,
ODConstant.LANGUAGE_SKY,
ODConstant.LANGUAGE_SLO,
ODConstant.LANGUAGE_SVE,
ODConstant.LANGUAGE_TRKpublic 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 numberpublic java.lang.String[] getServerPrinters()
throws java.lang.Exception
java.lang.Exceptionpublic char getServerPrinterType(java.lang.String printer)
throws java.lang.Exception
printer - The name of the printerjava.lang.ExceptionODServer.getServerPrinters(),
ODConstant.OD_PRT_TYPE_PRINT,
ODConstant.OD_PRT_TYPE_FAX,
ODConstant.OD_PRT_TYPE_PRINT_WITH_INFOpublic java.util.Enumeration getFolders()
throws java.lang.Exception
java.lang.ExceptionODFolder.open()public ODApplicationGroup getApplicationGroup(long id) throws ODException
id - the numeric Application Group IDODExceptionODApplicationGrouppublic ODApplicationGroup getApplicationGroup(java.lang.String name) throws ODException
name - The name of the Application GroupODExceptionODApplicationGrouppublic java.lang.String[] getApplicationGroupNames()
throws java.lang.Exception
java.lang.ExceptionODServer.getApplicationGroupNames(String)public java.lang.String[] getApplicationGroupNames(java.lang.String criteria)
throws java.lang.Exception
java.lang.ExceptionODServer.getApplicationGroupNames()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 ));
public java.util.Enumeration getCabinets()
throws java.lang.Exception
public int getNumCabinets()
throws java.lang.Exception
java.lang.ExceptionODServer.getCabinets()public java.lang.String getOS()
throws ODException
public java.util.Enumeration getHolds()
throws java.lang.Exception
java.lang.ExceptionODHoldpublic ODHold addHold(java.lang.String name, java.lang.String desc) throws ODException
ODUser.getAuthority()ODExceptionODUser.getAuthority()public byte[] xmlParse(java.lang.String xml,
int action,
java.util.Properties xmlProperties,
ODCallback odc)
throws java.lang.Exception
xmlProperties, ExportSchemaLocation is ignored. XML processing has changed to expect
the OnDemand schema file in the <OnDemand install dir>/xml only, regardless of what is found in the xml.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.
odc - Instance of ODCallback object for processBegin/End callsODExceptionjava.lang.Exceptionpublic byte[] xmlParse(java.lang.String xml,
int action,
boolean continueOnError,
int exportFlags,
int exportEncoding,
java.lang.String exportSchemaLocation,
ODCallback odc)
throws java.lang.Exception
ODServer.xmlParse(String, int, boolean, int, int, ODCallback). Deprecated at v10.5.xml.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 callsODExceptionjava.lang.Exceptionpublic byte[] xmlParse(java.lang.String xml,
int action,
boolean continueOnError,
int exportFlags,
int exportEncoding,
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.odc - Instance of ODCallback object for processBegin/End callsODExceptionjava.lang.Exceptionpublic 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_DATETIMEpublic java.lang.String getExternalDate(long internalDate,
java.lang.String fmt,
char qual)
internalDate - a long value that represents 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_DATETIMEpublic java.util.Hashtable getTransformViewersForDocType(char doctype)
throws java.lang.Exception
<transform>
<TransformName>LineTransform</TransformName>
<ODFileType>L</ODFileType>
...
</transform>
doctype - java.lang.ExceptionODConstant.FileTypeAFP,
ODConstant.FileTypeLINEpublic java.lang.String[] getAllTransformViewerNames()
throws java.lang.Exception
java.lang.ExceptionODConfig.hasODTransforms()public java.util.Enumeration getAllTransformViewers()
throws java.lang.Exception
java.lang.ExceptionODConfig.hasODTransforms()public ODTransform getTransformViewer(java.lang.String vwrName) throws ODException
vwrName - Name of ODTransformjava.lang.ExceptionODExceptionODConfig.hasODTransforms()public java.lang.String getVersion()
public java.lang.String getMessageOfTheDay()
public void updateTraceLevel(java.lang.String szNewLevel)
throws ODException
ODConfig.getTraceLevel() will not be
effected by this call and will continue to return the value set in
the ODConfig constructor.szNewLevel - The new trace level as provided by IBM SupportODExceptionpublic void loadInit()
throws java.lang.Exception
ODFolder.storeDocument(String, String, String, String[])
method in that documents are added in an ad-hoc fashion to be loaded. It differs, however, in that n number
of documents may be added to a bundle using the ODServer.loadAddDoc(int, Hashtable, File) method and
the entire bundle will be loaded in a single call to the OnDemand server using
the ODServer.loadCommit(String, String) method.
ODServer.loadReset() method.
ODException - An ODException is thrown if this method is called when a load process is already in progress. An ODException could also be thrown if a temporary file cannot be written to the TempDir.java.lang.ExceptionODServer.hasPermToLoad(String, String),
ODServer.loadAddDoc(int, Hashtable, File),
ODServer.loadAddDoc(int, Hashtable, byte[]),
ODServer.loadCommit(String, String),
ODServer.loadReset()public void loadAddDoc(int numPages,
java.util.Hashtable idxs_vals,
java.io.File file)
throws java.lang.Exception
ODFolder.storeDocument(String, String, String, String[])
method in that documents are added in an ad-hoc fashion to be loaded. It differs, however, in that n number
of documents may be added to a bundle using this method and
the entire bundle will be loaded in a single call to the OnDemand server using
the ODServer.loadCommit(String, String) method.
ODServer.loadInit() method.
numPages - - The number of pages in the document that is being stored. This value will be ignored if an Application Group field of type "Page Count" is not defined in the Application Group.idxs_vals - - Hashtable of Application Group fields (keys) and the corresponding values to store for this document.file - - The file to be added to the OnDemand archive.ODException - - An ODException will be thrown if the ODServer.loadInit() method has not yet been called. An ODException will also be thrown if the specified file cannot be found or is empty.java.lang.ExceptionODServer.hasPermToLoad(String, String),
ODServer.loadInit(),
ODServer.loadCommit(String, String),
ODServer.loadReset()public void loadAddDoc(int numPages,
java.util.Hashtable idxs_vals,
byte[] b)
throws java.lang.Exception
ODFolder.storeDocument(String, String, String, String[])
method in that documents are added in an ad-hoc fashion to be loaded. It differs, however, in that n number
of documents may be added to a bundle using this method and
the entire bundle will be loaded in a single call to the OnDemand server using
the ODServer.loadCommit(String, String) method.
ODServer.loadInit() method.
numPages - - The number of pages in the document that is being stored. This value will be ignored if an Application Group field of type "Page Count" is not defined in the Application Group.idxs_vals - - Hashtable of Application Group fields (keys) and the corresponding values to store for this document.b - The bytes to be added to the OnDemand archive.ODException - - An ODException will be thrown if the ODServer.loadInit() method has not yet been called. An ODException will also be thrown if the specified file cannot be found or is empty.java.lang.ExceptionODServer.hasPermToLoad(String, String),
ODServer.loadInit(),
ODServer.loadCommit(String, String),
ODServer.loadReset()public void loadCommit(java.lang.String agname,
java.lang.String appname)
throws java.lang.Exception
ODFolder.storeDocument(String, String, String, String[])
method in that documents are added in an ad-hoc fashion to be loaded. It differs, however, in that n number
of documents may be added to a bundle using the ODServer.loadAddDoc(int, Hashtable, File) method and
the entire bundle will be loaded in a single call to the OnDemand server using
the ODServer.loadCommit(String, String) method.
ODServer.loadAddDoc(int, Hashtable, File) method.
It will call to the OnDemand server to perform the load into the archive. All documents that are added must be added for a
single Application Group/Application combination.
agname - - The name of the Application Group to be used for the loadappname - - The name of the Application to be used for the loadODException - - An ODException will thrown if the ODServer.loadInit() method and the ODServer.loadAddDoc(int, Hashtable, File) methods have not been called first.
Also, at least one document must be added to the bundle to be loaded before calling this method.
If the load fails to complete for any reason on the OnDemand server, the details of the failure can be found in the System Log and an ODException will be thrown.java.lang.ExceptionODServer.hasPermToLoad(String, String),
ODServer.loadInit(),
ODServer.loadAddDoc(int, Hashtable, File),
ODServer.loadAddDoc(int, Hashtable, byte[]),
ODServer.loadReset()public void loadReset()
public java.lang.String getServerVersion()
throws java.lang.Exception
ODException - if the ODServer is not logged on.java.lang.Exceptionpublic boolean hasPermToLoad(java.lang.String fldrName,
java.lang.String applGrpName)
throws java.lang.Exception
fldrName - applGrpName - ODException - if the Application Group or Folder name is not validjava.lang.ExceptionODServer.loadInit(),
ODServer.loadAddDoc(int, Hashtable, File),
ODServer.loadAddDoc(int, Hashtable, byte[]),
ODServer.loadCommit(String, String),
ODServer.loadReset()public java.util.Hashtable getHeaders()
(c)Copyright International Business Machines Corporation 2001, 2020. IBM Corp. All rights reserved.