2 * ============LICENSE_START==========================================
4 * ===================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ===================================================================
8 * Unless otherwise specified, all software contained herein is licensed
9 * under the Apache License, Version 2.0 (the "License");
10 * you may not use this software except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
21 * Unless otherwise specified, all documentation contained herein is licensed
22 * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23 * you may not use this documentation except in compliance with the License.
24 * You may obtain a copy of the License at
26 * https://creativecommons.org/licenses/by/4.0/
28 * Unless required by applicable law or agreed to in writing, documentation
29 * distributed under the License is distributed on an "AS IS" BASIS,
30 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31 * See the License for the specific language governing permissions and
32 * limitations under the License.
34 * ============LICENSE_END============================================
38 package org.onap.portalapp.portal.transport;
40 public class RoleInAppForUser {
43 public RoleInAppForUser() {
46 public RoleInAppForUser(Long id, String name) {
53 public String roleName;
55 public Boolean isApplied;
57 public Long getRoleId() {
61 public void setRoleId(Long roleId) {
65 public String getRoleName() {
69 public void setRoleName(String roleName) {
70 this.roleName = roleName;
73 public Boolean getIsApplied() {
77 public void setIsApplied(Boolean isApplied) {
78 this.isApplied = isApplied;
82 public String toString() {
83 return "RoleInAppForUser [roleId=" + roleId + ", roleName=" + roleName + ", isApplied=" + isApplied + "]";
87 public int hashCode() {
90 result = prime * result + ((isApplied == null) ? 0 : isApplied.hashCode());
91 result = prime * result + ((roleId == null) ? 0 : roleId.hashCode());
92 result = prime * result + ((roleName == null) ? 0 : roleName.hashCode());
97 public boolean equals(Object obj) {
102 if (getClass() != obj.getClass())
104 RoleInAppForUser other = (RoleInAppForUser) obj;
105 if (isApplied == null) {
106 if (other.isApplied != null)
108 } else if (!isApplied.equals(other.isApplied))
110 if (roleId == null) {
111 if (other.roleId != null)
113 } else if (!roleId.equals(other.roleId))
115 if (roleName == null) {
116 if (other.roleName != null)
118 } else if (!roleName.equals(other.roleName))