/** * {@inheritDoc} */ public boolean last() throws LdapException, CursorException { if ( operationContext.isAbandoned() ) { LOG.info( "Cursor has been abandoned." ); try { close(); } catch ( IOException ioe ) { throw new LdapException( ioe.getMessage(), ioe ); } throw new OperationAbandonedException(); } afterLast(); return previous(); }
/** * {@inheritDoc} */ public Entry get() throws InvalidCursorPositionException { if ( available() ) { return prefetched; } throw new InvalidCursorPositionException(); }
/** * {@inheritDoc} */ public boolean first() throws LdapException, CursorException { if ( operationContext.isAbandoned() ) { LOG.info( "Cursor has been abandoned." ); try { close(); } catch ( IOException ioe ) { throw new LdapException( ioe.getMessage(), ioe ); } throw new OperationAbandonedException(); } beforeFirst(); return next(); }
return new EntryFilteringCursorImpl( new SingletonCursor<Entry>( getRootDse( null ) ), searchContext, directoryService.getSchemaManager() ); return new EntryFilteringCursorImpl( new SingletonCursor<Entry>( serverEntry ), searchContext, directoryService.getSchemaManager() ); return new EntryFilteringCursorImpl( new SingletonCursor<Entry>( foundRootDse ), searchContext, directoryService.getSchemaManager() ); return new EntryFilteringCursorImpl( new SingletonCursor<Entry>( serverEntry ), searchContext, directoryService.getSchemaManager() );
/** * @see Object#toString() */ public String toString() { return toString( "" ); } }
return new EntryFilteringCursorImpl( new EmptyCursor<Entry>(), searchContext, directoryService.getSchemaManager() ); return new EntryFilteringCursorImpl( new EmptyCursor<Entry>(), searchContext, directoryService.getSchemaManager() );
return new EntryFilteringCursorImpl( new SingletonCursor<Entry>( emptyEntry ), searchContext, schemaManager ); return new EntryFilteringCursorImpl( new EmptyCursor<Entry>(), searchContext, schemaManager );