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

Chris Ridd
03.27.2014 9447cd5898d6b30411ed13d2ce6dbc1df191971d
Fix OPENDJ-1488 control-panel: LDAPS connection handler should not be displayed in monitoring section when it is disabled
1 files modified
11 ■■■■■ changed files
opends/src/guitools/org/opends/guitools/controlpanel/ui/ConnectionHandlerMonitoringPanel.java 11 ●●●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/controlpanel/ui/ConnectionHandlerMonitoringPanel.java
@@ -22,6 +22,7 @@
 *
 *
 *      Copyright 2009-2010 Sun Microsystems, Inc.
 *      Portions Copyright 2014 ForgeRock AS.
 */
package org.opends.guitools.controlpanel.ui;
@@ -589,10 +590,12 @@
  private boolean protocolHasMonitoring(ConnectionHandlerDescriptor ch)
  {
    return (ch.getProtocol() == Protocol.LDAP) ||
    (ch.getProtocol() == Protocol.LDAPS) ||
    (ch.getProtocol() == Protocol.LDAP_STARTTLS) ||
    (ch.getProtocol() == Protocol.OTHER);
    if (ch.getState() == State.DISABLED)
      return false;
    return ch.getProtocol() == Protocol.LDAP ||
      ch.getProtocol() == Protocol.LDAPS ||
      ch.getProtocol() == Protocol.LDAP_STARTTLS ||
      ch.getProtocol() == Protocol.OTHER;
  }
  /**