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