Class DefaultLDAPDriver
java.lang.Object
ru.bitel.bgbilling.modules.email.server.bean.DefaultLDAPDriver
- All Implemented Interfaces:
LDAPDriver
- Direct Known Subclasses:
EximLDAPDriver
public abstract class DefaultLDAPDriver extends java.lang.Object implements LDAPDriver
-
Field Summary
Fields Modifier and Type Field Description protected Domaindomainprotected ParameterMapparamsFields inherited from interface ru.bitel.bgbilling.modules.email.server.bean.LDAPDriver
STATUS_ACCOUNT_USED, STATUS_ADD_ERROR, STATUS_CONNECT_ERROR, STATUS_DELETE_ERROR, STATUS_OK, STATUS_UPDATE_ERROR -
Constructor Summary
Constructors Constructor Description DefaultLDAPDriver() -
Method Summary
Modifier and Type Method Description intaddAccount(Account mailAccount)protected voidcloseConnection(com.novell.ldap.LDAPConnection con)intdeleteAccount(Account mailAccount)protected abstract com.novell.ldap.LDAPAttributeSetgetAccountAttributeSet(Account account)protected abstract java.lang.StringgetAccountDN(Account account)protected com.novell.ldap.LDAPConnectiongetConnection()voidinit(Domain domain, ParameterMap params)intupdateAccount(Account mailAccount)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
domain
-
params
-
-
Constructor Details
-
DefaultLDAPDriver
public DefaultLDAPDriver()
-
-
Method Details
-
init
- Specified by:
initin interfaceLDAPDriver
-
getConnection
protected com.novell.ldap.LDAPConnection getConnection() -
closeConnection
protected void closeConnection(com.novell.ldap.LDAPConnection con) -
deleteAccount
- Specified by:
deleteAccountin interfaceLDAPDriver
-
addAccount
- Specified by:
addAccountin interfaceLDAPDriver
-
updateAccount
- Specified by:
updateAccountin interfaceLDAPDriver
-
getAccountDN
-
getAccountAttributeSet
-