public class NumOfAttributeValuesMatchFunctor extends AbstractMatchFunctor
Modifier and Type | Field and Description |
---|---|
private String |
attributeId
ID of the attribute that will be checked.
|
private int |
maximumValues
Maximum allowed number of attribute values.
|
private int |
minimumValues
Minimum allowed number of attribute values.
|
Constructor and Description |
---|
NumOfAttributeValuesMatchFunctor(String id,
int min,
int max)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
doEvaluatePolicyRequirement(ShibbolethFilteringContext filterContext)
Evaluates this matching criteria.
|
protected boolean |
doEvaluateValue(ShibbolethFilteringContext filterContext,
String id,
Object value)
Evaluates this matching criteria.
|
protected boolean |
isWithinRange(BaseAttribute attribute)
Checks that the number of values for the given attribute is within the given range.
|
evaluateDenyRule, evaluatePermitValue, evaluatePolicyRequirement
private String attributeId
private int minimumValues
private int maximumValues
public NumOfAttributeValuesMatchFunctor(String id, int min, int max)
id
- ID of the attribute to be checkedmin
- minimum number of values allowedmax
- maximum number of values allowedprotected boolean doEvaluatePolicyRequirement(ShibbolethFilteringContext filterContext) throws FilterProcessingException
doEvaluatePolicyRequirement
in class AbstractMatchFunctor
filterContext
- current filtering contextFilterProcessingException
- thrown if the function can not be evaluatedprotected boolean doEvaluateValue(ShibbolethFilteringContext filterContext, String id, Object value) throws FilterProcessingException
doEvaluateValue
in class AbstractMatchFunctor
filterContext
- the current filtering contextid
- ID of the attribute being evaluatedvalue
- value of the attribute being evaluatedFilterProcessingException
- thrown if the function can not be evaluatedprotected boolean isWithinRange(BaseAttribute attribute)
attribute
- attribute to checkCopyright © 1999-2012. All Rights Reserved.