X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fusermanager%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fusermanager%2FServerConfig.java;h=3145f2095f4d480af5f91bc5e2303fd89246ae14;hb=9255eb1b0531be05266f52175044464fee30a969;hp=f50f9e71c9c7f05d23de14034744fbeba676c730;hpb=424b73ce019d401b5e4ebbf14613983e092378e3;p=controller.git diff --git a/opendaylight/usermanager/api/src/main/java/org/opendaylight/controller/usermanager/ServerConfig.java b/opendaylight/usermanager/api/src/main/java/org/opendaylight/controller/usermanager/ServerConfig.java index f50f9e71c9..3145f2095f 100644 --- a/opendaylight/usermanager/api/src/main/java/org/opendaylight/controller/usermanager/ServerConfig.java +++ b/opendaylight/usermanager/api/src/main/java/org/opendaylight/controller/usermanager/ServerConfig.java @@ -11,11 +11,13 @@ package org.opendaylight.controller.usermanager; import java.io.Serializable; +import org.opendaylight.controller.configuration.ConfigurationObject; + /** * Configuration Java Object which represents a Remote AAA server configuration * information for User Manager. */ -public class ServerConfig implements Serializable { +public class ServerConfig extends ConfigurationObject implements Serializable { private static final long serialVersionUID = 1L; // Order matters: JSP file expects following fields in the following order @@ -57,28 +59,37 @@ public class ServerConfig implements Serializable { @Override public boolean equals(Object obj) { - if (this == obj) + if (this == obj) { return true; - if (obj == null) + } + if (obj == null) { return false; - if (getClass() != obj.getClass()) + } + if (getClass() != obj.getClass()) { return false; + } ServerConfig other = (ServerConfig) obj; if (ip == null) { - if (other.ip != null) + if (other.ip != null) { return false; - } else if (!ip.equals(other.ip)) + } + } else if (!ip.equals(other.ip)) { return false; + } if (protocol == null) { - if (other.protocol != null) + if (other.protocol != null) { return false; - } else if (!protocol.equals(other.protocol)) + } + } else if (!protocol.equals(other.protocol)) { return false; + } if (secret == null) { - if (other.secret != null) + if (other.secret != null) { return false; - } else if (!secret.equals(other.secret)) + } + } else if (!secret.equals(other.secret)) { return false; + } return true; }