public final class DeclaredRulePersonAttributeDao extends AbstractDefaultAttributePersonAttributeDao
IPersonAttributeDao that evaluates
person directory information based on configurable rules. You may chain as
many rules as you like, but this DAO will apply at most one rule, the
first that triggers.
| Property | Description | Required | Default |
|---|---|---|---|
| rules |
The array of AttributeRules to use when
|
Yes | null |
loggerWILDCARD, WILDCARD_PATTERN| Constructor and Description |
|---|
DeclaredRulePersonAttributeDao() |
DeclaredRulePersonAttributeDao(String attributeName,
List<AttributeRule> rules)
Creates a new DeclaredRulePersonAttributeDao specifying the attributeName to pass to
AbstractDefaultAttributePersonAttributeDao.getUsernameAttributeProvider() and the List of AttributeRules
to pass to setRules(List) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAvailableQueryAttributes() |
Set<IPersonAttributes> |
getPeopleWithMultivaluedAttributes(Map<String,List<Object>> seed) |
Set<String> |
getPossibleUserAttributeNames()
Aggregates the results of calling
AttributeRule.getPossibleUserAttributeNames()
on each AttributeRule instance in the rules array. |
List<AttributeRule> |
getRules() |
void |
setRules(List<AttributeRule> rules) |
getPerson, getUsernameAttributeProvider, setUsernameAttributeProvider, toSeedMapgetPeople, toMultivaluedSeedflattenResults, getMultivaluedUserAttributes, getMultivaluedUserAttributes, getUserAttributes, getUserAttributespublic DeclaredRulePersonAttributeDao()
public DeclaredRulePersonAttributeDao(String attributeName, List<AttributeRule> rules)
AbstractDefaultAttributePersonAttributeDao.getUsernameAttributeProvider() and the List of AttributeRules
to pass to setRules(List)attributeName - attribute namerules - rulespublic List<AttributeRule> getRules()
public void setRules(List<AttributeRule> rules)
rules - the rules to setpublic Set<IPersonAttributes> getPeopleWithMultivaluedAttributes(Map<String,List<Object>> seed)
public Set<String> getPossibleUserAttributeNames()
AttributeRule.getPossibleUserAttributeNames()
on each AttributeRule instance in the rules array.Copyright © 2015 Jasig. All Rights Reserved.