org.apache.directory.server.core.event
Class ScopeEvaluator

java.lang.Object
  extended byorg.apache.directory.server.core.event.ScopeEvaluator
All Implemented Interfaces:
Evaluator

public class ScopeEvaluator
extends java.lang.Object
implements Evaluator

Evaluates ScopeNode assertions on candidates using a database.

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

Constructor Summary
ScopeEvaluator()
           
 
Method Summary
 boolean evaluate(ExprNode node, java.lang.String dn, javax.naming.directory.Attributes record)
          Evaluates a candidate to determine if a filter expression selects it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopeEvaluator

public ScopeEvaluator()
               throws javax.naming.NamingException
Method Detail

evaluate

public boolean evaluate(ExprNode node,
                        java.lang.String dn,
                        javax.naming.directory.Attributes record)
                 throws javax.naming.NamingException
Description copied from interface: Evaluator
Evaluates a candidate to determine if a filter expression selects it.

Specified by:
evaluate in interface Evaluator
Parameters:
node - the filter expression to evaluate on the candidate
dn - the normalized distinguished name of the entry being tested
record - 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
See Also:
Evaluator.evaluate(ExprNode, String, Attributes)