public class BaseLevelScopeEvaluator<E> extends Object implements Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>
| Constructor and Description |
|---|
BaseLevelScopeEvaluator(Store db,
org.apache.directory.api.ldap.model.filter.ScopeNode node)
Creates a one level scope node Evaluator for search expressions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(org.apache.directory.api.ldap.model.entry.Entry candidate)
Asserts whether or not a candidate has one level scope while taking
alias dereferencing into account.
|
boolean |
evaluate(IndexEntry<?,String> indexEntry)
Asserts whether or not a candidate has one level scope while taking
alias dereferencing into account.
|
String |
getBaseId()
Gets the id of the search base associated with the ScopeNode expression.
|
org.apache.directory.api.ldap.model.filter.ScopeNode |
getExpression()
Gets the expression used by this expression Evaluator.
|
boolean |
isDereferencing()
Gets whether or not dereferencing is enabled for this evaluator.
|
String |
toString() |
String |
toString(String tabs)
Pretty-print an Evaluator
|
public BaseLevelScopeEvaluator(Store db, org.apache.directory.api.ldap.model.filter.ScopeNode node) throws Exception
node - the scope nodedb - the database used to evaluate scope nodeException - on db access failurepublic boolean evaluate(org.apache.directory.api.ldap.model.entry.Entry candidate)
throws Exception
public boolean evaluate(IndexEntry<?,String> indexEntry) throws org.apache.directory.api.ldap.model.exception.LdapException
evaluate in interface Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>candidate - the candidate to assertException - if db lookups failorg.apache.directory.api.ldap.model.exception.LdapExceptionEvaluator.evaluate(IndexEntry)public org.apache.directory.api.ldap.model.filter.ScopeNode getExpression()
EvaluatorgetExpression in interface Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>public String getBaseId()
public boolean isDereferencing()
public String toString(String tabs)
EvaluatortoString in interface Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>tabs - The tabs to add before the evaluatorObject.toString()public String toString()
toString in class ObjectObject.toString()Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.