/** * {@inheritDoc} */ public Entry get() throws CursorException { if ( ( index < start ) || ( index >= end ) ) { throw new CursorException( I18n.err( I18n.ERR_13109_CURSOR_NOT_POSITIONED ) ); } if ( currentCursor.available() ) { return currentCursor.get(); } throw new InvalidCursorPositionException(); }
Entry entry = results.get();
public SearchResult next() throws NamingException { Entry entry = null; try { entry = cursor.get(); if ( cursor.next() ) { available = true; } else { available = false; cursor.close(); } } catch ( Exception e ) { JndiUtils.wrap( e ); } SearchResult result = new SearchResult( entry.getDn().getName(), null, ServerEntryUtils.toBasicAttributes( entry ) ); result.setRelative( false ); return result; }
private void dumpLdapContents() throws Exception { EntryFilteringCursor cursor = getService().getAdminSession().search(new Dn("ou=system"), SearchScope.SUBTREE, new PresenceNode("ObjectClass"), AliasDerefMode.DEREF_ALWAYS); String st = ""; while (cursor.next()) { Entry entry = cursor.get(); String ss = LdifUtils.convertToLdif(entry); st += ss + "\n"; } System.out.println(st); cursor = getService().getAdminSession().search(new Dn("dc=example,dc=com"), SearchScope.SUBTREE, new PresenceNode("ObjectClass"), AliasDerefMode.DEREF_ALWAYS); st = ""; while (cursor.next()) { Entry entry = cursor.get(); String ss = LdifUtils.convertToLdif(entry); st += ss + "\n"; } System.out.println(st); }
Entry entry = cursor.get();
Entry entry = cursor.get();
Entry entry = cursor.get();
Entry candidate = subentries.get(); Dn candidateDn = candidate.getDn();
Entry resultEntry = results.get(); Dn subentryDn = resultEntry.getDn(); Attribute triggerSpec = resultEntry.get( PRESCRIPTIVE_TRIGGER_ATTR );
Entry subentry = subentries.get(); Dn subentryDn = subentry.getDn();
Entry candidate = subentries.get(); Dn dn = candidate.getDn();
Entry candidate = subentries.get(); Dn dn = candidate.getDn();
Entry candidate = subentries.get(); Dn dn = candidate.getDn();
Entry entry = cursor.get();