Security/ Package Name changes
[portal.git] / ecomp-portal-BE-common / src / main / java / org / onap / portalapp / portal / transport / CentralApp.java
1 /*-
2  * ============LICENSE_START==========================================
3  * ONAP Portal
4  * ===================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ===================================================================
7  *
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
12  *
13  *             http://www.apache.org/licenses/LICENSE-2.0
14  *
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.
20  *
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
25  *
26  *             https://creativecommons.org/licenses/by/4.0/
27  *
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.
33  *
34  * ============LICENSE_END============================================
35  *
36  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
37  */
38 package org.onap.portalapp.portal.transport;
39
40 import java.io.Serializable;
41 import java.util.Date;
42
43 public class CentralApp implements Serializable{
44         /**
45          * 
46          */
47         private static final long serialVersionUID = -3325965646585871632L;
48         private Long id;
49         private Date created;
50         private Date modified;
51         private Long createdId;
52         private Long modifiedId;
53         private Long rowNum;
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
65         private String open;
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
72         
73         public CentralApp(){
74                 
75         }
76
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) {
81                 super();
82                 this.id = id;
83                 this.created = created;
84                 this.modified = modified;
85                 this.createdId = createdId;
86                 this.modifiedId = modifiedId;
87                 this.rowNum = rowNum;
88                 this.name = name;
89                 this.imageUrl = imageUrl;
90                 this.description = description;
91                 this.notes = notes;
92                 this.url = url;
93                 this.alternateUrl = alternateUrl;
94                 this.restEndpoint = restEndpoint;
95                 this.mlAppName = mlAppName;
96                 this.mlAppAdminId = mlAppAdminId;
97                 this.motsId = motsId;
98                 this.appPassword = appPassword;
99                 this.open = open;
100                 this.enabled = enabled;
101                 this.thumbnail = thumbnail;
102                 this.username = username;
103                 this.uebKey = uebKey;
104                 this.uebSecret = uebSecret;
105                 this.uebTopicName = uebTopicName;
106         }
107         
108         public Long getId() {
109                 return id;
110         }
111         public void setId(Long id) {
112                 this.id = id;
113         }
114         
115         public Date getCreated() {
116                 return created;
117         }
118         public void setCreated(Date created) {
119                 this.created = created;
120         }
121         public Date getModified() {
122                 return modified;
123         }
124         public void setModified(Date modified) {
125                 this.modified = modified;
126         }
127         public Long getCreatedId() {
128                 return createdId;
129         }
130         public void setCreatedId(Long createdId) {
131                 this.createdId = createdId;
132         }
133         public Long getModifiedId() {
134                 return modifiedId;
135         }
136         public void setModifiedId(Long modifiedId) {
137                 this.modifiedId = modifiedId;
138         }
139         public Long getRowNum() {
140                 return rowNum;
141         }
142         public void setRowNum(Long rowNum) {
143                 this.rowNum = rowNum;
144         }
145         public String getName() {
146                 return name;
147         }
148         public void setName(String name) {
149                 this.name = name;
150         }
151         public String getImageUrl() {
152                 return imageUrl;
153         }
154         public void setImageUrl(String imageUrl) {
155                 this.imageUrl = imageUrl;
156         }
157         public String getDescription() {
158                 return description;
159         }
160         public void setDescription(String description) {
161                 this.description = description;
162         }
163         public String getNotes() {
164                 return notes;
165         }
166         public void setNotes(String notes) {
167                 this.notes = notes;
168         }
169         public String getUrl() {
170                 return url;
171         }
172         public void setUrl(String url) {
173                 this.url = url;
174         }
175         public String getAlternateUrl() {
176                 return alternateUrl;
177         }
178         public void setAlternateUrl(String alternateUrl) {
179                 this.alternateUrl = alternateUrl;
180         }
181         public String getRestEndpoint() {
182                 return restEndpoint;
183         }
184         public void setRestEndpoint(String restEndpoint) {
185                 this.restEndpoint = restEndpoint;
186         }
187         public String getMlAppName() {
188                 return mlAppName;
189         }
190         public void setMlAppName(String mlAppName) {
191                 this.mlAppName = mlAppName;
192         }
193         public String getMlAppAdminId() {
194                 return mlAppAdminId;
195         }
196         public void setMlAppAdminId(String mlAppAdminId) {
197                 this.mlAppAdminId = mlAppAdminId;
198         }
199         public String getMotsId() {
200                 return motsId;
201         }
202         public void setMotsId(String motsId) {
203                 this.motsId = motsId;
204         }
205         public String getAppPassword() {
206                 return appPassword;
207         }
208         public void setAppPassword(String appPassword) {
209                 this.appPassword = appPassword;
210         }
211         public String getOpen() {
212                 return open;
213         }
214         public void setOpen(String open) {
215                 this.open = open;
216         }
217         public String getEnabled() {
218                 return enabled;
219         }
220         public void setEnabled(String enabled) {
221                 this.enabled = enabled;
222         }
223         public byte[] getThumbnail() {
224                 return thumbnail;
225         }
226         public void setThumbnail(byte[] thumbnail) {
227                 this.thumbnail = thumbnail;
228         }
229         public String getUsername() {
230                 return username;
231         }
232         public void setUsername(String username) {
233                 this.username = username;
234         }
235         public String getUebKey() {
236                 return uebKey;
237         }
238         public void setUebKey(String uebKey) {
239                 this.uebKey = uebKey;
240         }
241         public String getUebSecret() {
242                 return uebSecret;
243         }
244         public void setUebSecret(String uebSecret) {
245                 this.uebSecret = uebSecret;
246         }
247         public String getUebTopicName() {
248                 return uebTopicName;
249         }
250         public void setUebTopicName(String uebTopicName) {
251                 this.uebTopicName = uebTopicName;
252         }
253
254         @Override
255         public int hashCode() {
256                 final int prime = 31;
257                 int result = 1;
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());
279                 return result;
280         }
281
282         @Override
283         public boolean equals(Object obj) {
284                 if (this == obj)
285                         return true;
286                 if (obj == null)
287                         return false;
288                 if (getClass() != obj.getClass())
289                         return false;
290                 CentralApp other = (CentralApp) obj;
291                 if (alternateUrl == null) {
292                         if (other.alternateUrl != null)
293                                 return false;
294                 } else if (!alternateUrl.equals(other.alternateUrl))
295                         return false;
296                 if (appPassword == null) {
297                         if (other.appPassword != null)
298                                 return false;
299                 } else if (!appPassword.equals(other.appPassword))
300                         return false;
301                 if (createdId == null) {
302                         if (other.createdId != null)
303                                 return false;
304                 } else if (!createdId.equals(other.createdId))
305                         return false;
306                 if (description == null) {
307                         if (other.description != null)
308                                 return false;
309                 } else if (!description.equals(other.description))
310                         return false;
311                 if (enabled == null) {
312                         if (other.enabled != null)
313                                 return false;
314                 } else if (!enabled.equals(other.enabled))
315                         return false;
316                 if (id == null) {
317                         if (other.id != null)
318                                 return false;
319                 } else if (!id.equals(other.id))
320                         return false;
321                 if (imageUrl == null) {
322                         if (other.imageUrl != null)
323                                 return false;
324                 } else if (!imageUrl.equals(other.imageUrl))
325                         return false;
326                 if (mlAppAdminId == null) {
327                         if (other.mlAppAdminId != null)
328                                 return false;
329                 } else if (!mlAppAdminId.equals(other.mlAppAdminId))
330                         return false;
331                 if (mlAppName == null) {
332                         if (other.mlAppName != null)
333                                 return false;
334                 } else if (!mlAppName.equals(other.mlAppName))
335                         return false;
336                 if (modifiedId == null) {
337                         if (other.modifiedId != null)
338                                 return false;
339                 } else if (!modifiedId.equals(other.modifiedId))
340                         return false;
341                 if (motsId == null) {
342                         if (other.motsId != null)
343                                 return false;
344                 } else if (!motsId.equals(other.motsId))
345                         return false;
346                 if (name == null) {
347                         if (other.name != null)
348                                 return false;
349                 } else if (!name.equals(other.name))
350                         return false;
351                 if (notes == null) {
352                         if (other.notes != null)
353                                 return false;
354                 } else if (!notes.equals(other.notes))
355                         return false;
356                 if (open == null) {
357                         if (other.open != null)
358                                 return false;
359                 } else if (!open.equals(other.open))
360                         return false;
361                 if (restEndpoint == null) {
362                         if (other.restEndpoint != null)
363                                 return false;
364                 } else if (!restEndpoint.equals(other.restEndpoint))
365                         return false;
366                 if (rowNum == null) {
367                         if (other.rowNum != null)
368                                 return false;
369                 } else if (!rowNum.equals(other.rowNum))
370                         return false;
371                 if (uebKey == null) {
372                         if (other.uebKey != null)
373                                 return false;
374                 } else if (!uebKey.equals(other.uebKey))
375                         return false;
376                 if (uebSecret == null) {
377                         if (other.uebSecret != null)
378                                 return false;
379                 } else if (!uebSecret.equals(other.uebSecret))
380                         return false;
381                 if (uebTopicName == null) {
382                         if (other.uebTopicName != null)
383                                 return false;
384                 } else if (!uebTopicName.equals(other.uebTopicName))
385                         return false;
386                 if (url == null) {
387                         if (other.url != null)
388                                 return false;
389                 } else if (!url.equals(other.url))
390                         return false;
391                 if (username == null) {
392                         if (other.username != null)
393                                 return false;
394                 } else if (!username.equals(other.username))
395                         return false;
396                 return true;
397         }
398         
399         
400 }