2 * ============LICENSE_START==========================================
4 * ===================================================================
5 * Copyright (C) 2017-2018 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============================================
38 package org.onap.portalapp.portal.ecomp.model;
40 import javax.persistence.Entity;
41 import javax.persistence.Id;
43 import org.onap.portalsdk.core.domain.support.DomainVo;
44 import com.fasterxml.jackson.annotation.JsonInclude;
47 * An easily serializable version of row information from the fn_app_contact_us
48 * table; specifically this has an app ID instead of an EPApp object.
51 @JsonInclude(JsonInclude.Include.NON_NULL)
52 public class AppContactUsItem extends DomainVo {
54 private static final long serialVersionUID = 6964210807573346262L;
58 private String appName;
59 private String description;
60 private String contactName;
61 private String contactEmail;
63 private String activeYN;
65 public Long getAppId() {
69 public void setAppId(Long appId) {
73 public String getAppName() {
77 public void setAppName(String appName) {
78 this.appName = appName;
81 public String getDescription() {
85 public void setDescription(String description) {
86 this.description = description;
89 public String getContactName() {
93 public void setContactName(String contactName) {
94 this.contactName = contactName;
97 public String getContactEmail() {
101 public void setContactEmail(String contactEmail) {
102 this.contactEmail = contactEmail;
105 public String getUrl() {
109 public void setUrl(String url) {
113 public String getActiveYN() {
117 public void setActiveYN(String activeYN) {
118 this.activeYN = activeYN;
122 public int hashCode() {
123 final int prime = 31;
125 result = prime * result + ((activeYN == null) ? 0 : activeYN.hashCode());
126 result = prime * result + ((appId == null) ? 0 : appId.hashCode());
127 result = prime * result + ((appName == null) ? 0 : appName.hashCode());
128 result = prime * result + ((contactEmail == null) ? 0 : contactEmail.hashCode());
129 result = prime * result + ((contactName == null) ? 0 : contactName.hashCode());
130 result = prime * result + ((description == null) ? 0 : description.hashCode());
131 result = prime * result + ((url == null) ? 0 : url.hashCode());
136 public boolean equals(Object obj) {
141 if (getClass() != obj.getClass())
143 AppContactUsItem other = (AppContactUsItem) obj;
144 if (activeYN == null) {
145 if (other.activeYN != null)
147 } else if (!activeYN.equals(other.activeYN))
150 if (other.appId != null)
152 } else if (!appId.equals(other.appId))
154 if (appName == null) {
155 if (other.appName != null)
157 } else if (!appName.equals(other.appName))
159 if (contactEmail == null) {
160 if (other.contactEmail != null)
162 } else if (!contactEmail.equals(other.contactEmail))
164 if (contactName == null) {
165 if (other.contactName != null)
167 } else if (!contactName.equals(other.contactName))
169 if (description == null) {
170 if (other.description != null)
172 } else if (!description.equals(other.description))
175 if (other.url != null)
177 } else if (!url.equals(other.url))
183 public String toString() {
184 return "AppContactUsItem [appId=" + appId + ", appName=" + appName + ", description=" + description
185 + ", contactName=" + contactName + ", contactEmail=" + contactEmail + ", url=" + url + ", activeYN="