public class SubtreeScopeEvaluator extends Object implements Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>
| Constructor and Description |
|---|
SubtreeScopeEvaluator(Store db,
org.apache.directory.api.ldap.model.filter.ScopeNode node)
Creates a subtree 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 sub level scope while taking
alias dereferencing into account.
|
boolean |
evaluate(IndexEntry<?,String> indexEntry)
Asserts whether or not a candidate has sub level scope while taking
alias dereferencing into account.
|
String |
getBaseId() |
org.apache.directory.api.ldap.model.filter.ScopeNode |
getExpression()
Gets the expression used by this expression Evaluator.
|
boolean |
isDereferencing() |
String |
toString() |
String |
toString(String tabs)
Pretty-print an Evaluator
|
public SubtreeScopeEvaluator(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(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 entry tested to see if it is in subtree scopeException - if the index lookups fail.org.apache.directory.api.ldap.model.exception.LdapExceptionEvaluator.evaluate(org.apache.directory.server.xdbm.IndexEntry)public boolean evaluate(org.apache.directory.api.ldap.model.entry.Entry candidate)
throws Exception
evaluate in interface Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>candidate - the entry tested to see if it is in subtree scopeException - if the index lookups fail.Evaluator.evaluate(org.apache.directory.server.xdbm.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.