2 * ============LICENSE_START==========================================
4 * ===================================================================
5 * Copyright © 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============================================
36 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
38 package org.openecomp.portalapp.portal.transport;
40 import java.util.Arrays;
41 import java.util.Date;
43 public class CentralApp {
47 public Long createdId;
48 public Long modifiedId;
50 public String name; // app_name
51 public String imageUrl; // app_image_url
52 public String description; // app_description
53 public String notes; // app_notes
54 public String url; // app_url
55 public String alternateUrl; // app_alternate_url
56 public String restEndpoint; // app_rest_endpoint
57 public String mlAppName; // ml_app_name
58 public String mlAppAdminId; // ml_app_admin_id;
59 public String motsId; // mots_id
60 public String appPassword; // app_password
62 public String enabled;
63 public byte[] thumbnail;
64 public String username; // app_username
65 public String uebKey; // ueb_key
66 public String uebSecret; // ueb_secret
67 public String uebTopicName; // ueb_topic_name
69 public CentralApp(Long id, Date created, Date modified, Long createdId, Long modifiedId, Long rowNum, String name,
70 String imageUrl, String description, String notes, String url, String alternateUrl, String restEndpoint,
71 String mlAppName, String mlAppAdminId, String motsId, String appPassword, String open, String enabled,
72 byte[] thumbnail, String username, String uebKey, String uebSecret, String uebTopicName) {
75 this.created = created;
76 this.modified = modified;
77 this.createdId = createdId;
78 this.modifiedId = modifiedId;
81 this.imageUrl = imageUrl;
82 this.description = description;
85 this.alternateUrl = alternateUrl;
86 this.restEndpoint = restEndpoint;
87 this.mlAppName = mlAppName;
88 this.mlAppAdminId = mlAppAdminId;
90 this.appPassword = appPassword;
92 this.enabled = enabled;
93 this.thumbnail = thumbnail;
94 this.username = username;
96 this.uebSecret = uebSecret;
97 this.uebTopicName = uebTopicName;
100 public Long getId() {
104 public void setId(Long id) {
108 public Date getCreated() {
112 public void setCreated(Date created) {
113 this.created = created;
116 public Date getModified() {
120 public void setModified(Date modified) {
121 this.modified = modified;
124 public Long getCreatedId() {
128 public void setCreatedId(Long createdId) {
129 this.createdId = createdId;
132 public Long getModifiedId() {
136 public void setModifiedId(Long modifiedId) {
137 this.modifiedId = modifiedId;
140 public Long getRowNum() {
144 public void setRowNum(Long rowNum) {
145 this.rowNum = rowNum;
148 public String getName() {
152 public void setName(String name) {
156 public String getImageUrl() {
160 public void setImageUrl(String imageUrl) {
161 this.imageUrl = imageUrl;
164 public String getDescription() {
168 public void setDescription(String description) {
169 this.description = description;
172 public String getNotes() {
176 public void setNotes(String notes) {
180 public String getUrl() {
184 public void setUrl(String url) {
188 public String getAlternateUrl() {
192 public void setAlternateUrl(String alternateUrl) {
193 this.alternateUrl = alternateUrl;
196 public String getRestEndpoint() {
200 public void setRestEndpoint(String restEndpoint) {
201 this.restEndpoint = restEndpoint;
204 public String getMlAppName() {
208 public void setMlAppName(String mlAppName) {
209 this.mlAppName = mlAppName;
212 public String getMlAppAdminId() {
216 public void setMlAppAdminId(String mlAppAdminId) {
217 this.mlAppAdminId = mlAppAdminId;
220 public String getMotsId() {
224 public void setMotsId(String motsId) {
225 this.motsId = motsId;
228 public String getAppPassword() {
232 public void setAppPassword(String appPassword) {
233 this.appPassword = appPassword;
236 public String getOpen() {
240 public void setOpen(String open) {
244 public String getEnabled() {
248 public void setEnabled(String enabled) {
249 this.enabled = enabled;
252 public byte[] getThumbnail() {
256 public void setThumbnail(byte[] thumbnail) {
257 this.thumbnail = thumbnail;
260 public String getUsername() {
264 public void setUsername(String username) {
265 this.username = username;
268 public String getUebKey() {
272 public void setUebKey(String uebKey) {
273 this.uebKey = uebKey;
276 public String getUebSecret() {
280 public void setUebSecret(String uebSecret) {
281 this.uebSecret = uebSecret;
284 public String getUebTopicName() {
288 public void setUebTopicName(String uebTopicName) {
289 this.uebTopicName = uebTopicName;
293 public int hashCode() {
294 final int prime = 31;
296 result = prime * result + ((alternateUrl == null) ? 0 : alternateUrl.hashCode());
297 result = prime * result + ((appPassword == null) ? 0 : appPassword.hashCode());
298 result = prime * result + ((created == null) ? 0 : created.hashCode());
299 result = prime * result + ((createdId == null) ? 0 : createdId.hashCode());
300 result = prime * result + ((description == null) ? 0 : description.hashCode());
301 result = prime * result + ((enabled == null) ? 0 : enabled.hashCode());
302 result = prime * result + ((id == null) ? 0 : id.hashCode());
303 result = prime * result + ((imageUrl == null) ? 0 : imageUrl.hashCode());
304 result = prime * result + ((mlAppAdminId == null) ? 0 : mlAppAdminId.hashCode());
305 result = prime * result + ((mlAppName == null) ? 0 : mlAppName.hashCode());
306 result = prime * result + ((modified == null) ? 0 : modified.hashCode());
307 result = prime * result + ((modifiedId == null) ? 0 : modifiedId.hashCode());
308 result = prime * result + ((motsId == null) ? 0 : motsId.hashCode());
309 result = prime * result + ((name == null) ? 0 : name.hashCode());
310 result = prime * result + ((notes == null) ? 0 : notes.hashCode());
311 result = prime * result + ((open == null) ? 0 : open.hashCode());
312 result = prime * result + ((restEndpoint == null) ? 0 : restEndpoint.hashCode());
313 result = prime * result + ((rowNum == null) ? 0 : rowNum.hashCode());
314 result = prime * result + Arrays.hashCode(thumbnail);
315 result = prime * result + ((uebKey == null) ? 0 : uebKey.hashCode());
316 result = prime * result + ((uebSecret == null) ? 0 : uebSecret.hashCode());
317 result = prime * result + ((uebTopicName == null) ? 0 : uebTopicName.hashCode());
318 result = prime * result + ((url == null) ? 0 : url.hashCode());
319 result = prime * result + ((username == null) ? 0 : username.hashCode());
324 public boolean equals(Object obj) {
329 if (getClass() != obj.getClass())
331 CentralApp other = (CentralApp) obj;
332 if (alternateUrl == null) {
333 if (other.alternateUrl != null)
335 } else if (!alternateUrl.equals(other.alternateUrl))
337 if (appPassword == null) {
338 if (other.appPassword != null)
340 } else if (!appPassword.equals(other.appPassword))
342 if (created == null) {
343 if (other.created != null)
345 } else if (!created.equals(other.created))
347 if (createdId == null) {
348 if (other.createdId != null)
350 } else if (!createdId.equals(other.createdId))
352 if (description == null) {
353 if (other.description != null)
355 } else if (!description.equals(other.description))
357 if (enabled == null) {
358 if (other.enabled != null)
360 } else if (!enabled.equals(other.enabled))
363 if (other.id != null)
365 } else if (!id.equals(other.id))
367 if (imageUrl == null) {
368 if (other.imageUrl != null)
370 } else if (!imageUrl.equals(other.imageUrl))
372 if (mlAppAdminId == null) {
373 if (other.mlAppAdminId != null)
375 } else if (!mlAppAdminId.equals(other.mlAppAdminId))
377 if (mlAppName == null) {
378 if (other.mlAppName != null)
380 } else if (!mlAppName.equals(other.mlAppName))
382 if (modified == null) {
383 if (other.modified != null)
385 } else if (!modified.equals(other.modified))
387 if (modifiedId == null) {
388 if (other.modifiedId != null)
390 } else if (!modifiedId.equals(other.modifiedId))
392 if (motsId == null) {
393 if (other.motsId != null)
395 } else if (!motsId.equals(other.motsId))
398 if (other.name != null)
400 } else if (!name.equals(other.name))
403 if (other.notes != null)
405 } else if (!notes.equals(other.notes))
408 if (other.open != null)
410 } else if (!open.equals(other.open))
412 if (restEndpoint == null) {
413 if (other.restEndpoint != null)
415 } else if (!restEndpoint.equals(other.restEndpoint))
417 if (rowNum == null) {
418 if (other.rowNum != null)
420 } else if (!rowNum.equals(other.rowNum))
422 if (!Arrays.equals(thumbnail, other.thumbnail))
424 if (uebKey == null) {
425 if (other.uebKey != null)
427 } else if (!uebKey.equals(other.uebKey))
429 if (uebSecret == null) {
430 if (other.uebSecret != null)
432 } else if (!uebSecret.equals(other.uebSecret))
434 if (uebTopicName == null) {
435 if (other.uebTopicName != null)
437 } else if (!uebTopicName.equals(other.uebTopicName))
440 if (other.url != null)
442 } else if (!url.equals(other.url))
444 if (username == null) {
445 if (other.username != null)
447 } else if (!username.equals(other.username))