public class LdapSession extends Object
Constructor and Description |
---|
LdapSession() |
Modifier and Type | Method and Description |
---|---|
static Object |
callbackLdapSession(String ldapServerId,
LdapHandler ldapHandler)
call this to send a callback for the ldap session object.
|
static <R> List<R> |
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 <R> Map<String,List<R>> |
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
|
public static Object callbackLdapSession(String ldapServerId, LdapHandler ldapHandler)
ldapServerId
- is the config id from the grouper-loader.propertiesldapHandler
- is the logic of the ldap callspublic 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
- Copyright © 2016 Internet2. All rights reserved.