Blue Mind
Release 1.0

net.bluemind.system.ldap
Class LdapHelper

java.lang.Object
  extended by net.bluemind.system.ldap.LdapHelper

public class LdapHelper
extends Object


Field Summary
static String ADMIN0_LOGIN
           
static String BASE_DN_ATTRIBUTE
           
static String BASE_DN_VALUE
           
static String CONFIG_DIRECTORY_ROOT_DN
           
static String DIRECTORY_ROOT_DN
           
 
Constructor Summary
LdapHelper()
           
 
Method Summary
static void addLdapEntry(LdapConnection ldapCon, Entry ldapEntry)
           
static void addLdapEntry(LdapConnection ldapCon, net.bluemind.system.ldap.objects.ILdapObjects ldapObject)
           
static LdapConnection connectConfigDirectory(Host ldapHost)
           
static LdapConnection connectDirectory(Host ldapHost)
           
static void deleteTree(LdapConnection ldapCon, String dn)
           
static void disconnectLdap(LdapConnection ldapCon)
           
static ArrayList<String> getAttributeValues(String attributeName, Entry entry)
           
static void modifyLdapEntry(LdapConnection ldapCon, ModifyRequest modifyRequest)
           
static void removeLdapEntry(LdapConnection ldapCon, String dn)
           
static void renameLdapEntry(LdapConnection ldapCon, net.bluemind.system.ldap.objects.ILdapObjects ldapObject)
           
static Entry searchLdapEntry(LdapConnection ldapCon, String dn)
           
static void updateLdapAttribute(ModifyRequest modifyRequest, String attributeName, ArrayList<String> oldList, ArrayList<String> newList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_DIRECTORY_ROOT_DN

public static final String CONFIG_DIRECTORY_ROOT_DN
See Also:
Constant Field Values

DIRECTORY_ROOT_DN

public static final String DIRECTORY_ROOT_DN
See Also:
Constant Field Values

ADMIN0_LOGIN

public static final String ADMIN0_LOGIN
See Also:
Constant Field Values

BASE_DN_ATTRIBUTE

public static final String BASE_DN_ATTRIBUTE
See Also:
Constant Field Values

BASE_DN_VALUE

public static final String BASE_DN_VALUE
See Also:
Constant Field Values
Constructor Detail

LdapHelper

public LdapHelper()
Method Detail

connectConfigDirectory

public static LdapConnection connectConfigDirectory(Host ldapHost)
                                             throws ServerFault
Throws:
ServerFault

connectDirectory

public static LdapConnection connectDirectory(Host ldapHost)
                                       throws ServerFault
Throws:
ServerFault

disconnectLdap

public static void disconnectLdap(LdapConnection ldapCon)
                           throws ServerFault
Throws:
ServerFault

addLdapEntry

public static void addLdapEntry(LdapConnection ldapCon,
                                net.bluemind.system.ldap.objects.ILdapObjects ldapObject)
                         throws ServerFault
Throws:
ServerFault

addLdapEntry

public static void addLdapEntry(LdapConnection ldapCon,
                                Entry ldapEntry)
                         throws ServerFault
Throws:
ServerFault

renameLdapEntry

public static void renameLdapEntry(LdapConnection ldapCon,
                                   net.bluemind.system.ldap.objects.ILdapObjects ldapObject)
                            throws ServerFault
Throws:
ServerFault

modifyLdapEntry

public static void modifyLdapEntry(LdapConnection ldapCon,
                                   ModifyRequest modifyRequest)
                            throws ServerFault
Throws:
ServerFault

removeLdapEntry

public static void removeLdapEntry(LdapConnection ldapCon,
                                   String dn)
                            throws ServerFault
Throws:
ServerFault

searchLdapEntry

public static Entry searchLdapEntry(LdapConnection ldapCon,
                                    String dn)
                             throws ServerFault
Throws:
ServerFault

getAttributeValues

public static ArrayList<String> getAttributeValues(String attributeName,
                                                   Entry entry)

deleteTree

public static void deleteTree(LdapConnection ldapCon,
                              String dn)
                       throws ServerFault
Throws:
ServerFault

updateLdapAttribute

public static void updateLdapAttribute(ModifyRequest modifyRequest,
                                       String attributeName,
                                       ArrayList<String> oldList,
                                       ArrayList<String> newList)

Blue Mind
Release 1.0