public class SubtreeEvaluator extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public SubtreeEvaluator(org.apache.directory.shared.ldap.schema.registries.OidRegistry oidRegistry, org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
oidRegistry
- a registry used to lookup objectClass names for OIDsattrRegistry
- registry to be looked uppublic 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
subtree
- the subtree specificationapDn
- the distinguished name of the administrative point containing the subentryentryDn
- the distinguished name of the candidate entryorg.apache.directory.shared.ldap.exception.LdapException
- if errors are encountered while evaluating selectionCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.