|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.adaptors.ldap.util.SpringLdapUtils
public final class SpringLdapUtils
A basic LDAP Utility class
| Field Summary | |
|---|---|
static java.lang.String |
LDAP_BOOLEAN_FALSE
|
static java.lang.String |
LDAP_BOOLEAN_TRUE
|
static java.lang.String |
OBJECTCLASS_ATTRIBUTE
|
| Constructor Summary | |
|---|---|
SpringLdapUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
containsObjectClass(org.springframework.ldap.core.DirContextAdapter ctx,
java.lang.String objectclass)
Checks if the objectclass Attribute of the DirContext contains the given objectclass |
static java.lang.Boolean |
getBoolean(org.springframework.ldap.core.DirContextOperations ctx,
java.lang.String attribute)
Reads a Boolean value from the DirContextAdapter |
static java.lang.Boolean |
getBoolean(org.springframework.ldap.core.DirContextOperations ctx,
java.lang.String attribute,
java.lang.Boolean nullValue)
Reads a Boolean value from the DirContextAdapter |
static void |
setBoolean(org.springframework.ldap.core.DirContextOperations ctx,
java.lang.String attribute,
java.lang.Boolean value)
Sets the attribute attribute to the boolean value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OBJECTCLASS_ATTRIBUTE
public static final java.lang.String LDAP_BOOLEAN_TRUE
public static final java.lang.String LDAP_BOOLEAN_FALSE
| Constructor Detail |
|---|
public SpringLdapUtils()
| Method Detail |
|---|
public static java.lang.Boolean getBoolean(org.springframework.ldap.core.DirContextOperations ctx,
java.lang.String attribute)
ctx - the DirContextAdapterattribute - the attribute name
true if the attribute's value matches (case-insensitive) "true", otherwise false
public static java.lang.Boolean getBoolean(org.springframework.ldap.core.DirContextOperations ctx,
java.lang.String attribute,
java.lang.Boolean nullValue)
ctx - the DirContextAdapterattribute - the attribute namenullValue - the value which sould be returing in case of a null value
true if the attribute's value matches (case-insensitive) "true", otherwise false
public static void setBoolean(org.springframework.ldap.core.DirContextOperations ctx,
java.lang.String attribute,
java.lang.Boolean value)
attribute to the boolean value
ctx - the DirContextAdapterattribute - the attribute namevalue - the boolean value
public static boolean containsObjectClass(org.springframework.ldap.core.DirContextAdapter ctx,
java.lang.String objectclass)
objectclass Attribute of the DirContext contains the given objectclass
ctx - the DirContextAdaper to checkobjectclass - the objectclass value to look for (case does not matter)
true, if the DirContext contains the objectclass, otherwise false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||