|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.attribute.filtering.provider.match.basic.AbstractMatchFunctor
edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.match.basic.NumOfAttributeValuesMatchFunctor
public class NumOfAttributeValuesMatchFunctor
A match functor that checks if the given attribute has more than the minimum number of values but less than the maximum.
Field Summary | |
---|---|
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 Summary | |
---|---|
NumOfAttributeValuesMatchFunctor(String id,
int min,
int max)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.match.basic.AbstractMatchFunctor |
---|
evaluateDenyRule, evaluatePermitValue, evaluatePolicyRequirement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String attributeId
private int minimumValues
private int maximumValues
Constructor Detail |
---|
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 allowedMethod Detail |
---|
protected boolean doEvaluatePolicyRequirement(ShibbolethFilteringContext filterContext) throws FilterProcessingException
doEvaluatePolicyRequirement
in class AbstractMatchFunctor
filterContext
- current filtering context
FilterProcessingException
- 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 evaluated
FilterProcessingException
- thrown if the function can not be evaluatedprotected boolean isWithinRange(BaseAttribute attribute)
attribute
- attribute to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |