* @throws NamingException if the index lookups fail.
*/
public boolean assertOneLevelScope( final ScopeNode node,
final BigInteger id ) throws NamingException
{
DerefAliasesEnum mode = node.getDerefAliases();
Object baseId = db.getEntryId( node.getBaseDn() );
Index idx = db.getHierarchyIndex();
boolean isChild = idx.hasValue( baseId, id );
/*
* The candidate id could be any entry in the db. If search
* dereferencing is not enabled then we return the results of the child
* test.
*/
if ( ! mode.derefInSearching() )
{
return isChild;
}
/*