1 package org.openecomp.portalapp.portal.transport;
3 import java.util.Arrays;
6 public class CentralApp {
10 public Long createdId;
11 public Long modifiedId;
13 public String name; // app_name
14 public String imageUrl; // app_image_url
15 public String description; // app_description
16 public String notes; // app_notes
17 public String url; // app_url
18 public String alternateUrl; // app_alternate_url
19 public String restEndpoint; // app_rest_endpoint
20 public String mlAppName; // ml_app_name
21 public String mlAppAdminId; // ml_app_admin_id;
22 public String motsId; // mots_id
23 public String appPassword; // app_password
25 public String enabled;
26 public byte[] thumbnail;
27 public String username; // app_username
28 public String uebKey; // ueb_key
29 public String uebSecret; // ueb_secret
30 public String uebTopicName; // ueb_topic_name
33 public CentralApp(Long id, Date created, Date modified, Long createdId, Long modifiedId, Long rowNum, String name,
34 String imageUrl, String description, String notes, String url, String alternateUrl, String restEndpoint,
35 String mlAppName, String mlAppAdminId, String motsId, String appPassword, String open, String enabled,
36 byte[] thumbnail, String username, String uebKey, String uebSecret, String uebTopicName) {
39 this.created = created;
40 this.modified = modified;
41 this.createdId = createdId;
42 this.modifiedId = modifiedId;
45 this.imageUrl = imageUrl;
46 this.description = description;
49 this.alternateUrl = alternateUrl;
50 this.restEndpoint = restEndpoint;
51 this.mlAppName = mlAppName;
52 this.mlAppAdminId = mlAppAdminId;
54 this.appPassword = appPassword;
56 this.enabled = enabled;
57 this.thumbnail = thumbnail;
58 this.username = username;
60 this.uebSecret = uebSecret;
61 this.uebTopicName = uebTopicName;
67 public void setId(Long id) {
71 public Date getCreated() {
74 public void setCreated(Date created) {
75 this.created = created;
77 public Date getModified() {
80 public void setModified(Date modified) {
81 this.modified = modified;
83 public Long getCreatedId() {
86 public void setCreatedId(Long createdId) {
87 this.createdId = createdId;
89 public Long getModifiedId() {
92 public void setModifiedId(Long modifiedId) {
93 this.modifiedId = modifiedId;
95 public Long getRowNum() {
98 public void setRowNum(Long rowNum) {
101 public String getName() {
104 public void setName(String name) {
107 public String getImageUrl() {
110 public void setImageUrl(String imageUrl) {
111 this.imageUrl = imageUrl;
113 public String getDescription() {
116 public void setDescription(String description) {
117 this.description = description;
119 public String getNotes() {
122 public void setNotes(String notes) {
125 public String getUrl() {
128 public void setUrl(String url) {
131 public String getAlternateUrl() {
134 public void setAlternateUrl(String alternateUrl) {
135 this.alternateUrl = alternateUrl;
137 public String getRestEndpoint() {
140 public void setRestEndpoint(String restEndpoint) {
141 this.restEndpoint = restEndpoint;
143 public String getMlAppName() {
146 public void setMlAppName(String mlAppName) {
147 this.mlAppName = mlAppName;
149 public String getMlAppAdminId() {
152 public void setMlAppAdminId(String mlAppAdminId) {
153 this.mlAppAdminId = mlAppAdminId;
155 public String getMotsId() {
158 public void setMotsId(String motsId) {
159 this.motsId = motsId;
161 public String getAppPassword() {
164 public void setAppPassword(String appPassword) {
165 this.appPassword = appPassword;
167 public String getOpen() {
170 public void setOpen(String open) {
173 public String getEnabled() {
176 public void setEnabled(String enabled) {
177 this.enabled = enabled;
179 public byte[] getThumbnail() {
182 public void setThumbnail(byte[] thumbnail) {
183 this.thumbnail = thumbnail;
185 public String getUsername() {
188 public void setUsername(String username) {
189 this.username = username;
191 public String getUebKey() {
194 public void setUebKey(String uebKey) {
195 this.uebKey = uebKey;
197 public String getUebSecret() {
200 public void setUebSecret(String uebSecret) {
201 this.uebSecret = uebSecret;
203 public String getUebTopicName() {
206 public void setUebTopicName(String uebTopicName) {
207 this.uebTopicName = uebTopicName;
211 public int hashCode() {
212 final int prime = 31;
214 result = prime * result + ((alternateUrl == null) ? 0 : alternateUrl.hashCode());
215 result = prime * result + ((appPassword == null) ? 0 : appPassword.hashCode());
216 result = prime * result + ((created == null) ? 0 : created.hashCode());
217 result = prime * result + ((createdId == null) ? 0 : createdId.hashCode());
218 result = prime * result + ((description == null) ? 0 : description.hashCode());
219 result = prime * result + ((enabled == null) ? 0 : enabled.hashCode());
220 result = prime * result + ((id == null) ? 0 : id.hashCode());
221 result = prime * result + ((imageUrl == null) ? 0 : imageUrl.hashCode());
222 result = prime * result + ((mlAppAdminId == null) ? 0 : mlAppAdminId.hashCode());
223 result = prime * result + ((mlAppName == null) ? 0 : mlAppName.hashCode());
224 result = prime * result + ((modified == null) ? 0 : modified.hashCode());
225 result = prime * result + ((modifiedId == null) ? 0 : modifiedId.hashCode());
226 result = prime * result + ((motsId == null) ? 0 : motsId.hashCode());
227 result = prime * result + ((name == null) ? 0 : name.hashCode());
228 result = prime * result + ((notes == null) ? 0 : notes.hashCode());
229 result = prime * result + ((open == null) ? 0 : open.hashCode());
230 result = prime * result + ((restEndpoint == null) ? 0 : restEndpoint.hashCode());
231 result = prime * result + ((rowNum == null) ? 0 : rowNum.hashCode());
232 result = prime * result + Arrays.hashCode(thumbnail);
233 result = prime * result + ((uebKey == null) ? 0 : uebKey.hashCode());
234 result = prime * result + ((uebSecret == null) ? 0 : uebSecret.hashCode());
235 result = prime * result + ((uebTopicName == null) ? 0 : uebTopicName.hashCode());
236 result = prime * result + ((url == null) ? 0 : url.hashCode());
237 result = prime * result + ((username == null) ? 0 : username.hashCode());
242 public boolean equals(Object obj) {
247 if (getClass() != obj.getClass())
249 CentralApp other = (CentralApp) obj;
250 if (alternateUrl == null) {
251 if (other.alternateUrl != null)
253 } else if (!alternateUrl.equals(other.alternateUrl))
255 if (appPassword == null) {
256 if (other.appPassword != null)
258 } else if (!appPassword.equals(other.appPassword))
260 if (created == null) {
261 if (other.created != null)
263 } else if (!created.equals(other.created))
265 if (createdId == null) {
266 if (other.createdId != null)
268 } else if (!createdId.equals(other.createdId))
270 if (description == null) {
271 if (other.description != null)
273 } else if (!description.equals(other.description))
275 if (enabled == null) {
276 if (other.enabled != null)
278 } else if (!enabled.equals(other.enabled))
281 if (other.id != null)
283 } else if (!id.equals(other.id))
285 if (imageUrl == null) {
286 if (other.imageUrl != null)
288 } else if (!imageUrl.equals(other.imageUrl))
290 if (mlAppAdminId == null) {
291 if (other.mlAppAdminId != null)
293 } else if (!mlAppAdminId.equals(other.mlAppAdminId))
295 if (mlAppName == null) {
296 if (other.mlAppName != null)
298 } else if (!mlAppName.equals(other.mlAppName))
300 if (modified == null) {
301 if (other.modified != null)
303 } else if (!modified.equals(other.modified))
305 if (modifiedId == null) {
306 if (other.modifiedId != null)
308 } else if (!modifiedId.equals(other.modifiedId))
310 if (motsId == null) {
311 if (other.motsId != null)
313 } else if (!motsId.equals(other.motsId))
316 if (other.name != null)
318 } else if (!name.equals(other.name))
321 if (other.notes != null)
323 } else if (!notes.equals(other.notes))
326 if (other.open != null)
328 } else if (!open.equals(other.open))
330 if (restEndpoint == null) {
331 if (other.restEndpoint != null)
333 } else if (!restEndpoint.equals(other.restEndpoint))
335 if (rowNum == null) {
336 if (other.rowNum != null)
338 } else if (!rowNum.equals(other.rowNum))
340 if (!Arrays.equals(thumbnail, other.thumbnail))
342 if (uebKey == null) {
343 if (other.uebKey != null)
345 } else if (!uebKey.equals(other.uebKey))
347 if (uebSecret == null) {
348 if (other.uebSecret != null)
350 } else if (!uebSecret.equals(other.uebSecret))
352 if (uebTopicName == null) {
353 if (other.uebTopicName != null)
355 } else if (!uebTopicName.equals(other.uebTopicName))
358 if (other.url != null)
360 } else if (!url.equals(other.url))
362 if (username == null) {
363 if (other.username != null)
365 } else if (!username.equals(other.username))