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 import java.util.ArrayList;
24 public class AppsListWithAdminRole {
26 public String orgUserId;
28 public ArrayList<AppNameIdIsAdmin> appsRoles;
30 public AppsListWithAdminRole() {
31 appsRoles = new ArrayList<AppNameIdIsAdmin>();
34 public String getOrgUserId() {
38 public void setOrgUserId(String orgUserId) {
39 this.orgUserId = orgUserId;
42 public ArrayList<AppNameIdIsAdmin> getAppsRoles() {
46 public void setAppsRoles(ArrayList<AppNameIdIsAdmin> appsRoles) {
47 this.appsRoles = appsRoles;
51 public String toString() {
52 return "AppsListWithAdminRole [orgUserId=" + orgUserId + ", appsRoles=" + appsRoles + "]";
56 public int hashCode() {
59 result = prime * result + ((appsRoles == null) ? 0 : appsRoles.hashCode());
60 result = prime * result + ((orgUserId == null) ? 0 : orgUserId.hashCode());
65 public boolean equals(Object obj) {
70 if (getClass() != obj.getClass())
72 AppsListWithAdminRole other = (AppsListWithAdminRole) obj;
73 if (appsRoles == null) {
74 if (other.appsRoles != null)
76 } else if (!appsRoles.equals(other.appsRoles))
78 if (orgUserId == null) {
79 if (other.orgUserId != null)
81 } else if (!orgUserId.equals(other.orgUserId))