/** * Indicates whether this DN falls within the range of the provided search * base DN and scope. * * @param baseDN The base DN for which to make the determination. It must * not be {@code null}. * @param scope The scope for which to make the determination. It must not * be {@code null}. * * @return {@code true} if this DN is within the range of the provided base * and scope, or {@code false} if not. * * @throws LDAPException If a problem occurs while making the determination. */ public boolean matchesBaseAndScope(final String baseDN, final SearchScope scope) throws LDAPException { return matchesBaseAndScope(new DN(baseDN), scope); }
/** * Indicates whether this DN falls within the range of the provided search * base DN and scope. * * @param baseDN The base DN for which to make the determination. It must * not be {@code null}. * @param scope The scope for which to make the determination. It must not * be {@code null}. * * @return {@code true} if this DN is within the range of the provided base * and scope, or {@code false} if not. * * @throws LDAPException If a problem occurs while making the determination. */ public boolean matchesBaseAndScope(final String baseDN, final SearchScope scope) throws LDAPException { return matchesBaseAndScope(new DN(baseDN), scope); }
/** * Indicates whether this entry falls within the range of the provided search * base DN and scope. * * @param baseDN The base DN for which to make the determination. It must * not be {@code null}. * @param scope The scope for which to make the determination. It must not * be {@code null}. * * @return {@code true} if this entry is within the range of the provided * base and scope, or {@code false} if not. * * @throws LDAPException If a problem occurs while making the determination. */ public boolean matchesBaseAndScope(final DN baseDN, final SearchScope scope) throws LDAPException { return getParsedDN().matchesBaseAndScope(baseDN, scope); }
/** * Indicates whether this entry falls within the range of the provided search * base DN and scope. * * @param baseDN The base DN for which to make the determination. It must * not be {@code null}. * @param scope The scope for which to make the determination. It must not * be {@code null}. * * @return {@code true} if this entry is within the range of the provided * base and scope, or {@code false} if not. * * @throws LDAPException If a problem occurs while making the determination. */ public boolean matchesBaseAndScope(final DN baseDN, final SearchScope scope) throws LDAPException { return getParsedDN().matchesBaseAndScope(baseDN, scope); }
/** * Indicates whether this entry falls within the range of the provided search * base DN and scope. * * @param baseDN The base DN for which to make the determination. It must * not be {@code null}. * @param scope The scope for which to make the determination. It must not * be {@code null}. * * @return {@code true} if this entry is within the range of the provided * base and scope, or {@code false} if not. * * @throws LDAPException If a problem occurs while making the determination. */ public boolean matchesBaseAndScope(final String baseDN, final SearchScope scope) throws LDAPException { return getParsedDN().matchesBaseAndScope(new DN(baseDN), scope); }
/** * Indicates whether this entry falls within the range of the provided search * base DN and scope. * * @param baseDN The base DN for which to make the determination. It must * not be {@code null}. * @param scope The scope for which to make the determination. It must not * be {@code null}. * * @return {@code true} if this entry is within the range of the provided * base and scope, or {@code false} if not. * * @throws LDAPException If a problem occurs while making the determination. */ public boolean matchesBaseAndScope(final String baseDN, final SearchScope scope) throws LDAPException { return getParsedDN().matchesBaseAndScope(new DN(baseDN), scope); }
if (dn.matchesBaseAndScope(parsedDN, scope))
try if (dn.matchesBaseAndScope(baseDN, scope) && filter.matchesEntry(entry, schema)) if (! dn.matchesBaseAndScope(baseDN, scope))