public class NumOfAttributeValuesMatchFunctor extends AbstractMatchFunctor
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
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–2014. All rights reserved.