public final class StringFormatAttributeRule extends java.lang.Object implements AttributeRule
String.format()| Constructor and Description |
|---|
StringFormatAttributeRule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> userInfo)
Indicates whether the rule applies to the user described by the specified
information.
|
java.util.Set<IPersonAttributes> |
evaluate(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> userInfo)
Applies the embodied rule to the user described by the specified
information and returns the result.
|
java.util.Set<java.lang.String> |
getAvailableQueryAttributes() |
java.util.Set<java.lang.String> |
getPossibleUserAttributeNames()
Indicates the complete set of user attribute names that may be
returned by a call to
evaluate. |
void |
setFormatArguments(java.util.List<java.lang.String> formatArguments) |
void |
setFormatString(java.lang.String formatString) |
void |
setOutputAttribute(java.lang.String outputAttribute) |
void |
setUsernameAttributeProvider(IUsernameAttributeProvider usernameAttributeProvider) |
public void setFormatString(java.lang.String formatString)
public void setFormatArguments(java.util.List<java.lang.String> formatArguments)
public void setOutputAttribute(java.lang.String outputAttribute)
public void setUsernameAttributeProvider(IUsernameAttributeProvider usernameAttributeProvider)
public boolean appliesTo(java.util.Map<java.lang.String,java.util.List<java.lang.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 java.util.Set<IPersonAttributes> evaluate(java.util.Map<java.lang.String,java.util.List<java.lang.Object>> userInfo)
AttributeRuleIPersonAttributeDao.getPeopleWithMultivaluedAttributes(Map)evaluate in interface AttributeRuleuserInfo - User infoIPersonAttributespublic java.util.Set<java.lang.String> getAvailableQueryAttributes()
getAvailableQueryAttributes in interface AttributeRuleIPersonAttributeDao.getAvailableQueryAttributes()public java.util.Set<java.lang.String> getPossibleUserAttributeNames()
AttributeRuleevaluate.
This method follows the same contract as IPersonAttributeDao.getPossibleUserAttributeNames()getPossibleUserAttributeNames in interface AttributeRuleCopyright © 2005-2018. All Rights Reserved.