|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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 Object |
callbackLdapSession(String ldapServerId,
LdapHandler ldapHandler)
call this to send a callback for the ldap session object. |
|
static
|
list(Class<R> returnType,
String ldapServerId,
String searchDn,
LdapSearchScope ldapSearchScope,
String filter,
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(Class<R> returnType,
String ldapServerId,
String searchDn,
LdapSearchScope ldapSearchScope,
String filter,
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 Object callbackLdapSession(String ldapServerId, LdapHandler ldapHandler)
ldapServerId
- is the config id from the grouper-loader.propertiesldapHandler
- is the logic of the ldap calls
public static <R> List<R> list(Class<R> returnType, String ldapServerId, String searchDn, LdapSearchScope ldapSearchScope, String filter, String attributeName)
R
- returnType
- note, only String.class is currently supportedldapServerId
- searchDn
- ldapSearchScope
- filter
- attributeName
-
public static <R> Map<String,List<R>> listInObjects(Class<R> returnType, String ldapServerId, String searchDn, LdapSearchScope ldapSearchScope, String filter, 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 |