2 * ============LICENSE_START==========================================
4 * ===================================================================
5 * Copyright (C) 2017 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 * Carries row information for the functional table on the Contact Us page.
50 @JsonInclude(JsonInclude.Include.NON_NULL)
51 public class AppCategoryFunctionsItem extends DomainVo {
53 private static final long serialVersionUID = -1573834082471206458L;
58 private String application;
59 private String category;
60 private String functions;
62 public String getRowId() {
66 public void setRowId(String rowId) {
70 public String getAppId() {
74 public void setAppId(String appId) {
78 public String getApplication() {
82 public void setApplication(String appName) {
83 this.application = appName;
86 public String getCategory() {
90 public void setCategory(String category) {
91 this.category = category;
94 public String getFunctions() {
98 public void setFunctions(String functions) {
99 this.functions = functions;
103 public String toString() {
104 return "AppCategoryFunctionsItem [rowId=" + rowId + ", appId=" + appId + ", application=" + application
105 + ", category=" + category + ", functions=" + functions + "]";
109 public int hashCode() {
110 final int prime = 31;
112 result = prime * result + ((appId == null) ? 0 : appId.hashCode());
113 result = prime * result + ((application == null) ? 0 : application.hashCode());
114 result = prime * result + ((category == null) ? 0 : category.hashCode());
115 result = prime * result + ((functions == null) ? 0 : functions.hashCode());
116 result = prime * result + ((rowId == null) ? 0 : rowId.hashCode());
121 public boolean equals(Object obj) {
126 if (getClass() != obj.getClass())
128 AppCategoryFunctionsItem other = (AppCategoryFunctionsItem) obj;
130 if (other.appId != null)
132 } else if (!appId.equals(other.appId))
134 if (application == null) {
135 if (other.application != null)
137 } else if (!application.equals(other.application))
139 if (category == null) {
140 if (other.category != null)
142 } else if (!category.equals(other.category))
144 if (functions == null) {
145 if (other.functions != null)
147 } else if (!functions.equals(other.functions))
150 if (other.rowId != null)
152 } else if (!rowId.equals(other.rowId))