public class SubtreeScopeEvaluator<E,ID> extends Object implements Evaluator<org.apache.directory.shared.ldap.filter.ScopeNode,E,ID>
| Constructor and Description |
|---|
SubtreeScopeEvaluator(Store<E,ID> db,
org.apache.directory.shared.ldap.filter.ScopeNode node)
Creates a subtree scope node evaluator for search expressions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(IndexEntry<?,E,ID> candidate)
Asserts whether or not a candidate has one level scope while taking
alias dereferencing into account.
|
boolean |
evaluateEntry(E candidate)
Asserts whether or not a candidate has one level scope while taking
alias dereferencing into account.
|
boolean |
evaluateId(ID id)
Asserts whether or not a candidate has one level scope while taking
alias dereferencing into account.
|
ID |
getBaseId() |
org.apache.directory.shared.ldap.filter.ScopeNode |
getExpression()
Gets the expression used by this expression Evaluator.
|
boolean |
isDereferencing() |
public SubtreeScopeEvaluator(Store<E,ID> db, org.apache.directory.shared.ldap.filter.ScopeNode node) throws Exception
node - the scope nodedb - the database used to evaluate scope nodeException - on db access failurepublic boolean evaluate(IndexEntry<?,E,ID> candidate) throws Exception
evaluate in interface Evaluator<org.apache.directory.shared.ldap.filter.ScopeNode,E,ID>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 boolean evaluateId(ID id) throws Exception
evaluateId in interface Evaluator<org.apache.directory.shared.ldap.filter.ScopeNode,E,ID>id - the id of 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 boolean evaluateEntry(E candidate) throws Exception
evaluateEntry in interface Evaluator<org.apache.directory.shared.ldap.filter.ScopeNode,E,ID>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.shared.ldap.filter.ScopeNode getExpression()
EvaluatorgetExpression in interface Evaluator<org.apache.directory.shared.ldap.filter.ScopeNode,E,ID>public ID getBaseId()
public boolean isDereferencing()
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.