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 AppNameIdIsAdmin {
26 public String appName;
28 public Boolean isAdmin;
30 public Boolean restrictedApp;
36 public void setId(Long id) {
40 public String getAppName() {
44 public void setAppName(String appName) {
45 this.appName = appName;
48 public Boolean getIsAdmin() {
52 public void setIsAdmin(Boolean isAdmin) {
53 this.isAdmin = isAdmin;
56 public Boolean getRestrictedApp() {
60 public void setRestrictedApp(Boolean restrictedApp) {
61 this.restrictedApp = restrictedApp;
65 public int hashCode() {
68 result = prime * result + ((appName == null) ? 0 : appName.hashCode());
69 result = prime * result + ((id == null) ? 0 : id.hashCode());
70 result = prime * result + ((isAdmin == null) ? 0 : isAdmin.hashCode());
71 result = prime * result + ((restrictedApp == null) ? 0 : restrictedApp.hashCode());
76 public boolean equals(Object obj) {
81 if (getClass() != obj.getClass())
83 AppNameIdIsAdmin other = (AppNameIdIsAdmin) obj;
84 if (appName == null) {
85 if (other.appName != null)
87 } else if (!appName.equals(other.appName))
92 } else if (!id.equals(other.id))
94 if (isAdmin == null) {
95 if (other.isAdmin != null)
97 } else if (!isAdmin.equals(other.isAdmin))
99 if (restrictedApp == null) {
100 if (other.restrictedApp != null)
102 } else if (!restrictedApp.equals(other.restrictedApp))
108 public String toString() {
109 return "AppNameIdIsAdmin [id=" + id + ", appName=" + appName + ", isAdmin=" + isAdmin + ", restrictedApp="
110 + restrictedApp + "]";