Package com.netscape.cmscore.ldap
Class LdapConnModule
- java.lang.Object
-
- com.netscape.cmscore.ldap.LdapConnModule
-
- All Implemented Interfaces:
com.netscape.certsrv.ldap.ILdapConnModule
public class LdapConnModule extends java.lang.Object implements com.netscape.certsrv.ldap.ILdapConnModule
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
logger
protected IConfigStore
mConfig
protected LdapBoundConnFactory
mLdapConnFactory
-
Constructor Summary
Constructors Constructor Description LdapConnModule()
instantiate connection factory.LdapConnModule(LdapBoundConnFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description netscape.ldap.LDAPConnection
getConn()
com.netscape.certsrv.ldap.ILdapConnFactory
getLdapConnFactory()
Returns the internal ldap connection factory.void
init(IConfigStore config)
Initialize ldap publishing module with config store.void
returnConn(netscape.ldap.LDAPConnection conn)
-
-
-
Field Detail
-
logger
public static org.slf4j.Logger logger
-
mConfig
protected IConfigStore mConfig
-
mLdapConnFactory
protected LdapBoundConnFactory mLdapConnFactory
-
-
Constructor Detail
-
LdapConnModule
public LdapConnModule()
instantiate connection factory.
-
LdapConnModule
public LdapConnModule(LdapBoundConnFactory factory)
-
-
Method Detail
-
init
public void init(IConfigStore config) throws EBaseException
Description copied from interface:com.netscape.certsrv.ldap.ILdapConnModule
Initialize ldap publishing module with config store.- Specified by:
init
in interfacecom.netscape.certsrv.ldap.ILdapConnModule
- Parameters:
config
- Config store containing the info needed to set up Publishing.- Throws:
com.netscape.certsrv.ldap.ELdapException
- Due to Ldap error.EBaseException
- Due to config value errors and all other errors.
-
getLdapConnFactory
public com.netscape.certsrv.ldap.ILdapConnFactory 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 interfacecom.netscape.certsrv.ldap.ILdapConnModule
- Returns:
- Instance of ILdapConnFactory.
- See Also:
com.netscape.certsrv.ldap.LdapBoundConnFactory
,ILdapConnFactory
-
getConn
public netscape.ldap.LDAPConnection getConn() throws com.netscape.certsrv.ldap.ELdapException
- Throws:
com.netscape.certsrv.ldap.ELdapException
-
returnConn
public void returnConn(netscape.ldap.LDAPConnection conn) throws com.netscape.certsrv.ldap.ELdapException
- Throws:
com.netscape.certsrv.ldap.ELdapException
-
-