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.transport;
23 * Model for the object PUT to the controller when the user takes an action on
24 * an application in the catalog.
26 public class AppCatalogPersonalization {
29 public Boolean select;
30 public Boolean pending;
32 public Long getAppId() {
36 public void setAppId(Long appId) {
40 public Boolean getSelect() {
44 public void setSelect(Boolean select) {
48 public Boolean getPending() {
52 public void setPending(Boolean pending) {
53 this.pending = pending;
57 public int hashCode() {
60 result = prime * result + ((appId == null) ? 0 : appId.hashCode());
61 result = prime * result + ((pending == null) ? 0 : pending.hashCode());
62 result = prime * result + ((select == null) ? 0 : select.hashCode());
67 public boolean equals(Object obj) {
72 if (getClass() != obj.getClass())
74 AppCatalogPersonalization other = (AppCatalogPersonalization) obj;
76 if (other.appId != null)
78 } else if (!appId.equals(other.appId))
80 if (pending == null) {
81 if (other.pending != null)
83 } else if (!pending.equals(other.pending))
86 if (other.select != null)
88 } else if (!select.equals(other.select))