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.hibernate.validator.constraints.SafeHtml;
44 import org.onap.portalsdk.core.domain.support.DomainVo;
45 import com.fasterxml.jackson.annotation.JsonInclude;
48 * An easily serializable version of row information from the fn_app_contact_us
49 * table; specifically this has an app ID instead of an EPApp object.
52 @JsonInclude(JsonInclude.Include.NON_NULL)
53 public class AppContactUsItem extends DomainVo {
55 private static final long serialVersionUID = 6964210807573346262L;
60 private String appName;
62 private String description;
64 private String contactName;
66 private String contactEmail;
70 private String activeYN;
72 public Long getAppId() {
76 public void setAppId(Long appId) {
80 public String getAppName() {
84 public void setAppName(String appName) {
85 this.appName = appName;
88 public String getDescription() {
92 public void setDescription(String description) {
93 this.description = description;
96 public String getContactName() {
100 public void setContactName(String contactName) {
101 this.contactName = contactName;
104 public String getContactEmail() {
108 public void setContactEmail(String contactEmail) {
109 this.contactEmail = contactEmail;
112 public String getUrl() {
116 public void setUrl(String url) {
120 public String getActiveYN() {
124 public void setActiveYN(String activeYN) {
125 this.activeYN = activeYN;
129 public int hashCode() {
130 final int prime = 31;
132 result = prime * result + ((activeYN == null) ? 0 : activeYN.hashCode());
133 result = prime * result + ((appId == null) ? 0 : appId.hashCode());
134 result = prime * result + ((appName == null) ? 0 : appName.hashCode());
135 result = prime * result + ((contactEmail == null) ? 0 : contactEmail.hashCode());
136 result = prime * result + ((contactName == null) ? 0 : contactName.hashCode());
137 result = prime * result + ((description == null) ? 0 : description.hashCode());
138 result = prime * result + ((url == null) ? 0 : url.hashCode());
143 public boolean equals(Object obj) {
148 if (getClass() != obj.getClass())
150 AppContactUsItem other = (AppContactUsItem) obj;
151 if (activeYN == null) {
152 if (other.activeYN != null)
154 } else if (!activeYN.equals(other.activeYN))
157 if (other.appId != null)
159 } else if (!appId.equals(other.appId))
161 if (appName == null) {
162 if (other.appName != null)
164 } else if (!appName.equals(other.appName))
166 if (contactEmail == null) {
167 if (other.contactEmail != null)
169 } else if (!contactEmail.equals(other.contactEmail))
171 if (contactName == null) {
172 if (other.contactName != null)
174 } else if (!contactName.equals(other.contactName))
176 if (description == null) {
177 if (other.description != null)
179 } else if (!description.equals(other.description))
182 if (other.url != null)
184 } else if (!url.equals(other.url))
190 public String toString() {
191 return "AppContactUsItem [appId=" + appId + ", appName=" + appName + ", description=" + description
192 + ", contactName=" + contactName + ", contactEmail=" + contactEmail + ", url=" + url + ", activeYN="