public abstract class AbstractEntityAttributeMatchFunctor extends AbstractMatchFunctor
Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Class logger.
|
private String |
name
The name of the entity attribute the entity must have.
|
private String |
nameFormat
The name format of the entity attribute the entity must have.
|
Constructor and Description |
---|
AbstractEntityAttributeMatchFunctor() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doEvaluatePolicyRequirement(ShibbolethFilteringContext filterContext)
Evaluates this matching criteria.
|
protected boolean |
doEvaluateValue(ShibbolethFilteringContext filterContext,
String attributeId,
Object attributeValue)
Evaluates this matching criteria.
|
protected abstract boolean |
entityAttributeValueMatches(String entityAttributeValue)
Checks whether the given entity attribute value matches the rules for particular implementation of this functor.
|
protected Attribute |
getEntityAttribute(EntityDescriptor entityDescriptor)
Gets the entity attribute from the given entity metadata.
|
protected abstract EntityDescriptor |
getEntityMetadata(ShibbolethFilteringContext filterContext)
Gets the entity descriptor for the entity to check.
|
String |
getName()
Gets the name of the entity attribute the entity must have.
|
String |
getNameFormat()
Gets the name format of the entity attribute the entity must have.
|
protected boolean |
hasEntityAttribute(ShibbolethFilteringContext filterContext)
Checks to see if the entity returned by
getEntityMetadata(ShibbolethFilteringContext) contains the
entity attribute specified by this functor's configuration. |
void |
setName(String attributeName)
Sets the name of the entity attribute the entity must have.
|
void |
setNameFormat(String attributeNameFormat)
Sets the name format of the entity attribute the entity must have.
|
evaluateDenyRule, evaluatePermitValue, evaluatePolicyRequirement
private final org.slf4j.Logger log
private String name
private String nameFormat
public String getName()
public void setName(String attributeName)
attributeName
- name of the entity attribute the entity must havepublic String getNameFormat()
public void setNameFormat(String attributeNameFormat)
attributeNameFormat
- name format of the entity attribute the entity must haveprotected 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 attributeId, Object attributeValue) throws FilterProcessingException
doEvaluateValue
in class AbstractMatchFunctor
filterContext
- the current filtering contextattributeId
- ID of the attribute being evaluatedattributeValue
- value of the attribute being evaluatedFilterProcessingException
- thrown if the function can not be evaluatedprotected boolean hasEntityAttribute(ShibbolethFilteringContext filterContext)
getEntityMetadata(ShibbolethFilteringContext)
contains the
entity attribute specified by this functor's configuration.filterContext
- current request contextprotected abstract EntityDescriptor getEntityMetadata(ShibbolethFilteringContext filterContext)
filterContext
- current filter request contextprotected Attribute getEntityAttribute(EntityDescriptor entityDescriptor)
entityDescriptor
- the metadata for the entityprotected abstract boolean entityAttributeValueMatches(String entityAttributeValue)
entityAttributeValue
- the entity attribute value, never nullCopyright © 1999-2012. All Rights Reserved.