|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.partition.impl.btree.ScopeEvaluator
public class ScopeEvaluator
Evaluates ScopeNode assertions on candidates using a database.
Constructor Summary | |
---|---|
ScopeEvaluator(BTreePartition db)
Creates a scope node evaluator for search expressions. |
Method Summary | |
---|---|
boolean |
assertOneLevelScope(org.apache.directory.shared.ldap.filter.ScopeNode node,
java.math.BigInteger id)
Asserts whether or not a candidate has one level scope while taking alias dereferencing into account. |
boolean |
assertSubtreeScope(org.apache.directory.shared.ldap.filter.ScopeNode node,
java.math.BigInteger id)
Asserts whether or not a candidate has one level scope while taking alias dereferencing into account. |
boolean |
evaluate(org.apache.directory.shared.ldap.filter.ExprNode node,
IndexRecord record)
Evaluates a candidate to determine if a filter expression selects it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScopeEvaluator(BTreePartition db)
db
- the database used to evaluate scope nodeMethod Detail |
---|
public boolean evaluate(org.apache.directory.shared.ldap.filter.ExprNode node, IndexRecord record) throws javax.naming.NamingException
Evaluator
evaluate
in interface Evaluator
node
- the filter expression to evaluate on the candidaterecord
- the index record of the entry to evaluate
javax.naming.NamingException
- if there is a database fault during evaluationEvaluator.evaluate(ExprNode, org.apache.directory.server.core.partition.impl.btree.IndexRecord)
public boolean assertSubtreeScope(org.apache.directory.shared.ldap.filter.ScopeNode node, java.math.BigInteger id) throws javax.naming.NamingException
node
- the scope node containing the base and alias handling modeid
- the candidate to assert which can be any db entry's id
javax.naming.NamingException
- if the index lookups fail.public boolean assertOneLevelScope(org.apache.directory.shared.ldap.filter.ScopeNode node, java.math.BigInteger id) throws javax.naming.NamingException
node
- the scope node containing the base and alias handling modeid
- the candidate to assert which can be any db entry's id
javax.naming.NamingException
- if the index lookups fail.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |