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