/** * {@inheritDoc} */ @Override public EntryFilteringCursor search( SearchOperationContext searchContext ) throws LdapException { Dn baseDn = searchContext.getDn(); // TODO since we're handling the *, and + in the EntryFilteringCursor // we may not need this code: we need see if this is actually the // case and remove this code. if ( baseDn.size() == 0 ) { return searchFromRoot( searchContext ); } // Not sure we need this code... if ( !baseDn.isSchemaAware() ) { baseDn = new Dn( schemaManager, baseDn ); } // Normal case : do a search on the specific partition Partition backend = searchContext.getPartition(); return backend.search( searchContext ); }
getRootDseContext.setPartition( searchContext.getPartition() ); getRootDseContext.setTransaction( searchContext.getTransaction() );