5a03bf565bbbbcf4dbd60bb0e8bb5a9058d76d2e
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / transport / CentralApp.java
1 package org.openecomp.portalapp.portal.transport;
2
3 import java.util.Arrays;
4 import java.util.Date;
5
6 public class CentralApp {
7         public Long id;
8         public Date created;
9         public Date modified;
10         public Long createdId;
11         public Long modifiedId;
12         public Long rowNum;
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
24         public String open;
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
31         
32         
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) {
37                 super();
38                 this.id = id;
39                 this.created = created;
40                 this.modified = modified;
41                 this.createdId = createdId;
42                 this.modifiedId = modifiedId;
43                 this.rowNum = rowNum;
44                 this.name = name;
45                 this.imageUrl = imageUrl;
46                 this.description = description;
47                 this.notes = notes;
48                 this.url = url;
49                 this.alternateUrl = alternateUrl;
50                 this.restEndpoint = restEndpoint;
51                 this.mlAppName = mlAppName;
52                 this.mlAppAdminId = mlAppAdminId;
53                 this.motsId = motsId;
54                 this.appPassword = appPassword;
55                 this.open = open;
56                 this.enabled = enabled;
57                 this.thumbnail = thumbnail;
58                 this.username = username;
59                 this.uebKey = uebKey;
60                 this.uebSecret = uebSecret;
61                 this.uebTopicName = uebTopicName;
62         }
63         
64         public Long getId() {
65                 return id;
66         }
67         public void setId(Long id) {
68                 this.id = id;
69         }
70         
71         public Date getCreated() {
72                 return created;
73         }
74         public void setCreated(Date created) {
75                 this.created = created;
76         }
77         public Date getModified() {
78                 return modified;
79         }
80         public void setModified(Date modified) {
81                 this.modified = modified;
82         }
83         public Long getCreatedId() {
84                 return createdId;
85         }
86         public void setCreatedId(Long createdId) {
87                 this.createdId = createdId;
88         }
89         public Long getModifiedId() {
90                 return modifiedId;
91         }
92         public void setModifiedId(Long modifiedId) {
93                 this.modifiedId = modifiedId;
94         }
95         public Long getRowNum() {
96                 return rowNum;
97         }
98         public void setRowNum(Long rowNum) {
99                 this.rowNum = rowNum;
100         }
101         public String getName() {
102                 return name;
103         }
104         public void setName(String name) {
105                 this.name = name;
106         }
107         public String getImageUrl() {
108                 return imageUrl;
109         }
110         public void setImageUrl(String imageUrl) {
111                 this.imageUrl = imageUrl;
112         }
113         public String getDescription() {
114                 return description;
115         }
116         public void setDescription(String description) {
117                 this.description = description;
118         }
119         public String getNotes() {
120                 return notes;
121         }
122         public void setNotes(String notes) {
123                 this.notes = notes;
124         }
125         public String getUrl() {
126                 return url;
127         }
128         public void setUrl(String url) {
129                 this.url = url;
130         }
131         public String getAlternateUrl() {
132                 return alternateUrl;
133         }
134         public void setAlternateUrl(String alternateUrl) {
135                 this.alternateUrl = alternateUrl;
136         }
137         public String getRestEndpoint() {
138                 return restEndpoint;
139         }
140         public void setRestEndpoint(String restEndpoint) {
141                 this.restEndpoint = restEndpoint;
142         }
143         public String getMlAppName() {
144                 return mlAppName;
145         }
146         public void setMlAppName(String mlAppName) {
147                 this.mlAppName = mlAppName;
148         }
149         public String getMlAppAdminId() {
150                 return mlAppAdminId;
151         }
152         public void setMlAppAdminId(String mlAppAdminId) {
153                 this.mlAppAdminId = mlAppAdminId;
154         }
155         public String getMotsId() {
156                 return motsId;
157         }
158         public void setMotsId(String motsId) {
159                 this.motsId = motsId;
160         }
161         public String getAppPassword() {
162                 return appPassword;
163         }
164         public void setAppPassword(String appPassword) {
165                 this.appPassword = appPassword;
166         }
167         public String getOpen() {
168                 return open;
169         }
170         public void setOpen(String open) {
171                 this.open = open;
172         }
173         public String getEnabled() {
174                 return enabled;
175         }
176         public void setEnabled(String enabled) {
177                 this.enabled = enabled;
178         }
179         public byte[] getThumbnail() {
180                 return thumbnail;
181         }
182         public void setThumbnail(byte[] thumbnail) {
183                 this.thumbnail = thumbnail;
184         }
185         public String getUsername() {
186                 return username;
187         }
188         public void setUsername(String username) {
189                 this.username = username;
190         }
191         public String getUebKey() {
192                 return uebKey;
193         }
194         public void setUebKey(String uebKey) {
195                 this.uebKey = uebKey;
196         }
197         public String getUebSecret() {
198                 return uebSecret;
199         }
200         public void setUebSecret(String uebSecret) {
201                 this.uebSecret = uebSecret;
202         }
203         public String getUebTopicName() {
204                 return uebTopicName;
205         }
206         public void setUebTopicName(String uebTopicName) {
207                 this.uebTopicName = uebTopicName;
208         }
209
210         @Override
211         public int hashCode() {
212                 final int prime = 31;
213                 int result = 1;
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());
238                 return result;
239         }
240
241         @Override
242         public boolean equals(Object obj) {
243                 if (this == obj)
244                         return true;
245                 if (obj == null)
246                         return false;
247                 if (getClass() != obj.getClass())
248                         return false;
249                 CentralApp other = (CentralApp) obj;
250                 if (alternateUrl == null) {
251                         if (other.alternateUrl != null)
252                                 return false;
253                 } else if (!alternateUrl.equals(other.alternateUrl))
254                         return false;
255                 if (appPassword == null) {
256                         if (other.appPassword != null)
257                                 return false;
258                 } else if (!appPassword.equals(other.appPassword))
259                         return false;
260                 if (created == null) {
261                         if (other.created != null)
262                                 return false;
263                 } else if (!created.equals(other.created))
264                         return false;
265                 if (createdId == null) {
266                         if (other.createdId != null)
267                                 return false;
268                 } else if (!createdId.equals(other.createdId))
269                         return false;
270                 if (description == null) {
271                         if (other.description != null)
272                                 return false;
273                 } else if (!description.equals(other.description))
274                         return false;
275                 if (enabled == null) {
276                         if (other.enabled != null)
277                                 return false;
278                 } else if (!enabled.equals(other.enabled))
279                         return false;
280                 if (id == null) {
281                         if (other.id != null)
282                                 return false;
283                 } else if (!id.equals(other.id))
284                         return false;
285                 if (imageUrl == null) {
286                         if (other.imageUrl != null)
287                                 return false;
288                 } else if (!imageUrl.equals(other.imageUrl))
289                         return false;
290                 if (mlAppAdminId == null) {
291                         if (other.mlAppAdminId != null)
292                                 return false;
293                 } else if (!mlAppAdminId.equals(other.mlAppAdminId))
294                         return false;
295                 if (mlAppName == null) {
296                         if (other.mlAppName != null)
297                                 return false;
298                 } else if (!mlAppName.equals(other.mlAppName))
299                         return false;
300                 if (modified == null) {
301                         if (other.modified != null)
302                                 return false;
303                 } else if (!modified.equals(other.modified))
304                         return false;
305                 if (modifiedId == null) {
306                         if (other.modifiedId != null)
307                                 return false;
308                 } else if (!modifiedId.equals(other.modifiedId))
309                         return false;
310                 if (motsId == null) {
311                         if (other.motsId != null)
312                                 return false;
313                 } else if (!motsId.equals(other.motsId))
314                         return false;
315                 if (name == null) {
316                         if (other.name != null)
317                                 return false;
318                 } else if (!name.equals(other.name))
319                         return false;
320                 if (notes == null) {
321                         if (other.notes != null)
322                                 return false;
323                 } else if (!notes.equals(other.notes))
324                         return false;
325                 if (open == null) {
326                         if (other.open != null)
327                                 return false;
328                 } else if (!open.equals(other.open))
329                         return false;
330                 if (restEndpoint == null) {
331                         if (other.restEndpoint != null)
332                                 return false;
333                 } else if (!restEndpoint.equals(other.restEndpoint))
334                         return false;
335                 if (rowNum == null) {
336                         if (other.rowNum != null)
337                                 return false;
338                 } else if (!rowNum.equals(other.rowNum))
339                         return false;
340                 if (!Arrays.equals(thumbnail, other.thumbnail))
341                         return false;
342                 if (uebKey == null) {
343                         if (other.uebKey != null)
344                                 return false;
345                 } else if (!uebKey.equals(other.uebKey))
346                         return false;
347                 if (uebSecret == null) {
348                         if (other.uebSecret != null)
349                                 return false;
350                 } else if (!uebSecret.equals(other.uebSecret))
351                         return false;
352                 if (uebTopicName == null) {
353                         if (other.uebTopicName != null)
354                                 return false;
355                 } else if (!uebTopicName.equals(other.uebTopicName))
356                         return false;
357                 if (url == null) {
358                         if (other.url != null)
359                                 return false;
360                 } else if (!url.equals(other.url))
361                         return false;
362                 if (username == null) {
363                         if (other.username != null)
364                                 return false;
365                 } else if (!username.equals(other.username))
366                         return false;
367                 return true;
368         }
369         
370         
371 }