|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AttributeRule
Defines the contract for a person directory user attribute rule for use with
the DeclaredRulePersonAttributeDao.
| Method Summary | |
|---|---|
boolean |
appliesTo(Map<String,List<Object>> userInfo)
Indicates whether the rule applies to the user described by the specified information. |
Map<String,List<Object>> |
evaluate(Map<String,List<Object>> userInfo)
Applies the embodied rule to the user described by the specified information and returns the result. |
Set<String> |
getPossibleUserAttributeNames()
Indicates the complete set of user attribute names that may be returned by a call to evaluate. |
| Method Detail |
|---|
boolean appliesTo(Map<String,List<Object>> userInfo)
AttributeRule must
not change the input Map. Implementations dictate
the expected types for the Keys and Values of the Map.
userInfo - immutable Map of attributes to values for the implementation to determine if this rule applies, must not be null.
IllegalArgumentException - If userInfo is null.Map<String,List<Object>> evaluate(Map<String,List<Object>> userInfo)
IPersonAttributeDao.getUserAttributes(Map)
Set<String> getPossibleUserAttributeNames()
evaluate.
This method follows the same contract as IPersonAttributeDao.getPossibleUserAttributeNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||