org.apache.directory.server.core.event
Interface Evaluator

All Known Implementing Classes:
ExpressionEvaluator, LeafEvaluator, ScopeEvaluator, SubstringEvaluator

public interface Evaluator

Tests if an entry is eligable for return by evaluating a filter expression on the candidate. The evaluation can proceed by applying the filter on the attributes of the entry itself or indices can be used for rapid evaluation.

Version:
$Rev: 434579 $
Author:
Apache Directory Project

Method Summary
 boolean evaluate(ExprNode node, java.lang.String dn, javax.naming.directory.Attributes entry)
          Evaluates a candidate to determine if a filter expression selects it.
 

Method Detail

evaluate

public boolean evaluate(ExprNode node,
                        java.lang.String dn,
                        javax.naming.directory.Attributes entry)
                 throws javax.naming.NamingException
Evaluates a candidate to determine if a filter expression selects it.

Parameters:
node - the filter expression to evaluate on the candidate
dn - the normalized distinguished name of the entry being tested
entry - the entry to evaluate
Returns:
true if the filter selects the candidate false otherwise
Throws:
javax.naming.NamingException - if there is a database fault during evaluation