Package com.netscape.cmscore.ldap
Class LdapConnModule
java.lang.Object
com.netscape.cmscore.ldap.LdapConnModule
- All Implemented Interfaces:
ILdapConnModule
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.slf4j.Logger
protected ConfigStore
protected LdapBoundConnFactory
-
Constructor Summary
ConstructorsConstructorDescriptioninstantiate connection factory.LdapConnModule
(LdapBoundConnFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionnetscape.ldap.LDAPConnection
getConn()
Returns the internal ldap connection factory.void
init
(ConfigStore config) Initialize ldap publishing module with config store.void
returnConn
(netscape.ldap.LDAPConnection conn)
-
Field Details
-
logger
public static org.slf4j.Logger logger -
mConfig
-
mLdapConnFactory
-
-
Constructor Details
-
LdapConnModule
public LdapConnModule()instantiate connection factory. -
LdapConnModule
-
-
Method Details
-
init
Description copied from interface:ILdapConnModule
Initialize ldap publishing module with config store.- Specified by:
init
in interfaceILdapConnModule
- Parameters:
config
- Config store containing the info needed to set up Publishing.- Throws:
ELdapException
- Due to Ldap error.EBaseException
- Due to config value errors and all other errors.
-
getLdapConnFactory
Returns the internal ldap connection factory. This can be useful to get a ldap connection to the ldap publishing directory without having to get it again from the config file. Note that this means sharing a ldap connection pool with the ldap publishing module so be sure to return connections to pool. Use ILdapConnFactory.getConn() to get a Ldap connection to the ldap publishing directory. Use ILdapConnFactory.returnConn() to return the connection.- Specified by:
getLdapConnFactory
in interfaceILdapConnModule
- Returns:
- Instance of ILdapConnFactory.
- See Also:
-
getConn
- Throws:
ELdapException
-
returnConn
- Throws:
ELdapException
-