b44e25d331475e7150036655cb6f193f4951d1d6
[portal.git] / ecomp-portal-BE-common / src / main / java / org / openecomp / portalapp / portal / transport / CentralUser.java
1 package org.openecomp.portalapp.portal.transport;
2
3 import java.util.Date;
4 import java.util.Set;
5
6 public class CentralUser {
7
8
9         public Long id;
10         public Date created;
11         public Date modified;
12         public Long createdId;
13         public Long modifiedId;
14         public Long rowNum;
15         
16         public Long   orgId;
17     public Long   managerId;
18     public String firstName;
19     public String middleInitial;
20     public String lastName;
21     public String phone;
22     public String fax;
23     public String cellular;
24     public String email;
25     public Long   addressId;
26     public String alertMethodCd;
27     public String hrid;
28     public String orgUserId;
29     public String orgCode;
30     public String address1;
31     public String address2;
32     public String city;
33     public String state;
34     public String zipCode;
35     public String country;
36     public String orgManagerUserId;
37     public String locationClli;
38     public String businessCountryCode;
39     public String businessCountryName;
40     public String businessUnit;
41     public String businessUnitName;
42     public String department;
43     public String departmentName;
44     public String companyCode;
45     public String company;
46     public String zipCodeSuffix;
47     public String jobTitle;
48     public String commandChain;
49     public String siloStatus;
50     public String costCenter;
51     public String financialLocCode;
52
53     public String loginId;
54     public String loginPwd;
55     public Date   lastLoginDate;
56     public boolean active;
57     public boolean internal;
58     public Long    selectedProfileId;
59     public Long timeZoneId;
60     public boolean online;
61     public String chatId;
62     
63     public Set<CentralUserApp> userApps = null;
64         public Set<CentralRole> pseudoRoles = null;
65         
66         public CentralUser(){
67                 
68         }
69         
70         public CentralUser(Long id, Date created, Date modified, Long createdId, Long modifiedId, Long rowNum, Long orgId,
71                         Long managerId, String firstName, String middleInitial, String lastName, String phone, String fax,
72                         String cellular, String email, Long addressId, String alertMethodCd, String hrid, String orgUserId,
73                         String orgCode, String address1, String address2, String city, String state, String zipCode, String country,
74                         String orgManagerUserId, String locationClli, String businessCountryCode, String businessCountryName,
75                         String businessUnit, String businessUnitName, String department, String departmentName, String companyCode,
76                         String company, String zipCodeSuffix, String jobTitle, String commandChain, String siloStatus,
77                         String costCenter, String financialLocCode, String loginId, String loginPwd, Date lastLoginDate,
78                         boolean active, boolean internal, Long selectedProfileId, Long timeZoneId, boolean online, String chatId,
79                         Set<CentralUserApp> userApps, Set<CentralRole> pseudoRoles) {
80                 super();
81                 this.id = id;
82                 this.created = created;
83                 this.modified = modified;
84                 this.createdId = createdId;
85                 this.modifiedId = modifiedId;
86                 this.rowNum = rowNum;
87                 this.orgId = orgId;
88                 this.managerId = managerId;
89                 this.firstName = firstName;
90                 this.middleInitial = middleInitial;
91                 this.lastName = lastName;
92                 this.phone = phone;
93                 this.fax = fax;
94                 this.cellular = cellular;
95                 this.email = email;
96                 this.addressId = addressId;
97                 this.alertMethodCd = alertMethodCd;
98                 this.hrid = hrid;
99                 this.orgUserId = orgUserId;
100                 this.orgCode = orgCode;
101                 this.address1 = address1;
102                 this.address2 = address2;
103                 this.city = city;
104                 this.state = state;
105                 this.zipCode = zipCode;
106                 this.country = country;
107                 this.orgManagerUserId = orgManagerUserId;
108                 this.locationClli = locationClli;
109                 this.businessCountryCode = businessCountryCode;
110                 this.businessCountryName = businessCountryName;
111                 this.businessUnit = businessUnit;
112                 this.businessUnitName = businessUnitName;
113                 this.department = department;
114                 this.departmentName = departmentName;
115                 this.companyCode = companyCode;
116                 this.company = company;
117                 this.zipCodeSuffix = zipCodeSuffix;
118                 this.jobTitle = jobTitle;
119                 this.commandChain = commandChain;
120                 this.siloStatus = siloStatus;
121                 this.costCenter = costCenter;
122                 this.financialLocCode = financialLocCode;
123                 this.loginId = loginId;
124                 this.loginPwd = loginPwd;
125                 this.lastLoginDate = lastLoginDate;
126                 this.active = active;
127                 this.internal = internal;
128                 this.selectedProfileId = selectedProfileId;
129                 this.timeZoneId = timeZoneId;
130                 this.online = online;
131                 this.chatId = chatId;
132                 this.userApps = userApps;
133                 this.pseudoRoles = pseudoRoles;
134         }
135
136         @Override
137         public int hashCode() {
138                 final int prime = 31;
139                 int result = 1;
140                 result = prime * result + (active ? 1231 : 1237);
141                 result = prime * result + ((address1 == null) ? 0 : address1.hashCode());
142                 result = prime * result + ((address2 == null) ? 0 : address2.hashCode());
143                 result = prime * result + ((addressId == null) ? 0 : addressId.hashCode());
144                 result = prime * result + ((alertMethodCd == null) ? 0 : alertMethodCd.hashCode());
145                 result = prime * result + ((businessCountryCode == null) ? 0 : businessCountryCode.hashCode());
146                 result = prime * result + ((businessCountryName == null) ? 0 : businessCountryName.hashCode());
147                 result = prime * result + ((businessUnit == null) ? 0 : businessUnit.hashCode());
148                 result = prime * result + ((businessUnitName == null) ? 0 : businessUnitName.hashCode());
149                 result = prime * result + ((cellular == null) ? 0 : cellular.hashCode());
150                 result = prime * result + ((chatId == null) ? 0 : chatId.hashCode());
151                 result = prime * result + ((city == null) ? 0 : city.hashCode());
152                 result = prime * result + ((commandChain == null) ? 0 : commandChain.hashCode());
153                 result = prime * result + ((company == null) ? 0 : company.hashCode());
154                 result = prime * result + ((companyCode == null) ? 0 : companyCode.hashCode());
155                 result = prime * result + ((costCenter == null) ? 0 : costCenter.hashCode());
156                 result = prime * result + ((country == null) ? 0 : country.hashCode());
157                 result = prime * result + ((created == null) ? 0 : created.hashCode());
158                 result = prime * result + ((createdId == null) ? 0 : createdId.hashCode());
159                 result = prime * result + ((department == null) ? 0 : department.hashCode());
160                 result = prime * result + ((departmentName == null) ? 0 : departmentName.hashCode());
161                 result = prime * result + ((email == null) ? 0 : email.hashCode());
162                 result = prime * result + ((fax == null) ? 0 : fax.hashCode());
163                 result = prime * result + ((financialLocCode == null) ? 0 : financialLocCode.hashCode());
164                 result = prime * result + ((firstName == null) ? 0 : firstName.hashCode());
165                 result = prime * result + ((hrid == null) ? 0 : hrid.hashCode());
166                 result = prime * result + ((id == null) ? 0 : id.hashCode());
167                 result = prime * result + (internal ? 1231 : 1237);
168                 result = prime * result + ((jobTitle == null) ? 0 : jobTitle.hashCode());
169                 result = prime * result + ((lastLoginDate == null) ? 0 : lastLoginDate.hashCode());
170                 result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
171                 result = prime * result + ((locationClli == null) ? 0 : locationClli.hashCode());
172                 result = prime * result + ((loginId == null) ? 0 : loginId.hashCode());
173                 result = prime * result + ((loginPwd == null) ? 0 : loginPwd.hashCode());
174                 result = prime * result + ((managerId == null) ? 0 : managerId.hashCode());
175                 result = prime * result + ((middleInitial == null) ? 0 : middleInitial.hashCode());
176                 result = prime * result + ((modified == null) ? 0 : modified.hashCode());
177                 result = prime * result + ((modifiedId == null) ? 0 : modifiedId.hashCode());
178                 result = prime * result + (online ? 1231 : 1237);
179                 result = prime * result + ((orgCode == null) ? 0 : orgCode.hashCode());
180                 result = prime * result + ((orgId == null) ? 0 : orgId.hashCode());
181                 result = prime * result + ((orgManagerUserId == null) ? 0 : orgManagerUserId.hashCode());
182                 result = prime * result + ((orgUserId == null) ? 0 : orgUserId.hashCode());
183                 result = prime * result + ((phone == null) ? 0 : phone.hashCode());
184                 result = prime * result + ((pseudoRoles == null) ? 0 : pseudoRoles.hashCode());
185                 result = prime * result + ((rowNum == null) ? 0 : rowNum.hashCode());
186                 result = prime * result + ((selectedProfileId == null) ? 0 : selectedProfileId.hashCode());
187                 result = prime * result + ((siloStatus == null) ? 0 : siloStatus.hashCode());
188                 result = prime * result + ((state == null) ? 0 : state.hashCode());
189                 result = prime * result + ((timeZoneId == null) ? 0 : timeZoneId.hashCode());
190                 result = prime * result + ((userApps == null) ? 0 : userApps.hashCode());
191                 result = prime * result + ((zipCode == null) ? 0 : zipCode.hashCode());
192                 result = prime * result + ((zipCodeSuffix == null) ? 0 : zipCodeSuffix.hashCode());
193                 return result;
194         }
195
196         @Override
197         public boolean equals(Object obj) {
198                 if (this == obj)
199                         return true;
200                 if (obj == null)
201                         return false;
202                 if (getClass() != obj.getClass())
203                         return false;
204                 CentralUser other = (CentralUser) obj;
205                 if (active != other.active)
206                         return false;
207                 if (address1 == null) {
208                         if (other.address1 != null)
209                                 return false;
210                 } else if (!address1.equals(other.address1))
211                         return false;
212                 if (address2 == null) {
213                         if (other.address2 != null)
214                                 return false;
215                 } else if (!address2.equals(other.address2))
216                         return false;
217                 if (addressId == null) {
218                         if (other.addressId != null)
219                                 return false;
220                 } else if (!addressId.equals(other.addressId))
221                         return false;
222                 if (alertMethodCd == null) {
223                         if (other.alertMethodCd != null)
224                                 return false;
225                 } else if (!alertMethodCd.equals(other.alertMethodCd))
226                         return false;
227                 if (businessCountryCode == null) {
228                         if (other.businessCountryCode != null)
229                                 return false;
230                 } else if (!businessCountryCode.equals(other.businessCountryCode))
231                         return false;
232                 if (businessCountryName == null) {
233                         if (other.businessCountryName != null)
234                                 return false;
235                 } else if (!businessCountryName.equals(other.businessCountryName))
236                         return false;
237                 if (businessUnit == null) {
238                         if (other.businessUnit != null)
239                                 return false;
240                 } else if (!businessUnit.equals(other.businessUnit))
241                         return false;
242                 if (businessUnitName == null) {
243                         if (other.businessUnitName != null)
244                                 return false;
245                 } else if (!businessUnitName.equals(other.businessUnitName))
246                         return false;
247                 if (cellular == null) {
248                         if (other.cellular != null)
249                                 return false;
250                 } else if (!cellular.equals(other.cellular))
251                         return false;
252                 if (chatId == null) {
253                         if (other.chatId != null)
254                                 return false;
255                 } else if (!chatId.equals(other.chatId))
256                         return false;
257                 if (city == null) {
258                         if (other.city != null)
259                                 return false;
260                 } else if (!city.equals(other.city))
261                         return false;
262                 if (commandChain == null) {
263                         if (other.commandChain != null)
264                                 return false;
265                 } else if (!commandChain.equals(other.commandChain))
266                         return false;
267                 if (company == null) {
268                         if (other.company != null)
269                                 return false;
270                 } else if (!company.equals(other.company))
271                         return false;
272                 if (companyCode == null) {
273                         if (other.companyCode != null)
274                                 return false;
275                 } else if (!companyCode.equals(other.companyCode))
276                         return false;
277                 if (costCenter == null) {
278                         if (other.costCenter != null)
279                                 return false;
280                 } else if (!costCenter.equals(other.costCenter))
281                         return false;
282                 if (country == null) {
283                         if (other.country != null)
284                                 return false;
285                 } else if (!country.equals(other.country))
286                         return false;
287                 if (created == null) {
288                         if (other.created != null)
289                                 return false;
290                 } else if (!created.equals(other.created))
291                         return false;
292                 if (createdId == null) {
293                         if (other.createdId != null)
294                                 return false;
295                 } else if (!createdId.equals(other.createdId))
296                         return false;
297                 if (department == null) {
298                         if (other.department != null)
299                                 return false;
300                 } else if (!department.equals(other.department))
301                         return false;
302                 if (departmentName == null) {
303                         if (other.departmentName != null)
304                                 return false;
305                 } else if (!departmentName.equals(other.departmentName))
306                         return false;
307                 if (email == null) {
308                         if (other.email != null)
309                                 return false;
310                 } else if (!email.equals(other.email))
311                         return false;
312                 if (fax == null) {
313                         if (other.fax != null)
314                                 return false;
315                 } else if (!fax.equals(other.fax))
316                         return false;
317                 if (financialLocCode == null) {
318                         if (other.financialLocCode != null)
319                                 return false;
320                 } else if (!financialLocCode.equals(other.financialLocCode))
321                         return false;
322                 if (firstName == null) {
323                         if (other.firstName != null)
324                                 return false;
325                 } else if (!firstName.equals(other.firstName))
326                         return false;
327                 if (hrid == null) {
328                         if (other.hrid != null)
329                                 return false;
330                 } else if (!hrid.equals(other.hrid))
331                         return false;
332                 if (id == null) {
333                         if (other.id != null)
334                                 return false;
335                 } else if (!id.equals(other.id))
336                         return false;
337                 if (internal != other.internal)
338                         return false;
339                 if (jobTitle == null) {
340                         if (other.jobTitle != null)
341                                 return false;
342                 } else if (!jobTitle.equals(other.jobTitle))
343                         return false;
344                 if (lastLoginDate == null) {
345                         if (other.lastLoginDate != null)
346                                 return false;
347                 } else if (!lastLoginDate.equals(other.lastLoginDate))
348                         return false;
349                 if (lastName == null) {
350                         if (other.lastName != null)
351                                 return false;
352                 } else if (!lastName.equals(other.lastName))
353                         return false;
354                 if (locationClli == null) {
355                         if (other.locationClli != null)
356                                 return false;
357                 } else if (!locationClli.equals(other.locationClli))
358                         return false;
359                 if (loginId == null) {
360                         if (other.loginId != null)
361                                 return false;
362                 } else if (!loginId.equals(other.loginId))
363                         return false;
364                 if (loginPwd == null) {
365                         if (other.loginPwd != null)
366                                 return false;
367                 } else if (!loginPwd.equals(other.loginPwd))
368                         return false;
369                 if (managerId == null) {
370                         if (other.managerId != null)
371                                 return false;
372                 } else if (!managerId.equals(other.managerId))
373                         return false;
374                 if (middleInitial == null) {
375                         if (other.middleInitial != null)
376                                 return false;
377                 } else if (!middleInitial.equals(other.middleInitial))
378                         return false;
379                 if (modified == null) {
380                         if (other.modified != null)
381                                 return false;
382                 } else if (!modified.equals(other.modified))
383                         return false;
384                 if (modifiedId == null) {
385                         if (other.modifiedId != null)
386                                 return false;
387                 } else if (!modifiedId.equals(other.modifiedId))
388                         return false;
389                 if (online != other.online)
390                         return false;
391                 if (orgCode == null) {
392                         if (other.orgCode != null)
393                                 return false;
394                 } else if (!orgCode.equals(other.orgCode))
395                         return false;
396                 if (orgId == null) {
397                         if (other.orgId != null)
398                                 return false;
399                 } else if (!orgId.equals(other.orgId))
400                         return false;
401                 if (orgManagerUserId == null) {
402                         if (other.orgManagerUserId != null)
403                                 return false;
404                 } else if (!orgManagerUserId.equals(other.orgManagerUserId))
405                         return false;
406                 if (orgUserId == null) {
407                         if (other.orgUserId != null)
408                                 return false;
409                 } else if (!orgUserId.equals(other.orgUserId))
410                         return false;
411                 if (phone == null) {
412                         if (other.phone != null)
413                                 return false;
414                 } else if (!phone.equals(other.phone))
415                         return false;
416                 if (pseudoRoles == null) {
417                         if (other.pseudoRoles != null)
418                                 return false;
419                 } else if (!pseudoRoles.equals(other.pseudoRoles))
420                         return false;
421                 if (rowNum == null) {
422                         if (other.rowNum != null)
423                                 return false;
424                 } else if (!rowNum.equals(other.rowNum))
425                         return false;
426                 if (selectedProfileId == null) {
427                         if (other.selectedProfileId != null)
428                                 return false;
429                 } else if (!selectedProfileId.equals(other.selectedProfileId))
430                         return false;
431                 if (siloStatus == null) {
432                         if (other.siloStatus != null)
433                                 return false;
434                 } else if (!siloStatus.equals(other.siloStatus))
435                         return false;
436                 if (state == null) {
437                         if (other.state != null)
438                                 return false;
439                 } else if (!state.equals(other.state))
440                         return false;
441                 if (timeZoneId == null) {
442                         if (other.timeZoneId != null)
443                                 return false;
444                 } else if (!timeZoneId.equals(other.timeZoneId))
445                         return false;
446                 if (userApps == null) {
447                         if (other.userApps != null)
448                                 return false;
449                 } else if (!userApps.equals(other.userApps))
450                         return false;
451                 if (zipCode == null) {
452                         if (other.zipCode != null)
453                                 return false;
454                 } else if (!zipCode.equals(other.zipCode))
455                         return false;
456                 if (zipCodeSuffix == null) {
457                         if (other.zipCodeSuffix != null)
458                                 return false;
459                 } else if (!zipCodeSuffix.equals(other.zipCodeSuffix))
460                         return false;
461                 return true;
462         }
463         
464         
465
466         
467 }