org.apache.directory.server.core.subtree
Class SubtreeEvaluator
java.lang.Object
org.apache.directory.server.core.subtree.SubtreeEvaluator
public class SubtreeEvaluator
- extends java.lang.Object
An evaluator used to determine if an entry is included in the collection
represented by a subtree specification.
- Version:
- $Rev: 434579 $
- Author:
- Apache Directory Project
Constructor Summary |
SubtreeEvaluator(OidRegistry registry)
Creates a subtreeSpecification evaluatior which can be used to determine
if an entry is included within the collection of a subtree. |
Method Summary |
boolean |
evaluate(SubtreeSpecification subtree,
javax.naming.Name apDn,
javax.naming.Name entryDn,
javax.naming.directory.Attribute objectClasses)
Determines if an entry is selected by a subtree specification. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubtreeEvaluator
public SubtreeEvaluator(OidRegistry registry)
- Creates a subtreeSpecification evaluatior which can be used to determine
if an entry is included within the collection of a subtree.
- Parameters:
registry
- a registry used to lookup objectClass names for OIDs
evaluate
public boolean evaluate(SubtreeSpecification subtree,
javax.naming.Name apDn,
javax.naming.Name entryDn,
javax.naming.directory.Attribute objectClasses)
throws javax.naming.NamingException
- Determines if an entry is selected by a subtree specification.
- Parameters:
subtree
- the subtree specificationapDn
- the distinguished name of the administrative point containing the subentryentryDn
- the distinguished name of the candidate entryobjectClasses
- the objectClasses of the candidate entry
- Returns:
- true if the entry is selected by the specification, false if it is not
- Throws:
javax.naming.NamingException
- if errors are encountered while evaluating selection