it.eng.rdlab.um.ldap.service
Class LdapManager

java.lang.Object
  extended by it.eng.rdlab.um.ldap.service.LdapManager
All Implemented Interfaces:
LdapBasicConstants

public class LdapManager
extends Object
implements LdapBasicConstants


Field Summary
 
Fields inherited from interface it.eng.rdlab.um.ldap.LdapBasicConstants
JAVA_LDAP_DRIVER, OBJECT_CLASS, OBJECT_CLASS_TOP
 
Method Summary
 void close()
           
 boolean createDataElement(LdapDataModelWrapper dataModelWrapper)
           
 boolean deleteData(String dn)
           
 Attributes getData(String dn)
           
static LdapManager getInstance()
           
static LdapManager initInstance(LdapConfiguration configuration)
           
 NamingEnumeration<SearchResult> searchData(LdapDataModelWrapper filter)
           
 boolean updateData(LdapDataModelWrapper oldData, LdapDataModelWrapper newData)
           
 boolean updateData(LdapDataModelWrapper oldData, LdapDataModelWrapper newData, LdapDataModelComparator comparator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initInstance

public static LdapManager initInstance(LdapConfiguration configuration)
                                throws NamingException
Throws:
NamingException

getInstance

public static LdapManager getInstance()
                               throws ConfigurationException
Throws:
ConfigurationException

createDataElement

public boolean createDataElement(LdapDataModelWrapper dataModelWrapper)
                          throws LdapManagerException
Throws:
LdapManagerException

deleteData

public boolean deleteData(String dn)
                   throws LdapManagerException
Throws:
LdapManagerException

getData

public Attributes getData(String dn)
                   throws LdapManagerException
Throws:
LdapManagerException

searchData

public NamingEnumeration<SearchResult> searchData(LdapDataModelWrapper filter)
                                           throws LdapManagerException
Throws:
LdapManagerException

updateData

public boolean updateData(LdapDataModelWrapper oldData,
                          LdapDataModelWrapper newData)
                   throws NamingException
Throws:
NamingException

updateData

public boolean updateData(LdapDataModelWrapper oldData,
                          LdapDataModelWrapper newData,
                          LdapDataModelComparator comparator)
                   throws NamingException
Throws:
NamingException

close

public void close()
           throws NamingException
Throws:
NamingException


Copyright © 2013. All Rights Reserved.