org.apache.directory.server.core.event
Class LeafEvaluator
java.lang.Object
org.apache.directory.server.core.event.LeafEvaluator
- All Implemented Interfaces:
- Evaluator
public class LeafEvaluator
- extends java.lang.Object
- implements Evaluator
Evaluates LeafNode assertions on candidates using a database.
- Version:
- $Rev: 493916 $
- Author:
- Apache Directory Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LeafEvaluator
public LeafEvaluator(OidRegistry oidRegistry,
AttributeTypeRegistry attributeTypeRegistry,
SubstringEvaluator substringEvaluator)
throws javax.naming.NamingException
- Creates a leaf expression node evaluator.
- Parameters:
substringEvaluator
-
- Throws:
javax.naming.NamingException
getScopeEvaluator
public ScopeEvaluator getScopeEvaluator()
getSubstringEvaluator
public SubstringEvaluator getSubstringEvaluator()
evaluate
public boolean evaluate(org.apache.directory.shared.ldap.filter.ExprNode node,
java.lang.String dn,
javax.naming.directory.Attributes entry)
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 candidatedn
- the normalized distinguished name of the entry being testedentry
- 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)
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.