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.transport;
40 import java.io.Serializable;
41 import java.util.Date;
43 public class CentralApp implements Serializable{
47 private static final long serialVersionUID = -3325965646585871632L;
50 private Date modified;
51 private Long createdId;
52 private Long modifiedId;
54 private String name; // app_name
55 private String imageUrl; // app_image_url
56 private String description; // app_description
57 private String notes; // app_notes
58 private String url; // app_url
59 private String alternateUrl; // app_alternate_url
60 private String restEndpoint; // app_rest_endpoint
61 private String mlAppName; // ml_app_name
62 private String mlAppAdminId; // ml_app_admin_id;
63 private String motsId; // mots_id
64 private String appPassword; // app_password
66 private String enabled;
67 private byte[] thumbnail;
68 private String username; // app_username
69 private String uebKey; // ueb_key
70 private String uebSecret; // ueb_secret
71 private String uebTopicName; // ueb_topic_name
77 public CentralApp(Long id, Date created, Date modified, Long createdId, Long modifiedId, Long rowNum, String name,
78 String imageUrl, String description, String notes, String url, String alternateUrl, String restEndpoint,
79 String mlAppName, String mlAppAdminId, String motsId, String appPassword, String open, String enabled,
80 byte[] thumbnail, String username, String uebKey, String uebSecret, String uebTopicName) {
83 this.created = created;
84 this.modified = modified;
85 this.createdId = createdId;
86 this.modifiedId = modifiedId;
89 this.imageUrl = imageUrl;
90 this.description = description;
93 this.alternateUrl = alternateUrl;
94 this.restEndpoint = restEndpoint;
95 this.mlAppName = mlAppName;
96 this.mlAppAdminId = mlAppAdminId;
98 this.appPassword = appPassword;
100 this.enabled = enabled;
101 this.thumbnail = thumbnail;
102 this.username = username;
103 this.uebKey = uebKey;
104 this.uebSecret = uebSecret;
105 this.uebTopicName = uebTopicName;
108 public Long getId() {
111 public void setId(Long id) {
115 public Date getCreated() {
118 public void setCreated(Date created) {
119 this.created = created;
121 public Date getModified() {
124 public void setModified(Date modified) {
125 this.modified = modified;
127 public Long getCreatedId() {
130 public void setCreatedId(Long createdId) {
131 this.createdId = createdId;
133 public Long getModifiedId() {
136 public void setModifiedId(Long modifiedId) {
137 this.modifiedId = modifiedId;
139 public Long getRowNum() {
142 public void setRowNum(Long rowNum) {
143 this.rowNum = rowNum;
145 public String getName() {
148 public void setName(String name) {
151 public String getImageUrl() {
154 public void setImageUrl(String imageUrl) {
155 this.imageUrl = imageUrl;
157 public String getDescription() {
160 public void setDescription(String description) {
161 this.description = description;
163 public String getNotes() {
166 public void setNotes(String notes) {
169 public String getUrl() {
172 public void setUrl(String url) {
175 public String getAlternateUrl() {
178 public void setAlternateUrl(String alternateUrl) {
179 this.alternateUrl = alternateUrl;
181 public String getRestEndpoint() {
184 public void setRestEndpoint(String restEndpoint) {
185 this.restEndpoint = restEndpoint;
187 public String getMlAppName() {
190 public void setMlAppName(String mlAppName) {
191 this.mlAppName = mlAppName;
193 public String getMlAppAdminId() {
196 public void setMlAppAdminId(String mlAppAdminId) {
197 this.mlAppAdminId = mlAppAdminId;
199 public String getMotsId() {
202 public void setMotsId(String motsId) {
203 this.motsId = motsId;
205 public String getAppPassword() {
208 public void setAppPassword(String appPassword) {
209 this.appPassword = appPassword;
211 public String getOpen() {
214 public void setOpen(String open) {
217 public String getEnabled() {
220 public void setEnabled(String enabled) {
221 this.enabled = enabled;
223 public byte[] getThumbnail() {
226 public void setThumbnail(byte[] thumbnail) {
227 this.thumbnail = thumbnail;
229 public String getUsername() {
232 public void setUsername(String username) {
233 this.username = username;
235 public String getUebKey() {
238 public void setUebKey(String uebKey) {
239 this.uebKey = uebKey;
241 public String getUebSecret() {
244 public void setUebSecret(String uebSecret) {
245 this.uebSecret = uebSecret;
247 public String getUebTopicName() {
250 public void setUebTopicName(String uebTopicName) {
251 this.uebTopicName = uebTopicName;
255 public int hashCode() {
256 final int prime = 31;
258 result = prime * result + ((alternateUrl == null) ? 0 : alternateUrl.hashCode());
259 result = prime * result + ((appPassword == null) ? 0 : appPassword.hashCode());
260 result = prime * result + ((createdId == null) ? 0 : createdId.hashCode());
261 result = prime * result + ((description == null) ? 0 : description.hashCode());
262 result = prime * result + ((enabled == null) ? 0 : enabled.hashCode());
263 result = prime * result + ((id == null) ? 0 : id.hashCode());
264 result = prime * result + ((imageUrl == null) ? 0 : imageUrl.hashCode());
265 result = prime * result + ((mlAppAdminId == null) ? 0 : mlAppAdminId.hashCode());
266 result = prime * result + ((mlAppName == null) ? 0 : mlAppName.hashCode());
267 result = prime * result + ((modifiedId == null) ? 0 : modifiedId.hashCode());
268 result = prime * result + ((motsId == null) ? 0 : motsId.hashCode());
269 result = prime * result + ((name == null) ? 0 : name.hashCode());
270 result = prime * result + ((notes == null) ? 0 : notes.hashCode());
271 result = prime * result + ((open == null) ? 0 : open.hashCode());
272 result = prime * result + ((restEndpoint == null) ? 0 : restEndpoint.hashCode());
273 result = prime * result + ((rowNum == null) ? 0 : rowNum.hashCode());
274 result = prime * result + ((uebKey == null) ? 0 : uebKey.hashCode());
275 result = prime * result + ((uebSecret == null) ? 0 : uebSecret.hashCode());
276 result = prime * result + ((uebTopicName == null) ? 0 : uebTopicName.hashCode());
277 result = prime * result + ((url == null) ? 0 : url.hashCode());
278 result = prime * result + ((username == null) ? 0 : username.hashCode());
283 public boolean equals(Object obj) {
288 if (getClass() != obj.getClass())
290 CentralApp other = (CentralApp) obj;
291 if (alternateUrl == null) {
292 if (other.alternateUrl != null)
294 } else if (!alternateUrl.equals(other.alternateUrl))
296 if (appPassword == null) {
297 if (other.appPassword != null)
299 } else if (!appPassword.equals(other.appPassword))
301 if (createdId == null) {
302 if (other.createdId != null)
304 } else if (!createdId.equals(other.createdId))
306 if (description == null) {
307 if (other.description != null)
309 } else if (!description.equals(other.description))
311 if (enabled == null) {
312 if (other.enabled != null)
314 } else if (!enabled.equals(other.enabled))
317 if (other.id != null)
319 } else if (!id.equals(other.id))
321 if (imageUrl == null) {
322 if (other.imageUrl != null)
324 } else if (!imageUrl.equals(other.imageUrl))
326 if (mlAppAdminId == null) {
327 if (other.mlAppAdminId != null)
329 } else if (!mlAppAdminId.equals(other.mlAppAdminId))
331 if (mlAppName == null) {
332 if (other.mlAppName != null)
334 } else if (!mlAppName.equals(other.mlAppName))
336 if (modifiedId == null) {
337 if (other.modifiedId != null)
339 } else if (!modifiedId.equals(other.modifiedId))
341 if (motsId == null) {
342 if (other.motsId != null)
344 } else if (!motsId.equals(other.motsId))
347 if (other.name != null)
349 } else if (!name.equals(other.name))
352 if (other.notes != null)
354 } else if (!notes.equals(other.notes))
357 if (other.open != null)
359 } else if (!open.equals(other.open))
361 if (restEndpoint == null) {
362 if (other.restEndpoint != null)
364 } else if (!restEndpoint.equals(other.restEndpoint))
366 if (rowNum == null) {
367 if (other.rowNum != null)
369 } else if (!rowNum.equals(other.rowNum))
371 if (uebKey == null) {
372 if (other.uebKey != null)
374 } else if (!uebKey.equals(other.uebKey))
376 if (uebSecret == null) {
377 if (other.uebSecret != null)
379 } else if (!uebSecret.equals(other.uebSecret))
381 if (uebTopicName == null) {
382 if (other.uebTopicName != null)
384 } else if (!uebTopicName.equals(other.uebTopicName))
387 if (other.url != null)
389 } else if (!url.equals(other.url))
391 if (username == null) {
392 if (other.username != null)
394 } else if (!username.equals(other.username))