org.apache.directory.server.core.event
Interface Evaluator
public interface Evaluator
Tests if an entry is eligible 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: 927146 $
- Author:
- Apache Directory Project
|
Method Summary |
boolean |
evaluate(org.apache.directory.shared.ldap.filter.ExprNode node,
java.lang.String dn,
org.apache.directory.shared.ldap.entry.ServerEntry entry)
Evaluates a candidate to determine if a filter expression selects it. |
evaluate
boolean evaluate(org.apache.directory.shared.ldap.filter.ExprNode node,
java.lang.String dn,
org.apache.directory.shared.ldap.entry.ServerEntry entry)
throws org.apache.directory.shared.ldap.exception.LdapException
- Evaluates a candidate to determine if a filter expression selects it.
- 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:
org.apache.directory.shared.ldap.exception.LdapException - if there is a database fault during evaluation
Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.