public final class LdapUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
OBJECTCLASS_ATTRIBUTE |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeConnection(org.ldaptive.Connection context)
Close the given context and ignore any thrown exception.
|
static Boolean |
getBoolean(org.ldaptive.LdapEntry ctx,
String attribute)
Reads a Boolean value from the LdapEntry.
|
static Boolean |
getBoolean(org.ldaptive.LdapEntry ctx,
String attribute,
Boolean nullValue)
Reads a Boolean value from the LdapEntry.
|
static Long |
getLong(org.ldaptive.LdapEntry ctx,
String attribute)
Reads a Long value from the LdapEntry.
|
static Long |
getLong(org.ldaptive.LdapEntry ctx,
String attribute,
Long nullValue)
Reads a Long value from the LdapEntry.
|
static String |
getString(org.ldaptive.LdapEntry ctx,
String attribute)
Reads a String value from the LdapEntry.
|
static String |
getString(org.ldaptive.LdapEntry ctx,
String attribute,
String nullValue)
Reads a String value from the LdapEntry.
|
public static final String OBJECTCLASS_ATTRIBUTE
public static void closeConnection(org.ldaptive.Connection context)
context - the Ldap connection to closepublic static Boolean getBoolean(org.ldaptive.LdapEntry ctx, String attribute)
ctx - the ldap entryattribute - the attribute nametrue if the attribute's value matches (case-insensitive) "true", otherwise falsepublic static Boolean getBoolean(org.ldaptive.LdapEntry ctx, String attribute, Boolean nullValue)
ctx - the ldap entryattribute - the attribute namenullValue - the value which should be returning in case of a null valuetrue if the attribute's value matches (case-insensitive) "true", otherwise falsepublic static Long getLong(org.ldaptive.LdapEntry ctx, String attribute)
ctx - the ldap entryattribute - the attribute namepublic static Long getLong(org.ldaptive.LdapEntry ctx, String attribute, Long nullValue)
ctx - the ldap entryattribute - the attribute namenullValue - the value which should be returning in case of a null valuepublic static String getString(org.ldaptive.LdapEntry ctx, String attribute)
ctx - the ldap entryattribute - the attribute nameCopyright © 2004-2015 Jasig. All Rights Reserved.