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

Chris Ridd
16.05.2014 efde36226a332f8a4c407d15c3b389eb43c704a4
Forward port fix OPENDJ-1488 control-panel: LDAPS connection handler should not be displayed in monitoring section when it is disabled
1 files modified
10 ■■■■■ changed files
opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/ConnectionHandlerMonitoringPanel.java 10 ●●●●● patch | view | raw | blame | history
opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/ConnectionHandlerMonitoringPanel.java
@@ -590,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;
  }
  /**