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