|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.identityconnectors.ldap.commons.LdapUtil
public class LdapUtil
| Method Summary | ||
|---|---|---|
static String |
addBinaryOption(String ldapAttrName)
Adds the binary option to the attribute if not present already. |
|
static void |
addStringAttrValues(Attributes ldapAttrs,
String ldapAttrName,
Set<String> toSet)
|
|
static boolean |
attrNameEquals(String name1,
String name2)
Returns true if the names of the given LDAP attributes are equal. |
|
static
|
checkedListByFilter(List list,
Class<T> clazz)
|
|
static boolean |
escapeAttrValue(Object value,
StringBuilder toBuilder)
Escapes the given attribute value to the given StringBuilder. |
|
static String |
getStringAttrValue(Attributes ldapAttrs,
String ldapAttrName)
Return the value of the ldapAttrName parameter cast to a String. |
|
static Set<String> |
getStringAttrValues(Attributes ldapAttrs,
String ldapAttrName)
Return the case insensitive set of values of the ldapAttrName parameter cast to a String. |
|
static boolean |
hasBinaryOption(String ldapAttrName)
Returns true if the attribute has the binary option,
e.g., userCertificate;binary. |
|
static boolean |
isUnderContexts(LdapName entry,
List<LdapName> contexts)
|
|
static String[] |
nullAsEmpty(String[] array)
|
|
static LdapName |
quietCreateLdapName(String ldapName)
|
|
static String |
removeBinaryOption(String ldapAttrName)
Removes the binary option from the attribute. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean attrNameEquals(String name1,
String name2)
public static boolean hasBinaryOption(String ldapAttrName)
true if the attribute has the binary option,
e.g., userCertificate;binary.
public static String addBinaryOption(String ldapAttrName)
public static String removeBinaryOption(String ldapAttrName)
public static String getStringAttrValue(Attributes ldapAttrs,
String ldapAttrName)
ldapAttrName parameter cast to a String.
public static Set<String> getStringAttrValues(Attributes ldapAttrs,
String ldapAttrName)
ldapAttrName parameter cast to a String.
public static void addStringAttrValues(Attributes ldapAttrs,
String ldapAttrName,
Set<String> toSet)
public static boolean escapeAttrValue(Object value,
StringBuilder toBuilder)
StringBuilder.
Returns true iff anything was written to the builder.
public static LdapName quietCreateLdapName(String ldapName)
public static boolean isUnderContexts(LdapName entry,
List<LdapName> contexts)
public static String[] nullAsEmpty(String[] array)
public static <T> List<T> checkedListByFilter(List list,
Class<T> clazz)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||