org.apache.directory.server.core.subtree
Class SubtreeEvaluator

java.lang.Object
  extended by 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: 927146 $
Author:
Apache Directory Project

Constructor Summary
SubtreeEvaluator(org.apache.directory.shared.ldap.schema.registries.OidRegistry oidRegistry, org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
          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(org.apache.directory.shared.ldap.subtree.SubtreeSpecification subtree, org.apache.directory.shared.ldap.name.DN apDn, org.apache.directory.shared.ldap.name.DN entryDn, org.apache.directory.shared.ldap.entry.ServerEntry entry)
          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
 

Constructor Detail

SubtreeEvaluator

public SubtreeEvaluator(org.apache.directory.shared.ldap.schema.registries.OidRegistry oidRegistry,
                        org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Creates a subtreeSpecification evaluatior which can be used to determine if an entry is included within the collection of a subtree.

Parameters:
oidRegistry - a registry used to lookup objectClass names for OIDs
attrRegistry - registry to be looked up
Method Detail

evaluate

public boolean evaluate(org.apache.directory.shared.ldap.subtree.SubtreeSpecification subtree,
                        org.apache.directory.shared.ldap.name.DN apDn,
                        org.apache.directory.shared.ldap.name.DN entryDn,
                        org.apache.directory.shared.ldap.entry.ServerEntry entry)
                 throws org.apache.directory.shared.ldap.exception.LdapException
Determines if an entry is selected by a subtree specification.

Parameters:
subtree - the subtree specification
apDn - the distinguished name of the administrative point containing the subentry
entryDn - the distinguished name of the candidate entry
Returns:
true if the entry is selected by the specification, false if it is not
Throws:
org.apache.directory.shared.ldap.exception.LdapException - if errors are encountered while evaluating selection


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.