public interface AoFactoryOperations
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
(2001)
Get the description of the ASAM ODS factory.
|
java.lang.String |
getInterfaceVersion()
(2002)
Get the interface version of the ASAM ODS factory.
|
java.lang.String |
getName()
(2003)
Get the name of the ASAM ODS factory.
|
java.lang.String |
getType()
(2004)
Get the type of the ASAM ODS factory.
|
AoSession |
newSession(java.lang.String auth)
(2005)
Establish a new session to an ASAM ODS server.
|
AoSession |
newSessionNameValue(NameValue[] auth)
(2006)
Establish a new session to an ASAM ODS server, using an
authentication string as set of name-value-pairs.
|
java.lang.String getDescription() throws AoException
AoException
- with the following possible error codes:
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORYjava.lang.String getInterfaceVersion() throws AoException
AoException
- with the following possible error codes:
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORYjava.lang.String getName() throws AoException
AoException
- with the following possible error codes:
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORYjava.lang.String getType() throws AoException
AoException
- with the following possible error codes:
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORYAoSession newSession(java.lang.String auth) throws AoException
auth
- A string containing the authentication information.
The following values are currently supported:
USER
PASSWORD
CREATE_COSESSION_ALLOWED
FOR_USER
The values may be specified in any order and have to
be separated by comma.
The variable CREATE_COSESSION_ALLOWED
Value (DT_STRING) TRUE or FALSE
Default for CREATE_COSESSION_ALLOWED =
FALSE.
The variable CREATE_COSESSION_ALLOWED is a read-only
variable in the session.
The variable FOR_USER is the name of the user for
which this session shall be created. If this value is
given, USER must be a superuser. Otherwise the
exception AO_CONNECT_REFUSED will be thrown.
Example:
"USER=hans, PASSWORD=secret, CREATE_COSESSION_ALLOWED
= TRUE"AoException
- with the following possible error codes:
AO_CONNECT_FAILED
AO_CONNECT_REFUSED
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_OPEN_MODE_NOT_SUPPORTED
AO_SESSION_LIMIT_REACHEDAoSession newSessionNameValue(NameValue[] auth) throws AoException
auth
- The authentication string as set of pairs (NameValue)
consisting of a name and a value each. The name may be
the name of any context valiable, the value may be any
allowed value for that context variable.
With this argument the values of NameValue can contain
also comma because these are not used as separator.AoException
- with the following possible error codes:
AO_CONNECT_FAILED
AO_CONNECT_REFUSED
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_OPEN_MODE_NOT_SUPPORTED
AO_SESSION_LIMIT_REACHED