|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.services.persondir.support.rule.SimpleAttributeRule
public final class SimpleAttributeRule
Sets a specified attribute to a specified value when a specified seed value matches a specified pattern.
| Constructor Summary | |
|---|---|
SimpleAttributeRule(String whenKey,
String whenPattern,
String setKey,
String setValue)
|
|
| Method Summary | |
|---|---|
boolean |
appliesTo(Map userInfo)
Indicates whether the rule applies to the user described by the specified information. |
Map |
evaluate(Map userInfo)
Applies the embodied rule to the user described by the specified information and returns the result. |
Set |
getPossibleUserAttributeNames()
Indicates the complete set of user attribute names that may be returned by a call to evaluate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleAttributeRule(String whenKey,
String whenPattern,
String setKey,
String setValue)
| Method Detail |
|---|
public boolean appliesTo(Map 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 Map evaluate(Map userInfo)
AttributeRuleorg.jasig.portal.services.persondir.IPersonAttributeDao#getUserAttributes(Map)
evaluate in interface AttributeRulepublic Set getPossibleUserAttributeNames()
AttributeRuleevaluate.
This method follows the same contract as org.jasig.portal.services.persondir.IPersonAttributeDao#getPossibleUserAttributeNames()
getPossibleUserAttributeNames in interface AttributeRule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||