return domainid;
}
- public void setDomainid(String id) {
- this.domainid = id;
+ public void setDomainid(final String id) {
+ domainid = id;
}
public String getName() {
return name;
}
- public void setName(String name) {
+ public void setName(final String name) {
this.name = name;
}
return description;
}
- public void setDescription(String description) {
+ public void setDescription(final String description) {
this.description = description;
}
return enabled;
}
- public void setEnabled(Boolean enabled) {
+ public void setEnabled(final Boolean enabled) {
this.enabled = enabled;
}
}
@Override
- public boolean equals(Object obj) {
+ public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
-
if (obj == null || getClass() != obj.getClass()) {
return false;
}
-
- Domain other = (Domain) obj;
- if (Objects.equals(getName(), other.getName()) && Objects.equals(getDomainid(), other.getDomainid())
- && Objects.equals(getDescription(), other.getDescription())) {
- return true;
- }
- return false;
+ final Domain other = (Domain) obj;
+ return Objects.equals(getName(), other.getName()) && Objects.equals(getDomainid(), other.getDomainid())
+ && Objects.equals(getDescription(), other.getDescription());
}
@Override
private String roleid;
public String getGrantid() {
- return this.grantid;
+ return grantid;
}
- public void setGrantid(String id) {
- this.grantid = id;
+ public void setGrantid(final String id) {
+ grantid = id;
}
public String getDomainid() {
return domainid;
}
- public void setDomainid(String id) {
- this.domainid = id;
+ public void setDomainid(final String id) {
+ domainid = id;
}
public String getUserid() {
return userid;
}
- public void setUserid(String id) {
- this.userid = id;
+ public void setUserid(final String id) {
+ userid = id;
}
public String getRoleid() {
return roleid;
}
- public void setRoleid(String id) {
- this.roleid = id;
+ public void setRoleid(final String id) {
+ roleid = id;
}
@Override
public int hashCode() {
- return this.getUserid().hashCode();
+ return getUserid().hashCode();
}
@Override
- public boolean equals(Object obj) {
+ public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
-
if (obj == null || getClass() != obj.getClass()) {
return false;
}
-
- Grant other = (Grant) obj;
- if (Objects.equals(getDomainid(), other.getDomainid()) && Objects.equals(getRoleid(), other.getRoleid())
- && Objects.equals(getUserid(), other.getUserid())) {
- return true;
- }
- return false;
+ final Grant other = (Grant) obj;
+ return Objects.equals(getDomainid(), other.getDomainid()) && Objects.equals(getRoleid(), other.getRoleid())
+ && Objects.equals(getUserid(), other.getUserid());
}
}
return roleid;
}
- public void setRoleid(String id) {
- this.roleid = id;
+ public void setRoleid(final String id) {
+ roleid = id;
}
public String getName() {
return name;
}
- public void setName(String name) {
+ public void setName(final String name) {
this.name = name;
}
return description;
}
- public void setDescription(String description) {
+ public void setDescription(final String description) {
this.description = description;
}
}
@Override
- public boolean equals(Object obj) {
+ public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
-
if (obj == null || getClass() != obj.getClass()) {
return false;
}
-
- Role other = (Role) obj;
- if (Objects.equals(getName(), other.getName()) && Objects.equals(getRoleid(), other.getRoleid())
- && Objects.equals(getDescription(), other.getDescription())) {
- return true;
- }
- return false;
+ final Role other = (Role) obj;
+ return Objects.equals(getName(), other.getName()) && Objects.equals(getRoleid(), other.getRoleid())
+ && Objects.equals(getDescription(), other.getDescription());
}
@Override
return name;
}
- public void setDomainid(String domainid) {
+ public void setDomainid(final String domainid) {
this.domainid = domainid;
}
public String getDomainid() {
- return this.domainid;
+ return domainid;
}
}
return userid;
}
- public void setUserid(String id) {
- this.userid = id;
+ public void setUserid(final String id) {
+ userid = id;
}
public String getName() {
return name;
}
- public void setName(String name) {
+ public void setName(final String name) {
this.name = name;
}
return description;
}
- public void setDescription(String description) {
+ public void setDescription(final String description) {
this.description = description;
}
this.enabled = enabled;
}
- public void setEmail(String email) {
+ public void setEmail(final String email) {
this.email = email;
}
return email;
}
- public void setPassword(String password) {
+ public void setPassword(final String password) {
this.password = password;
}
return password;
}
- public void setSalt(String salt) {
+ public void setSalt(final String salt) {
this.salt = salt;
}
public String getSalt() {
- return this.salt;
+ return salt;
}
public String getDomainid() {
return domainid;
}
- public void setDomainid(String domainid) {
+ public void setDomainid(final String domainid) {
this.domainid = domainid;
}
}
@Override
- public boolean equals(Object obj) {
+ public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
-
if (obj == null || getClass() != obj.getClass()) {
return false;
}
-
- User other = (User) obj;
- if (Objects.equals(getName(), other.getName())
- && Objects.equals(getEmail(), other.getEmail())
- && isEnabled().equals(other.isEnabled())
- && Objects.equals(getPassword(), other.getPassword())
- && Objects.equals(getSalt(), other.getSalt())
- && Objects.equals(getUserid(), other.getUserid())
- && Objects.equals(getDescription(), other.getDescription())) {
- return true;
- }
- return false;
+ final User other = (User) obj;
+ return Objects.equals(getName(), other.getName()) && Objects.equals(getEmail(), other.getEmail())
+ && isEnabled().equals(other.isEnabled()) && Objects.equals(getPassword(), other.getPassword())
+ && Objects.equals(getSalt(), other.getSalt()) && Objects.equals(getUserid(), other.getUserid())
+ && Objects.equals(getDescription(), other.getDescription());
}
@Override
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.aaa.api.model;
-/**
- *
- * @author peter.mellquist@hp.com
- *
- */
-
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "userpwd")
return username;
}
- public void setUsername(String name) {
- this.username = name;
+ public void setUsername(final String name) {
+ username = name;
}
public String getUserpwd() {
return userpwd;
}
- public void setUserpwd(String pwd) {
- this.userpwd = pwd;
+ public void setUserpwd(final String pwd) {
+ userpwd = pwd;
}
-
}