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

jvergara
22.31.2009 08db26a180ec0958cbc04ef4aa33debcacb3d5ed
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/util/LDAPEntryReader.java
@@ -52,6 +52,7 @@
  private InitialLdapContext ctx;
  private Set<EntryReadListener> listeners = new HashSet<EntryReadListener>();
  private boolean isOver;
  private boolean notifyListeners;
  /**
   * Constructor of the entry reader.
@@ -62,6 +63,7 @@
  {
    this.dn = dn;
    this.ctx = ctx;
    this.notifyListeners = true;
  }
  /**
@@ -102,7 +104,7 @@
  public void backgroundTaskCompleted(CustomSearchResult sr,
      Throwable throwable)
  {
    if (!isInterrupted())
    if (!isInterrupted() && isNotifyListeners())
    {
      if (throwable == null)
      {
@@ -117,6 +119,28 @@
  }
  /**
   * Returns whether this entry reader will notify the listeners once it is
   * over.
   * @return whether this entry reader will notify the listeners once it is
   * over.
   */
  public boolean isNotifyListeners()
  {
    return notifyListeners;
  }
  /**
   * Sets whether this entry reader will notify the listeners once it is
   * over.
   * @param notifyListeners whether this entry reader will notify the listeners
   * once it is over.
   */
  public void setNotifyListeners(boolean notifyListeners)
  {
    this.notifyListeners = notifyListeners;
  }
  /**
   * Returns <CODE>true</CODE> if the read process is over and
   * <CODE>false</CODE> otherwise.
   * @return <CODE>true</CODE> if the read process is over and