2  * ============LICENSE_START==========================================
 
   4  * ===================================================================
 
   5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
 
   6  * ===================================================================
 
   8  * Unless otherwise specified, all software contained herein is licensed
 
   9  * under the Apache License, Version 2.0 (the "License");
 
  10  * you may not use this software except in compliance with the License.
 
  11  * You may obtain a copy of the License at
 
  13  *             http://www.apache.org/licenses/LICENSE-2.0
 
  15  * Unless required by applicable law or agreed to in writing, software
 
  16  * distributed under the License is distributed on an "AS IS" BASIS,
 
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
  18  * See the License for the specific language governing permissions and
 
  19  * limitations under the License.
 
  21  * Unless otherwise specified, all documentation contained herein is licensed
 
  22  * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
 
  23  * you may not use this documentation except in compliance with the License.
 
  24  * You may obtain a copy of the License at
 
  26  *             https://creativecommons.org/licenses/by/4.0/
 
  28  * Unless required by applicable law or agreed to in writing, documentation
 
  29  * distributed under the License is distributed on an "AS IS" BASIS,
 
  30  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
  31  * See the License for the specific language governing permissions and
 
  32  * limitations under the License.
 
  34  * ============LICENSE_END============================================
 
  36  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
 
  38 package org.onap.portalapp.portal.transport;
 
  40 public class ExternalRoleDescription {
 
  44     private String active;
 
  45     private String priority;
 
  47     private String appRoleId;
 
  49         public String getId() {
 
  52         public void setId(String id) {
 
  55         public String getName() {
 
  58         public void setName(String name) {
 
  61         public String getActive() {
 
  64         public void setActive(String active) {
 
  67         public String getPriority() {
 
  70         public void setPriority(String priority) {
 
  71                 this.priority = priority;
 
  73         public String getAppId() {
 
  76         public void setAppId(String appId) {
 
  79         public String getAppRoleId() {
 
  82         public void setAppRoleId(String appRoleId) {
 
  83                 this.appRoleId = appRoleId;
 
  86         public int hashCode() {
 
  89                 result = prime * result + ((active == null) ? 0 : active.hashCode());
 
  90                 result = prime * result + ((appId == null) ? 0 : appId.hashCode());
 
  91                 result = prime * result + ((appRoleId == null) ? 0 : appRoleId.hashCode());
 
  92                 result = prime * result + ((id == null) ? 0 : id.hashCode());
 
  93                 result = prime * result + ((name == null) ? 0 : name.hashCode());
 
  94                 result = prime * result + ((priority == null) ? 0 : priority.hashCode());
 
  98         public boolean equals(Object obj) {
 
 103                 if (getClass() != obj.getClass())
 
 105                 ExternalRoleDescription other = (ExternalRoleDescription) obj;
 
 106                 if (active == null) {
 
 107                         if (other.active != null)
 
 109                 } else if (!active.equals(other.active))
 
 112                         if (other.appId != null)
 
 114                 } else if (!appId.equals(other.appId))
 
 116                 if (appRoleId == null) {
 
 117                         if (other.appRoleId != null)
 
 119                 } else if (!appRoleId.equals(other.appRoleId))
 
 122                         if (other.id != null)
 
 124                 } else if (!id.equals(other.id))
 
 127                         if (other.name != null)
 
 129                 } else if (!name.equals(other.name))
 
 131                 if (priority == null) {
 
 132                         if (other.priority != null)
 
 134                 } else if (!priority.equals(other.priority))