/** * {@inheritDoc} */ @Override public boolean next() throws LdapException, CursorException { checkNotClosed(); return false; }
/** * {@inheritDoc} */ @Override public Cursor<K> reverseValueCursor( PartitionTxn partitionTxn, String id ) throws LdapException { if ( withReverse ) { return reverse.valueCursor( partitionTxn, id ); } else { return new EmptyCursor<>(); } }
/** * {@inheritDoc} */ @Override public Cursor<K> reverseValueCursor( PartitionTxn partitionTxn, String id ) throws LdapException { if ( withReverse ) { return reverse.valueCursor( partitionTxn, id ); } else { return new EmptyCursor<>(); } }
/** * {@inheritDoc} */ @Override public SearchCursor search( SearchRequest searchRequest ) throws LdapException { if ( searchRequest == null ) { String msg = "Cannot process a null searchRequest"; LOG.debug( msg ); throw new IllegalArgumentException( msg ); } try { int newId = messageId.incrementAndGet(); searchRequest.setMessageId( newId ); Cursor<Entry> entryCursor = session.search( searchRequest ); entryCursor.beforeFirst(); //TODO enforce the size and time limits, similar in the way SearchHandler does return new EntryToResponseCursor( searchRequest, newId, entryCursor ); } catch ( Exception e ) { LOG.warn( e.getMessage(), e ); } return new EntryToResponseCursor( searchRequest, -1, new EmptyCursor<Entry>() ); }
/** * {@inheritDoc} */ @Override public boolean first() throws LdapException, CursorException { checkNotClosed(); return false; }
return new EmptyCursor<V>(); return new EmptyCursor<>();
/** * {@inheritDoc} */ @Override public void beforeFirst() throws LdapException, CursorException { checkNotClosed(); }
return new EmptyCursor<>(); return new EmptyCursor<>();
/** * {@inheritDoc} */ @Override public void after( E element ) throws LdapException, CursorException { checkNotClosed(); }
return new EmptyCursor<>(); return new EmptyCursor<>();
/** * {@inheritDoc} */ @Override public boolean first() throws LdapException, CursorException { checkNotClosed(); return false; }
return new EmptyCursor<>(); return new EmptyCursor<>();
/** * {@inheritDoc} */ @Override public boolean last() throws LdapException, CursorException { checkNotClosed(); return false; }
return new EntryFilteringCursorImpl( new EmptyCursor<Entry>(), searchContext, directoryService.getSchemaManager() ); return new EntryFilteringCursorImpl( new EmptyCursor<Entry>(), searchContext, directoryService.getSchemaManager() );
/** * {@inheritDoc} */ @Override public void afterLast() throws LdapException, CursorException { checkNotClosed(); }
return new EntryFilteringCursorImpl( new EmptyCursor<Entry>(), searchContext, schemaManager );
/** * {@inheritDoc} */ @Override public void afterLast() throws LdapException, CursorException { checkNotClosed(); }
done.addControl( sortRespCtrl ); return new EmptyCursor<>();
/** * {@inheritDoc} */ @Override public void afterLast() throws LdapException, CursorException { checkNotClosed(); }
/** * {@inheritDoc} */ @Override public void before( E element ) throws LdapException, CursorException { checkNotClosed(); }