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.ecomp.model;
22 import javax.persistence.Entity;
23 import javax.persistence.Id;
25 import org.openecomp.portalsdk.core.domain.support.DomainVo;
26 import com.fasterxml.jackson.annotation.JsonInclude;
29 * An easily serializable version of row information from the fn_app_contact_us
30 * table; specifically this has an app ID instead of an EPApp object.
33 @JsonInclude(JsonInclude.Include.NON_NULL)
34 public class AppContactUsItem extends DomainVo {
36 private static final long serialVersionUID = 6964210807573346262L;
40 private String appName;
41 private String description;
42 private String contactName;
43 private String contactEmail;
45 private String activeYN;
47 public Long getAppId() {
51 public void setAppId(Long appId) {
55 public String getAppName() {
59 public void setAppName(String appName) {
60 this.appName = appName;
63 public String getDescription() {
67 public void setDescription(String description) {
68 this.description = description;
71 public String getContactName() {
75 public void setContactName(String contactName) {
76 this.contactName = contactName;
79 public String getContactEmail() {
83 public void setContactEmail(String contactEmail) {
84 this.contactEmail = contactEmail;
87 public String getUrl() {
91 public void setUrl(String url) {
95 public String getActiveYN() {
99 public void setActiveYN(String activeYN) {
100 this.activeYN = activeYN;
104 public int hashCode() {
105 final int prime = 31;
107 result = prime * result + ((activeYN == null) ? 0 : activeYN.hashCode());
108 result = prime * result + ((appId == null) ? 0 : appId.hashCode());
109 result = prime * result + ((appName == null) ? 0 : appName.hashCode());
110 result = prime * result + ((contactEmail == null) ? 0 : contactEmail.hashCode());
111 result = prime * result + ((contactName == null) ? 0 : contactName.hashCode());
112 result = prime * result + ((description == null) ? 0 : description.hashCode());
113 result = prime * result + ((url == null) ? 0 : url.hashCode());
118 public boolean equals(Object obj) {
123 if (getClass() != obj.getClass())
125 AppContactUsItem other = (AppContactUsItem) obj;
126 if (activeYN == null) {
127 if (other.activeYN != null)
129 } else if (!activeYN.equals(other.activeYN))
132 if (other.appId != null)
134 } else if (!appId.equals(other.appId))
136 if (appName == null) {
137 if (other.appName != null)
139 } else if (!appName.equals(other.appName))
141 if (contactEmail == null) {
142 if (other.contactEmail != null)
144 } else if (!contactEmail.equals(other.contactEmail))
146 if (contactName == null) {
147 if (other.contactName != null)
149 } else if (!contactName.equals(other.contactName))
151 if (description == null) {
152 if (other.description != null)
154 } else if (!description.equals(other.description))
157 if (other.url != null)
159 } else if (!url.equals(other.url))
165 public String toString() {
166 return "AppContactUsItem [appId=" + appId + ", appName=" + appName + ", description=" + description
167 + ", contactName=" + contactName + ", contactEmail=" + contactEmail + ", url=" + url + ", activeYN="