mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ludovicp
20.39.2010 66c1a80d263b71195a525d1c1fdd59e464a606ae
opends/src/guitools/org/opends/guitools/controlpanel/util/LDAPEntryReader.java
@@ -48,9 +48,10 @@
 */
public class LDAPEntryReader extends BackgroundTask<CustomSearchResult>
{
  private String dn;
  private InitialLdapContext ctx;
  private Set<EntryReadListener> listeners = new HashSet<EntryReadListener>();
  private final String dn;
  private final InitialLdapContext ctx;
  private final Set<EntryReadListener> listeners =
    new HashSet<EntryReadListener>();
  private boolean isOver;
  private boolean notifyListeners;
@@ -69,6 +70,7 @@
  /**
   * {@inheritDoc}
   */
  @Override
  public CustomSearchResult processBackgroundTask() throws Throwable
  {
    isOver = false;
@@ -76,7 +78,6 @@
    try
    {
      SearchControls controls = new SearchControls();
      controls.setCountLimit(1);
      String[] attrs = {"*", "+"};
      controls.setReturningAttributes(attrs);
@@ -85,7 +86,11 @@
      en = ctx.search(Utilities.getJNDIName(dn), filter, controls);
      SearchResult sr = en.next();
      SearchResult sr = null;
      while (en.hasMore())
      {
        sr = en.next();
      }
      return new CustomSearchResult(sr, dn);
    }
@@ -105,6 +110,7 @@
  /**
   * {@inheritDoc}
   */
  @Override
  public void backgroundTaskCompleted(CustomSearchResult sr,
      Throwable throwable)
  {