2 * ================================================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 AT&T Intellectual Property
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ================================================================================
\r
20 package org.openecomp.portalapp.portal.transport;
\r
22 public class RoleInAppForUser {
\r
25 public RoleInAppForUser() {
\r
28 public RoleInAppForUser(Long id, String name) {
\r
30 this.roleName = name;
\r
35 public String roleName;
\r
37 public Boolean isApplied;
\r
39 public Long getRoleId() {
\r
43 public void setRoleId(Long roleId) {
\r
44 this.roleId = roleId;
\r
47 public String getRoleName() {
\r
51 public void setRoleName(String roleName) {
\r
52 this.roleName = roleName;
\r
55 public Boolean getIsApplied() {
\r
59 public void setIsApplied(Boolean isApplied) {
\r
60 this.isApplied = isApplied;
\r
64 public String toString() {
\r
65 return "RoleInAppForUser [roleId=" + roleId + ", roleName=" + roleName + ", isApplied=" + isApplied + "]";
\r
69 public int hashCode() {
\r
70 final int prime = 31;
\r
72 result = prime * result + ((isApplied == null) ? 0 : isApplied.hashCode());
\r
73 result = prime * result + ((roleId == null) ? 0 : roleId.hashCode());
\r
74 result = prime * result + ((roleName == null) ? 0 : roleName.hashCode());
\r
79 public boolean equals(Object obj) {
\r
84 if (getClass() != obj.getClass())
\r
86 RoleInAppForUser other = (RoleInAppForUser) obj;
\r
87 if (isApplied == null) {
\r
88 if (other.isApplied != null)
\r
90 } else if (!isApplied.equals(other.isApplied))
\r
92 if (roleId == null) {
\r
93 if (other.roleId != null)
\r
95 } else if (!roleId.equals(other.roleId))
\r
97 if (roleName == null) {
\r
98 if (other.roleName != null)
\r
100 } else if (!roleName.equals(other.roleName))
\r