net.geant.edugain.attributes.rules
Class FilterRule

java.lang.Object
  extended by net.geant.edugain.attributes.rules.AbstractRule
      extended by net.geant.edugain.attributes.rules.FilterRule
All Implemented Interfaces:
Rule

public class FilterRule
extends AbstractRule
implements Rule

Filtering implementation of the Rule interface. The Filtering rule consists of one condition and arbitrary number of attribute filters.

Author:
Adam Lantos

Field Summary
private  java.util.List<Filter> filters
          Attribute filters.
private  org.apache.log4j.Logger log
           
 
Fields inherited from class net.geant.edugain.attributes.rules.AbstractRule
condition, configuration, matchers, outputAttributeConfiguration
 
Constructor Summary
FilterRule()
           
 
Method Summary
protected  boolean doOutputAttribute(RuleContext c)
          The action of the FilterRule is to call all the attribute filters.
 void init(RuleType configuration)
          Initializes the Filter with parsed configuration.
 
Methods inherited from class net.geant.edugain.attributes.rules.AbstractRule
evaluateConditions, getCondition, getConfiguration, getMatchers, getOutputAttributeConfiguration, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.geant.edugain.attributes.rules.Rule
process
 

Field Detail

filters

private java.util.List<Filter> filters
Attribute filters.


log

private org.apache.log4j.Logger log
Constructor Detail

FilterRule

public FilterRule()
Method Detail

init

public void init(RuleType configuration)
Initializes the Filter with parsed configuration.

Specified by:
init in interface Rule
Overrides:
init in class AbstractRule
Parameters:
configuration -

doOutputAttribute

protected boolean doOutputAttribute(RuleContext c)
                             throws EvaluationException
The action of the FilterRule is to call all the attribute filters.

Overrides:
doOutputAttribute in class AbstractRule
Parameters:
c -
Returns:
Throws:
EvaluationException