public class OneLevelScopeEvaluator<E,ID> extends Object implements Evaluator<org.apache.directory.shared.ldap.filter.ScopeNode,E,ID>
Constructor and Description |
---|
OneLevelScopeEvaluator(Store<E,ID> db,
org.apache.directory.shared.ldap.filter.ScopeNode node)
Creates a one level 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 candidate)
Asserts whether or not a candidate has one level scope while taking
alias dereferencing into account.
|
ID |
getBaseId()
Gets the id of the search base associated with the ScopeNode expression.
|
org.apache.directory.shared.ldap.filter.ScopeNode |
getExpression()
Gets the expression used by this expression Evaluator.
|
boolean |
isDereferencing()
Gets whether or not dereferencing is enabled for this evaluator.
|
public OneLevelScopeEvaluator(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 evaluateId(ID candidate) throws Exception
evaluateId
in interface Evaluator<org.apache.directory.shared.ldap.filter.ScopeNode,E,ID>
candidate
- the candidate to assertException
- if db lookups failEvaluator.evaluate(IndexEntry)
public boolean evaluateEntry(E candidate) throws Exception
evaluateEntry
in interface Evaluator<org.apache.directory.shared.ldap.filter.ScopeNode,E,ID>
candidate
- the candidate entryException
- if there are faults during evaluationEvaluator#evaluate(Object)
public boolean evaluate(IndexEntry<?,E,ID> candidate) throws Exception
public org.apache.directory.shared.ldap.filter.ScopeNode getExpression()
Evaluator
getExpression
in interface Evaluator<org.apache.directory.shared.ldap.filter.ScopeNode,E,ID>
public ID getBaseId()
public boolean isDereferencing()
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.