[PORTAL-16 PORTAL-18] Widget ms; staging
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / ecomp / model / AppContactUsItem.java
index 5dc7bf5..1cfb664 100644 (file)
-/*-\r
- * ================================================================================\r
- * ECOMP Portal\r
- * ================================================================================\r
- * Copyright (C) 2017 AT&T Intellectual Property\r
- * ================================================================================\r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- * \r
- *      http://www.apache.org/licenses/LICENSE-2.0\r
- * \r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- * ================================================================================\r
- */\r
-package org.openecomp.portalapp.portal.ecomp.model;\r
-\r
-import javax.persistence.Entity;\r
-import javax.persistence.Id;\r
-\r
-import org.openecomp.portalsdk.core.domain.support.DomainVo;\r
-import com.fasterxml.jackson.annotation.JsonInclude;\r
-\r
-/**\r
- * An easily serializable version of row information from the fn_app_contact_us\r
- * table; specifically this has an app ID instead of an EPApp object.\r
- */\r
-@Entity\r
-@JsonInclude(JsonInclude.Include.NON_NULL)\r
-public class AppContactUsItem extends DomainVo {\r
-\r
-       private static final long serialVersionUID = 6964210807573346262L;\r
-\r
-       @Id\r
-       private Long appId;\r
-       private String appName;\r
-       private String description;\r
-       private String contactName;\r
-       private String contactEmail;\r
-       private String url;\r
-       private String activeYN;\r
-\r
-       public Long getAppId() {\r
-               return appId;\r
-       }\r
-\r
-       public void setAppId(Long appId) {\r
-               this.appId = appId;\r
-       }\r
-\r
-       public String getAppName() {\r
-               return appName;\r
-       }\r
-\r
-       public void setAppName(String appName) {\r
-               this.appName = appName;\r
-       }\r
-\r
-       public String getDescription() {\r
-               return description;\r
-       }\r
-\r
-       public void setDescription(String description) {\r
-               this.description = description;\r
-       }\r
-\r
-       public String getContactName() {\r
-               return contactName;\r
-       }\r
-\r
-       public void setContactName(String contactName) {\r
-               this.contactName = contactName;\r
-       }\r
-\r
-       public String getContactEmail() {\r
-               return contactEmail;\r
-       }\r
-\r
-       public void setContactEmail(String contactEmail) {\r
-               this.contactEmail = contactEmail;\r
-       }\r
-\r
-       public String getUrl() {\r
-               return url;\r
-       }\r
-\r
-       public void setUrl(String url) {\r
-               this.url = url;\r
-       }\r
-\r
-       public String getActiveYN() {\r
-               return activeYN;\r
-       }\r
-\r
-       public void setActiveYN(String activeYN) {\r
-               this.activeYN = activeYN;\r
-       }\r
-\r
-       @Override\r
-       public int hashCode() {\r
-               final int prime = 31;\r
-               int result = 1;\r
-               result = prime * result + ((activeYN == null) ? 0 : activeYN.hashCode());\r
-               result = prime * result + ((appId == null) ? 0 : appId.hashCode());\r
-               result = prime * result + ((appName == null) ? 0 : appName.hashCode());\r
-               result = prime * result + ((contactEmail == null) ? 0 : contactEmail.hashCode());\r
-               result = prime * result + ((contactName == null) ? 0 : contactName.hashCode());\r
-               result = prime * result + ((description == null) ? 0 : description.hashCode());\r
-               result = prime * result + ((url == null) ? 0 : url.hashCode());\r
-               return result;\r
-       }\r
-\r
-       @Override\r
-       public boolean equals(Object obj) {\r
-               if (this == obj)\r
-                       return true;\r
-               if (obj == null)\r
-                       return false;\r
-               if (getClass() != obj.getClass())\r
-                       return false;\r
-               AppContactUsItem other = (AppContactUsItem) obj;\r
-               if (activeYN == null) {\r
-                       if (other.activeYN != null)\r
-                               return false;\r
-               } else if (!activeYN.equals(other.activeYN))\r
-                       return false;\r
-               if (appId == null) {\r
-                       if (other.appId != null)\r
-                               return false;\r
-               } else if (!appId.equals(other.appId))\r
-                       return false;\r
-               if (appName == null) {\r
-                       if (other.appName != null)\r
-                               return false;\r
-               } else if (!appName.equals(other.appName))\r
-                       return false;\r
-               if (contactEmail == null) {\r
-                       if (other.contactEmail != null)\r
-                               return false;\r
-               } else if (!contactEmail.equals(other.contactEmail))\r
-                       return false;\r
-               if (contactName == null) {\r
-                       if (other.contactName != null)\r
-                               return false;\r
-               } else if (!contactName.equals(other.contactName))\r
-                       return false;\r
-               if (description == null) {\r
-                       if (other.description != null)\r
-                               return false;\r
-               } else if (!description.equals(other.description))\r
-                       return false;\r
-               if (url == null) {\r
-                       if (other.url != null)\r
-                               return false;\r
-               } else if (!url.equals(other.url))\r
-                       return false;\r
-               return true;\r
-       }\r
-\r
-       @Override\r
-       public String toString() {\r
-               return "AppContactUsItem [appId=" + appId + ", appName=" + appName + ", description=" + description\r
-                               + ", contactName=" + contactName + ", contactEmail=" + contactEmail + ", url=" + url + ", activeYN="\r
-                               + activeYN + "]";\r
-       }\r
-\r
-}\r
+/*-
+ * ================================================================================
+ * ECOMP Portal
+ * ================================================================================
+ * Copyright (C) 2017 AT&T Intellectual Property
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ================================================================================
+ */
+package org.openecomp.portalapp.portal.ecomp.model;
+
+import javax.persistence.Entity;
+import javax.persistence.Id;
+
+import org.openecomp.portalsdk.core.domain.support.DomainVo;
+import com.fasterxml.jackson.annotation.JsonInclude;
+
+/**
+ * An easily serializable version of row information from the fn_app_contact_us
+ * table; specifically this has an app ID instead of an EPApp object.
+ */
+@Entity
+@JsonInclude(JsonInclude.Include.NON_NULL)
+public class AppContactUsItem extends DomainVo {
+
+       private static final long serialVersionUID = 6964210807573346262L;
+
+       @Id
+       private Long appId;
+       private String appName;
+       private String description;
+       private String contactName;
+       private String contactEmail;
+       private String url;
+       private String activeYN;
+
+       public Long getAppId() {
+               return appId;
+       }
+
+       public void setAppId(Long appId) {
+               this.appId = appId;
+       }
+
+       public String getAppName() {
+               return appName;
+       }
+
+       public void setAppName(String appName) {
+               this.appName = appName;
+       }
+
+       public String getDescription() {
+               return description;
+       }
+
+       public void setDescription(String description) {
+               this.description = description;
+       }
+
+       public String getContactName() {
+               return contactName;
+       }
+
+       public void setContactName(String contactName) {
+               this.contactName = contactName;
+       }
+
+       public String getContactEmail() {
+               return contactEmail;
+       }
+
+       public void setContactEmail(String contactEmail) {
+               this.contactEmail = contactEmail;
+       }
+
+       public String getUrl() {
+               return url;
+       }
+
+       public void setUrl(String url) {
+               this.url = url;
+       }
+
+       public String getActiveYN() {
+               return activeYN;
+       }
+
+       public void setActiveYN(String activeYN) {
+               this.activeYN = activeYN;
+       }
+
+       @Override
+       public int hashCode() {
+               final int prime = 31;
+               int result = 1;
+               result = prime * result + ((activeYN == null) ? 0 : activeYN.hashCode());
+               result = prime * result + ((appId == null) ? 0 : appId.hashCode());
+               result = prime * result + ((appName == null) ? 0 : appName.hashCode());
+               result = prime * result + ((contactEmail == null) ? 0 : contactEmail.hashCode());
+               result = prime * result + ((contactName == null) ? 0 : contactName.hashCode());
+               result = prime * result + ((description == null) ? 0 : description.hashCode());
+               result = prime * result + ((url == null) ? 0 : url.hashCode());
+               return result;
+       }
+
+       @Override
+       public boolean equals(Object obj) {
+               if (this == obj)
+                       return true;
+               if (obj == null)
+                       return false;
+               if (getClass() != obj.getClass())
+                       return false;
+               AppContactUsItem other = (AppContactUsItem) obj;
+               if (activeYN == null) {
+                       if (other.activeYN != null)
+                               return false;
+               } else if (!activeYN.equals(other.activeYN))
+                       return false;
+               if (appId == null) {
+                       if (other.appId != null)
+                               return false;
+               } else if (!appId.equals(other.appId))
+                       return false;
+               if (appName == null) {
+                       if (other.appName != null)
+                               return false;
+               } else if (!appName.equals(other.appName))
+                       return false;
+               if (contactEmail == null) {
+                       if (other.contactEmail != null)
+                               return false;
+               } else if (!contactEmail.equals(other.contactEmail))
+                       return false;
+               if (contactName == null) {
+                       if (other.contactName != null)
+                               return false;
+               } else if (!contactName.equals(other.contactName))
+                       return false;
+               if (description == null) {
+                       if (other.description != null)
+                               return false;
+               } else if (!description.equals(other.description))
+                       return false;
+               if (url == null) {
+                       if (other.url != null)
+                               return false;
+               } else if (!url.equals(other.url))
+                       return false;
+               return true;
+       }
+
+       @Override
+       public String toString() {
+               return "AppContactUsItem [appId=" + appId + ", appName=" + appName + ", description=" + description
+                               + ", contactName=" + contactName + ", contactEmail=" + contactEmail + ", url=" + url + ", activeYN="
+                               + activeYN + "]";
+       }
+
+}