public class LdaptivePersonAttributeDao extends AbstractQueryPersonAttributeDao<org.ldaptive.SearchFilter>
IPersonAttribute implementation that queries an LDAP directory
with ldaptive components to populate person attributes.| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger
Logger instance.
|
DEFAULT_CASE_CANONICALIZATION_MODE, DEFAULT_USERNAME_CASE_CANONICALIZATION_MODEWILDCARD, WILDCARD_PATTERN| Constructor and Description |
|---|
LdaptivePersonAttributeDao() |
| Modifier and Type | Method and Description |
|---|---|
protected org.ldaptive.SearchFilter |
appendAttributeToQuery(org.ldaptive.SearchFilter filter,
String attribute,
List<Object> values)
Append the attribute and value to the queryBuilder.
|
protected List<IPersonAttributes> |
getPeopleForQuery(org.ldaptive.SearchFilter filter,
String userName)
Executes the query for the generated queryBuilder object and returns a list where each entry is a Map of
attributes for a single IPersonAttributes.
|
void |
initialize()
Initializes the object after properties are set.
|
void |
setBaseDN(String dn)
Sets the base DN of the LDAP search for attributes.
|
void |
setConnectionFactory(org.ldaptive.ConnectionFactory connectionFactory)
Sets the connection factory that produces LDAP connections on which searches occur.
|
void |
setSearchControls(SearchControls searchControls)
Sets a number of parameters that control LDAP search semantics including search scope,
maximum number of results retrieved, and search timeout.
|
void |
setSearchFilter(String filter)
Sets the LDAP search filter used to query for person attributes.
|
appendCanonicalizedAttributeToQuery, canonicalizeAttribute, generateQuery, getAvailableQueryAttributes, getCaseCanonicalizationLocale, getCaseInsensitiveQueryAttributes, getCaseInsensitiveResultAttributes, getConfiguredUserNameAttribute, getDefaultCaseCanonicalizationMode, getPeopleWithMultivaluedAttributes, getPossibleUserAttributeNames, getQueryAttributeMapping, getResultAttributeMapping, getUnmappedUsernameAttribute, getUsernameCaseCanonicalizationMode, isRequireAllQueryAttributes, isUseAllQueryAttributes, isUserNameAttributeConfigured, mapPersonAttributes, setCaseCanonicalizationLocale, setCaseInsensitiveQueryAttributes, setCaseInsensitiveQueryAttributesAsCollection, setCaseInsensitiveResultAttributes, setCaseInsensitiveResultAttributesAsCollection, setDefaultCaseCanonicalizationMode, setQueryAttributeMapping, setRequireAllQueryAttributes, setResultAttributeMapping, setUnmappedUsernameAttribute, setUseAllQueryAttributes, setUsernameCaseCanonicalizationModegetPerson, getUsernameAttributeProvider, setUsernameAttributeProvider, toSeedMapgetPeople, toMultivaluedSeedflattenResults, getMultivaluedUserAttributes, getMultivaluedUserAttributes, getUserAttributes, getUserAttributespublic void setBaseDN(String dn)
dn - LDAP base DN of search.public void setSearchFilter(String filter)
filter - Search filter of the form "(usernameAttribute={0})" where {0} and similar ordinal placeholders
are replaced with query parameters.public void setSearchControls(SearchControls searchControls)
searchControls - LDAP search controls.public void setConnectionFactory(org.ldaptive.ConnectionFactory connectionFactory)
PooledConnecitonFactory object.connectionFactory - LDAP connection factory.@PostConstruct public void initialize()
protected List<IPersonAttributes> getPeopleForQuery(org.ldaptive.SearchFilter filter, String userName)
AbstractQueryPersonAttributeDaogetPeopleForQuery in class AbstractQueryPersonAttributeDao<org.ldaptive.SearchFilter>filter - The query generated by calls to AbstractQueryPersonAttributeDao.appendAttributeToQuery(Object, String, List)userName - The username passed in the query map, if no username attribute existed in the query Map null is provided.protected org.ldaptive.SearchFilter appendAttributeToQuery(org.ldaptive.SearchFilter filter,
String attribute,
List<Object> values)
AbstractQueryPersonAttributeDaoappendAttributeToQuery in class AbstractQueryPersonAttributeDao<org.ldaptive.SearchFilter>filter - The sub-class specific query builder objectattribute - The full attribute name to appendvalues - The values for the data attributeCopyright © 2015 Jasig. All Rights Reserved.