public final class SimpleAttributeRule extends Object implements AttributeRule
| Constructor and Description |
|---|
SimpleAttributeRule() |
SimpleAttributeRule(String whenKey,
String whenPattern,
String setUserName,
String setKey,
String setValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(Map<String,List<Object>> userInfo)
Indicates whether the rule applies to the user described by the specified
information.
|
Set<IPersonAttributes> |
evaluate(Map<String,List<Object>> userInfo)
Applies the embodied rule to the user described by the specified
information and returns the result.
|
Set<String> |
getAvailableQueryAttributes() |
Set<String> |
getPossibleUserAttributeNames()
Indicates the complete set of user attribute names that may be
returned by a call to
evaluate. |
public boolean appliesTo(Map<String,List<Object>> userInfo)
AttributeRuleAttributeRule must
not change the input Map. Implementations dictate
the expected types for the Keys and Values of the Map.appliesTo in interface AttributeRuleuserInfo - immutable Map of attributes to values for the implementation to determine if this rule applies, must not be null.public Set<IPersonAttributes> evaluate(Map<String,List<Object>> userInfo)
AttributeRuleIPersonAttributeDao.getPeopleWithMultivaluedAttributes(Map)evaluate in interface AttributeRuleuserInfo - User infoIPersonAttributespublic Set<String> getPossibleUserAttributeNames()
AttributeRuleevaluate.
This method follows the same contract as IPersonAttributeDao.getPossibleUserAttributeNames()getPossibleUserAttributeNames in interface AttributeRulepublic Set<String> getAvailableQueryAttributes()
getAvailableQueryAttributes in interface AttributeRuleIPersonAttributeDao.getAvailableQueryAttributes()Copyright © 2015 Jasig. All Rights Reserved.