public class AoFactory extends AoFactoryPOA implements AoFactory, AoFactoryIF
LDAPCheckInterface,
LDAPCheckImpl,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
AoFactory.TypeFlags
This class covers the session flags, that can be binary combined.
|
| Modifier and Type | Field and Description |
|---|---|
protected long |
cObjPtr |
static AoFactory |
instance |
| Constructor and Description |
|---|
AoFactory()
Default constructors.
|
AoFactory(long cObjPtr)
The constructor with an object address pointer in ATHOS.
|
| Modifier and Type | Method and Description |
|---|---|
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result) |
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exclist,
org.omg.CORBA.ContextList ctxlist) |
org.omg.CORBA.Object |
_duplicate() |
org.omg.CORBA.DomainManager[] |
_get_domain_managers() |
org.omg.CORBA.Policy |
_get_policy(int policy_type) |
int |
_hash(int maximum) |
boolean |
_is_equivalent(org.omg.CORBA.Object other) |
void |
_release() |
org.omg.CORBA.Request |
_request(java.lang.String operation) |
org.omg.CORBA.Object |
_set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add) |
void |
closeMapFiles()
This method will close all memory mapped files.
|
static void |
destroy()
Destroy the factory.
|
protected void |
finalize()
Finalize method for native use only.
|
java.lang.String |
getContextByName(java.lang.String varName)
Get a context variable by its name from the factory.
|
java.lang.String |
getDescription()
Get the description of the ASAM-ODS factory.
|
java.lang.String[] |
getInfoList(java.lang.String varName)
Get the value of a context variable.
|
static AoFactory |
getInstance()
Get the instance of this factory.
|
static org.omg.CORBA.Object |
getInstance(long cObjPtr)
This method is only called from native code.
|
java.lang.String |
getInterfaceVersion()
Get the interface version of the ASAM-ODS factory.
|
java.lang.String |
getName()
Get the name of the ASAM-ODS factory.
|
SessionCheckInterface |
getSessionClass(java.lang.String sessionClassName,
java.lang.String classOptions)
Get the class to check session on newSession, close session of will Close session
|
java.lang.String |
getType()
Get the type of the ASAM-ODS factory.
|
void |
log(java.lang.String msg)
Log the message in the athos log file.
|
void |
nativeSetInfo(java.lang.String varName,
java.lang.String value) |
void |
nativeUpdateInfo(java.lang.String varName,
java.lang.String value) |
AoSession |
newlocalSession(java.lang.String auth)
Establish a new session to an ASAM ODS server and returns the session as local object.
|
AoSession |
newLocalSessionNameValue(NameValue[] nvauth)
Establish a new session to an ASAM ODS server and returns the session as local object.
|
AoSession |
newSession(java.lang.String auth)
Establish a new session to an ASAM-ODS server.
|
AoSession |
newSessionNameValue(NameValue[] nvauth)
Establish a new session to an ASAM-ODS server.
|
void |
setInfo(java.lang.String varName,
java.lang.String value)
Set the value of a context variable.
|
void |
setLdapClassName(java.lang.String ldapClassName,
java.lang.String classOptions)
Set the class name of the class to check authentication
of the newSession with an LDAP Service.
|
void |
setSessionClassName(java.lang.String sessionClassName,
java.lang.String classOptions,
boolean newSession)
Set the class name of the class to check the session for newSession or close of the session.
|
void |
setSessionNotificationEventManager(SessionNotificationEventManager sessionNotificationEventManager)
Stores the passed instance of SessionNotificationEventManager
|
void |
updateInfo(java.lang.String varName,
java.lang.String value)
Update the value of a context variable.
|
_all_interfaces, _invoke, _this, _this_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_objectpublic static AoFactory instance
protected long cObjPtr
public AoFactory()
public AoFactory(long cObjPtr)
cObjPtr - public static void destroy()
public static org.omg.CORBA.Object getInstance(long cObjPtr)
the - object address pointer in ATHOS.public static AoFactory getInstance()
public java.lang.String getDescription()
throws AoException
getDescription in interface AoFactoryOperationsAoException - with the following possible error codes:
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORYpublic java.lang.String getInterfaceVersion()
throws AoException
getInterfaceVersion in interface AoFactoryOperationsAoException - with the following possible error codes:
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORYpublic java.lang.String getName()
throws AoException
getName in interface AoFactoryOperationsAoException - with the following possible error codes:
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORYpublic java.lang.String getType()
throws AoException
getType in interface AoFactoryOperationsAoException - with the following possible error codes:
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORYpublic AoSession newSession(java.lang.String auth) throws AoException
newSession in interface AoFactoryOperationsauth - A string that may contain authentication
information. The following values are
currently supported:
USERNAME
PASSWORD
OPENMODE
The values may be specified in any order and
have to be separated by comma.
Example:
"USER=hans, PASSWORD=secret,
OPENMODE=read"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_REACHEDpublic AoSession newlocalSession(java.lang.String auth) throws AoException
AoFactoryIForg.asam.ods.AoFactory.newSessionnewlocalSession in interface AoFactoryIFAoExceptionpublic AoSession newSessionNameValue(NameValue[] nvauth) throws AoException
newSessionNameValue in interface AoFactoryOperationsnv[] - A NameValue array that may contain authentication
information. The following names with stringvalues
are currently supported:
USERNAME
PASSWORD
OPENMODE
The values may be specified in any order.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_REACHEDpublic AoSession newLocalSessionNameValue(NameValue[] nvauth) throws AoException
AoFactoryIForg.asam.ods.AoFactory.newSessionNameValuenewLocalSessionNameValue in interface AoFactoryIFAoExceptionpublic void setLdapClassName(java.lang.String ldapClassName,
java.lang.String classOptions)
setLdapClassName in interface AoFactoryIFldapClassName - name of the classclassOptions - options of the class given to the constructorpublic void setSessionNotificationEventManager(SessionNotificationEventManager sessionNotificationEventManager)
setSessionNotificationEventManager in interface AoFactoryIFpublic SessionCheckInterface getSessionClass(java.lang.String sessionClassName, java.lang.String classOptions)
getSessionClass in interface AoFactoryIFsessionClassName - name of the classclassOptions - options of the class given to the constructorpublic void setSessionClassName(java.lang.String sessionClassName,
java.lang.String classOptions,
boolean newSession)
setSessionClassName in interface AoFactoryIFsessionClassName - name of the classclassOptions - options of the class given to the constructornewSession - switch for newSession or closeSession.public java.lang.String getContextByName(java.lang.String varName)
throws AoException
getContextByName in interface AoFactoryIFvarName - The name of the requested context variable.AoException - with the following possible error codes: AO_BAD_PARAMETER
AO_CONNECTION_LOST AO_IMPLEMENTATION_PROBLEM AO_NOT_FOUND
AO_NOT_IMPLEMENTED AO_NO_MEMORY AO_SESSION_NOT_ACTIVEpublic void updateInfo(java.lang.String varName,
java.lang.String value)
throws AoException
updateInfo in interface AoFactoryIFvarName - The name of the context variable.value - The value of the context variable.AoException - with the following possible error codes: AO_BAD_PARAMETER
AO_CONNECTION_LOST AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED AO_NO_MEMORY AO_SESSION_NOT_ACTIVEpublic void nativeUpdateInfo(java.lang.String varName,
java.lang.String value)
throws AoException
nativeUpdateInfo in interface AoFactoryIFAoExceptionpublic void setInfo(java.lang.String varName,
java.lang.String value)
throws AoException
setInfo in interface AoFactoryIFvarName - The name of the context variable.value - The value of the context variable.AoException - with the following possible error codes: AO_BAD_PARAMETER
AO_CONNECTION_LOST AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED AO_NO_MEMORY AO_SESSION_NOT_ACTIVEpublic void nativeSetInfo(java.lang.String varName,
java.lang.String value)
throws AoException
nativeSetInfo in interface AoFactoryIFAoExceptionpublic void closeMapFiles()
throws AoException
AoException - any occurring ASAM ODS exception.public java.lang.String[] getInfoList(java.lang.String varName)
throws AoException
getInfoList in interface AoFactoryIFvarName - The name of the context variable.AoException - with the following possible error codes: AO_BAD_PARAMETER
AO_CONNECTION_LOST AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED AO_NO_MEMORY AO_NOT_FOUNDpublic void log(java.lang.String msg)
log in interface AoFactoryIFmsg - the message.protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result)
_create_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exclist,
org.omg.CORBA.ContextList ctxlist)
_create_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Object _duplicate()
_duplicate in interface org.omg.CORBA.Objectpublic org.omg.CORBA.DomainManager[] _get_domain_managers()
_get_domain_managers in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Policy _get_policy(int policy_type)
_get_policy in interface org.omg.CORBA.Objectpublic int _hash(int maximum)
_hash in interface org.omg.CORBA.Objectpublic boolean _is_equivalent(org.omg.CORBA.Object other)
_is_equivalent in interface org.omg.CORBA.Objectpublic void _release()
_release in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Request _request(java.lang.String operation)
_request in interface org.omg.CORBA.Objectpublic org.omg.CORBA.Object _set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add)
_set_policy_override in interface org.omg.CORBA.Object