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 import java.util.List;
\r
24 import com.fasterxml.jackson.annotation.JsonInclude;
\r
26 @JsonInclude(JsonInclude.Include.NON_NULL)
\r
27 public class BusinessCardApplicationRolesList {
\r
29 public BusinessCardApplicationRolesList(){}
\r
31 private String appName;
\r
32 private List<String> roleNames;
\r
35 public String getAppName() {
\r
38 public void setAppName(String appName) {
\r
39 this.appName = appName;
\r
41 public List<String> getRoleNames() {
\r
44 public void setRoleNames(List<String> roleNames) {
\r
45 this.roleNames = roleNames;
\r
47 public BusinessCardApplicationRolesList(String appName, List<String> roleNames) {
\r
49 this.appName = appName;
\r
50 this.roleNames = roleNames;
\r
53 public String toString() {
\r
54 return "BusinessCardUserAppRoles [appName=" + appName + ", roleNames=" + roleNames + "]";
\r
57 public int hashCode() {
\r
58 final int prime = 31;
\r
60 result = prime * result + ((appName == null) ? 0 : appName.hashCode());
\r
61 result = prime * result + ((roleNames == null) ? 0 : roleNames.hashCode());
\r
65 public boolean equals(Object obj) {
\r
70 if (getClass() != obj.getClass())
\r
72 BusinessCardApplicationRolesList other = (BusinessCardApplicationRolesList) obj;
\r
73 if (appName == null) {
\r
74 if (other.appName != null)
\r
76 } else if (!appName.equals(other.appName))
\r
78 if (roleNames == null) {
\r
79 if (other.roleNames != null)
\r
81 } else if (!roleNames.equals(other.roleNames))
\r