public class LdapPersonAttributeDao
extends org.jasig.services.persondir.support.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.
|
| Constructor and Description |
|---|
LdapPersonAttributeDao() |
| Modifier and Type | Method and Description |
|---|---|
protected org.ldaptive.SearchFilter |
appendAttributeToQuery(org.ldaptive.SearchFilter filter,
String attribute,
List<Object> values) |
protected List<org.jasig.services.persondir.IPersonAttributes> |
getPeopleForQuery(org.ldaptive.SearchFilter filter,
String userName) |
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.
|
generateQuery, getAvailableQueryAttributes, getConfiguredUserNameAttribute, getPeopleWithMultivaluedAttributes, getPossibleUserAttributeNames, getQueryAttributeMapping, getResultAttributeMapping, getUnmappedUsernameAttribute, isRequireAllQueryAttributes, isUseAllQueryAttributes, mapPersonAttributes, setQueryAttributeMapping, setRequireAllQueryAttributes, setResultAttributeMapping, setUnmappedUsernameAttribute, setUseAllQueryAttributesgetPerson, getUsernameAttributeProvider, setUsernameAttributeProvider, toSeedMapgetPeople, toMultivaluedSeedpublic 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<org.jasig.services.persondir.IPersonAttributes> getPeopleForQuery(org.ldaptive.SearchFilter filter, String userName)
getPeopleForQuery in class org.jasig.services.persondir.support.AbstractQueryPersonAttributeDao<org.ldaptive.SearchFilter>Copyright © 2004-2015 Jasig. All Rights Reserved.