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 * Carries row information for the functional table on the Contact Us page.
32 @JsonInclude(JsonInclude.Include.NON_NULL)
33 public class AppCategoryFunctionsItem extends DomainVo {
35 private static final long serialVersionUID = -1573834082471206458L;
40 private String application;
41 private String category;
42 private String functions;
44 public String getRowId() {
48 public void setRowId(String rowId) {
52 public String getAppId() {
56 public void setAppId(String appId) {
60 public String getApplication() {
64 public void setApplication(String appName) {
65 this.application = appName;
68 public String getCategory() {
72 public void setCategory(String category) {
73 this.category = category;
76 public String getFunctions() {
80 public void setFunctions(String functions) {
81 this.functions = functions;
85 public String toString() {
86 return "AppCategoryFunctionsItem [rowId=" + rowId + ", appId=" + appId + ", application=" + application
87 + ", category=" + category + ", functions=" + functions + "]";
91 public int hashCode() {
94 result = prime * result + ((appId == null) ? 0 : appId.hashCode());
95 result = prime * result + ((application == null) ? 0 : application.hashCode());
96 result = prime * result + ((category == null) ? 0 : category.hashCode());
97 result = prime * result + ((functions == null) ? 0 : functions.hashCode());
98 result = prime * result + ((rowId == null) ? 0 : rowId.hashCode());
103 public boolean equals(Object obj) {
108 if (getClass() != obj.getClass())
110 AppCategoryFunctionsItem other = (AppCategoryFunctionsItem) obj;
112 if (other.appId != null)
114 } else if (!appId.equals(other.appId))
116 if (application == null) {
117 if (other.application != null)
119 } else if (!application.equals(other.application))
121 if (category == null) {
122 if (other.category != null)
124 } else if (!category.equals(other.category))
126 if (functions == null) {
127 if (other.functions != null)
129 } else if (!functions.equals(other.functions))
132 if (other.rowId != null)
134 } else if (!rowId.equals(other.rowId))