use of org.apache.directory.server.core.api.filtering.EntryFilteringCursorImpl in project structr by structr.
the class StructrPartition method search.
@Override
public EntryFilteringCursor search(SearchOperationContext searchContext) throws LdapException {
logger.info("{}", searchContext);
final LdapPrincipal principal = searchContext.getEffectivePrincipal();
final Dn dn = searchContext.getDn();
final ExprNode filter = searchContext.getFilter();
final SearchScope scope = searchContext.getScope();
final List<Entry> list = getWrapper(principal).filter(dn, filter, scope);
final Cursor<Entry> cursor = new ListCursor<>(list);
final SchemaManager manager = getSchemaManager();
return new EntryFilteringCursorImpl(cursor, searchContext, manager);
}
Aggregations