|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.internet2.middleware.grouper.ldap.LdapSession
public class LdapSession
will handle the ldap config, and inverse of control for pooling
| Constructor Summary | |
|---|---|
LdapSession()
|
|
| Method Summary | ||
|---|---|---|
static java.lang.Object |
callbackLdapSession(java.lang.String ldapServerId,
LdapHandler ldapHandler)
call this to send a callback for the ldap session object. |
|
static
|
list(java.lang.Class<R> returnType,
java.lang.String ldapServerId,
java.lang.String searchDn,
LdapSearchScope ldapSearchScope,
java.lang.String filter,
java.lang.String attributeName)
run a filter, for one attribute, and return a list of that attribute typecast as a certain type note, if it is a multi-valued attributes, and there are multiple object results, it will be flattened into one list |
|
static
|
listInObjects(java.lang.Class<R> returnType,
java.lang.String ldapServerId,
java.lang.String searchDn,
LdapSearchScope ldapSearchScope,
java.lang.String filter,
java.lang.String attributeName)
run a filter, for one attribute, and return a map of the DN key to the value of list of that attribute typecast as a certain type |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LdapSession()
| Method Detail |
|---|
public static java.lang.Object callbackLdapSession(java.lang.String ldapServerId,
LdapHandler ldapHandler)
ldapServerId - is the config id from the grouper-loader.propertiesldapHandler - is the logic of the ldap calls
public static <R> java.util.List<R> list(java.lang.Class<R> returnType,
java.lang.String ldapServerId,
java.lang.String searchDn,
LdapSearchScope ldapSearchScope,
java.lang.String filter,
java.lang.String attributeName)
R - returnType - note, only String.class is currently supportedldapServerId - searchDn - ldapSearchScope - filter - attributeName -
public static <R> java.util.Map<java.lang.String,java.util.List<R>> listInObjects(java.lang.Class<R> returnType,
java.lang.String ldapServerId,
java.lang.String searchDn,
LdapSearchScope ldapSearchScope,
java.lang.String filter,
java.lang.String attributeName)
R - returnType - note, only String.class is currently supportedldapServerId - searchDn - ldapSearchScope - filter - attributeName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||