Reduce number of parameters in constructor
[portal.git] / ecomp-portal-BE-common / src / main / java / org / onap / portalapp / portal / transport / CentralV2User.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  * 
37  */
38 package org.onap.portalapp.portal.transport;
39
40 import java.io.Serializable;
41 import java.util.Date;
42 import java.util.Set;
43
44 public class CentralV2User implements Serializable {
45
46
47         /**
48          * 
49          */
50         private static final long serialVersionUID = -2673289523184880563L;
51         private Long id;
52         private Date created;
53         private Date modified;
54         private Long createdId;
55         private Long modifiedId;
56         private Long rowNum;
57         
58         private Long   orgId;
59     private Long   managerId;
60     private String firstName;
61     private String middleInitial;
62     private String lastName;
63     private String phone;
64     private String fax;
65     private String cellular;
66     private String email;
67     private Long   addressId;
68     private String alertMethodCd;
69     private String hrid;
70     private String orgUserId;
71     private String orgCode;
72     private String address1;
73     private String address2;
74     private String city;
75     private String state;
76     private String zipCode;
77     private String country;
78     private String orgManagerUserId;
79     private String locationClli;
80     private String businessCountryCode;
81     private String businessCountryName;
82     private String businessUnit;
83     private String businessUnitName;
84     private String department;
85     private String departmentName;
86     private String companyCode;
87     private String company;
88     private String zipCodeSuffix;
89     private String jobTitle;
90     private String commandChain;
91     private String siloStatus;
92     private String costCenter;
93     private String financialLocCode;
94
95     private String loginId;
96     private String loginPwd;
97     private Date   lastLoginDate;
98     private boolean active;
99     private boolean internal;
100     private Long    selectedProfileId;
101     private Long timeZoneId;
102     private boolean online;
103     private String chatId;
104     
105     private Set<CentralV2UserApp> userApps = null;
106         private Set<CentralV2Role> pseudoRoles = null;
107         
108         public CentralV2User(){
109                 
110         }
111         
112         public CentralV2User(CentralV2UserBuilder builder) {
113                 super();
114                 this.id = builder.id;
115                 this.created = builder.created;
116                 this.modified = builder.modified;
117                 this.createdId = builder.createdId;
118                 this.modifiedId = builder.modifiedId;
119                 this.rowNum = builder.rowNum;
120                 this.orgId = builder.orgId;
121                 this.managerId = builder.managerId;
122                 this.firstName = builder.firstName;
123                 this.middleInitial = builder.middleInitial;
124                 this.lastName = builder.lastName;
125                 this.phone = builder.phone;
126                 this.fax = builder.fax;
127                 this.cellular = builder.cellular;
128                 this.email = builder.email;
129                 this.addressId = builder.addressId;
130                 this.alertMethodCd = builder.alertMethodCd;
131                 this.hrid = builder.hrid;
132                 this.orgUserId = builder.orgUserId;
133                 this.orgCode = builder.orgCode;
134                 this.address1 = builder.address1;
135                 this.address2 = builder.address2;
136                 this.city = builder.city;
137                 this.state = builder.state;
138                 this.zipCode = builder.zipCode;
139                 this.country = builder.country;
140                 this.orgManagerUserId = builder.orgManagerUserId;
141                 this.locationClli = builder.locationClli;
142                 this.businessCountryCode = builder.businessCountryCode;
143                 this.businessCountryName = builder.businessCountryName;
144                 this.businessUnit = builder.businessUnit;
145                 this.businessUnitName = builder.businessUnitName;
146                 this.department = builder.department;
147                 this.departmentName = builder.departmentName;
148                 this.companyCode = builder.companyCode;
149                 this.company = builder.company;
150                 this.zipCodeSuffix = builder.zipCodeSuffix;
151                 this.jobTitle = builder.jobTitle;
152                 this.commandChain = builder.commandChain;
153                 this.siloStatus = builder.siloStatus;
154                 this.costCenter = builder.costCenter;
155                 this.financialLocCode = builder.financialLocCode;
156                 this.loginId = builder.loginId;
157                 this.loginPwd = builder.loginPwd;
158                 this.lastLoginDate = builder.lastLoginDate;
159                 this.active = builder.active;
160                 this.internal = builder.internal;
161                 this.selectedProfileId = builder.selectedProfileId;
162                 this.timeZoneId = builder.timeZoneId;
163                 this.online = builder.online;
164                 this.chatId = builder.chatId;
165                 this.userApps = builder.userApps;
166                 this.pseudoRoles = builder.pseudoRoles;
167         }
168
169         public static class CentralV2UserBuilder {
170                 private Long id;
171                 private Date created;
172                 private Date modified;
173                 private Long createdId;
174                 private Long modifiedId;
175                 private Long rowNum;
176                 private Long orgId;
177                 private Long managerId;
178                 private String firstName;
179                 private String middleInitial;
180                 private String lastName;
181                 private String phone;
182                 private String fax;
183                 private String cellular;
184                 private String email;
185                 private Long addressId;
186                 private String alertMethodCd;
187                 private String hrid;
188                 private String orgUserId;
189                 private String orgCode;
190                 private String address1;
191                 private String address2;
192                 private String city;
193                 private String state;
194                 private String zipCode;
195                 private String country;
196                 private String orgManagerUserId;
197                 private String locationClli;
198                 private String businessCountryCode;
199                 private String businessCountryName;
200                 private String businessUnit;
201                 private String businessUnitName;
202                 private String department;
203                 private String departmentName;
204                 private String companyCode;
205                 private String company;
206                 private String zipCodeSuffix;
207                 private String jobTitle;
208                 private String commandChain;
209                 private String siloStatus;
210                 private String costCenter;
211                 private String financialLocCode;
212                 private String loginId;
213                 private String loginPwd;
214                 private Date lastLoginDate;
215                 private boolean active;
216                 private boolean internal;
217                 private Long selectedProfileId;
218                 private Long timeZoneId;
219                 private boolean online;
220                 private String chatId;
221                 private Set<CentralV2UserApp> userApps;
222                 private Set<CentralV2Role> pseudoRoles;
223
224                 public CentralV2UserBuilder setId(Long id) {
225                         this.id = id;
226                         return this;
227                 }
228
229                 public CentralV2UserBuilder setCreated(Date created) {
230                         this.created = created;
231                         return this;
232                 }
233
234                 public CentralV2UserBuilder setModified(Date modified) {
235                         this.modified = modified;
236                         return this;
237                 }
238
239                 public CentralV2UserBuilder setCreatedId(Long createdId) {
240                         this.createdId = createdId;
241                         return this;
242                 }
243
244                 public CentralV2UserBuilder setModifiedId(Long modifiedId) {
245                         this.modifiedId = modifiedId;
246                         return this;
247                 }
248
249                 public CentralV2UserBuilder setRowNum(Long rowNum) {
250                         this.rowNum = rowNum;
251                         return this;
252                 }
253
254                 public CentralV2UserBuilder setOrgId(Long orgId) {
255                         this.orgId = orgId;
256                         return this;
257                 }
258
259                 public CentralV2UserBuilder setManagerId(Long managerId) {
260                         this.managerId = managerId;
261                         return this;
262                 }
263
264                 public CentralV2UserBuilder setFirstName(String firstName) {
265                         this.firstName = firstName;
266                         return this;
267                 }
268
269                 public CentralV2UserBuilder setMiddleInitial(String middleInitial) {
270                         this.middleInitial = middleInitial;
271                         return this;
272                 }
273
274                 public CentralV2UserBuilder setLastName(String lastName) {
275                         this.lastName = lastName;
276                         return this;
277                 }
278
279                 public CentralV2UserBuilder setPhone(String phone) {
280                         this.phone = phone;
281                         return this;
282                 }
283
284                 public CentralV2UserBuilder setFax(String fax) {
285                         this.fax = fax;
286                         return this;
287                 }
288
289                 public CentralV2UserBuilder setCellular(String cellular) {
290                         this.cellular = cellular;
291                         return this;
292                 }
293
294                 public CentralV2UserBuilder setEmail(String email) {
295                         this.email = email;
296                         return this;
297                 }
298
299                 public CentralV2UserBuilder setAddressId(Long addressId) {
300                         this.addressId = addressId;
301                         return this;
302                 }
303
304                 public CentralV2UserBuilder setAlertMethodCd(String alertMethodCd) {
305                         this.alertMethodCd = alertMethodCd;
306                         return this;
307                 }
308
309                 public CentralV2UserBuilder setHrid(String hrid) {
310                         this.hrid = hrid;
311                         return this;
312                 }
313
314                 public CentralV2UserBuilder setOrgUserId(String orgUserId) {
315                         this.orgUserId = orgUserId;
316                         return this;
317                 }
318
319                 public CentralV2UserBuilder setOrgCode(String orgCode) {
320                         this.orgCode = orgCode;
321                         return this;
322                 }
323
324                 public CentralV2UserBuilder setAddress1(String address1) {
325                         this.address1 = address1;
326                         return this;
327                 }
328
329                 public CentralV2UserBuilder setAddress2(String address2) {
330                         this.address2 = address2;
331                         return this;
332                 }
333
334                 public CentralV2UserBuilder setCity(String city) {
335                         this.city = city;
336                         return this;
337                 }
338
339                 public CentralV2UserBuilder setState(String state) {
340                         this.state = state;
341                         return this;
342                 }
343
344                 public CentralV2UserBuilder setZipCode(String zipCode) {
345                         this.zipCode = zipCode;
346                         return this;
347                 }
348
349                 public CentralV2UserBuilder setCountry(String country) {
350                         this.country = country;
351                         return this;
352                 }
353
354                 public CentralV2UserBuilder setOrgManagerUserId(String orgManagerUserId) {
355                         this.orgManagerUserId = orgManagerUserId;
356                         return this;
357                 }
358
359                 public CentralV2UserBuilder setLocationClli(String locationClli) {
360                         this.locationClli = locationClli;
361                         return this;
362                 }
363
364                 public CentralV2UserBuilder setBusinessCountryCode(String businessCountryCode) {
365                         this.businessCountryCode = businessCountryCode;
366                         return this;
367                 }
368
369                 public CentralV2UserBuilder setBusinessCountryName(String businessCountryName) {
370                         this.businessCountryName = businessCountryName;
371                         return this;
372                 }
373
374                 public CentralV2UserBuilder setBusinessUnit(String businessUnit) {
375                         this.businessUnit = businessUnit;
376                         return this;
377                 }
378
379                 public CentralV2UserBuilder setBusinessUnitName(String businessUnitName) {
380                         this.businessUnitName = businessUnitName;
381                         return this;
382                 }
383
384                 public CentralV2UserBuilder setDepartment(String department) {
385                         this.department = department;
386                         return this;
387                 }
388
389                 public CentralV2UserBuilder setDepartmentName(String departmentName) {
390                         this.departmentName = departmentName;
391                         return this;
392                 }
393
394                 public CentralV2UserBuilder setCompanyCode(String companyCode) {
395                         this.companyCode = companyCode;
396                         return this;
397                 }
398
399                 public CentralV2UserBuilder setCompany(String company) {
400                         this.company = company;
401                         return this;
402                 }
403
404                 public CentralV2UserBuilder setZipCodeSuffix(String zipCodeSuffix) {
405                         this.zipCodeSuffix = zipCodeSuffix;
406                         return this;
407                 }
408
409                 public CentralV2UserBuilder setJobTitle(String jobTitle) {
410                         this.jobTitle = jobTitle;
411                         return this;
412                 }
413
414                 public CentralV2UserBuilder setCommandChain(String commandChain) {
415                         this.commandChain = commandChain;
416                         return this;
417                 }
418
419                 public CentralV2UserBuilder setSiloStatus(String siloStatus) {
420                         this.siloStatus = siloStatus;
421                         return this;
422                 }
423
424                 public CentralV2UserBuilder setCostCenter(String costCenter) {
425                         this.costCenter = costCenter;
426                         return this;
427                 }
428
429                 public CentralV2UserBuilder setFinancialLocCode(String financialLocCode) {
430                         this.financialLocCode = financialLocCode;
431                         return this;
432                 }
433
434                 public CentralV2UserBuilder setLoginId(String loginId) {
435                         this.loginId = loginId;
436                         return this;
437                 }
438
439                 public CentralV2UserBuilder setLoginPwd(String loginPwd) {
440                         this.loginPwd = loginPwd;
441                         return this;
442                 }
443
444                 public CentralV2UserBuilder setLastLoginDate(Date lastLoginDate) {
445                         this.lastLoginDate = lastLoginDate;
446                         return this;
447                 }
448
449                 public CentralV2UserBuilder setActive(boolean active) {
450                         this.active = active;
451                         return this;
452                 }
453
454                 public CentralV2UserBuilder setInternal(boolean internal) {
455                         this.internal = internal;
456                         return this;
457                 }
458
459                 public CentralV2UserBuilder setSelectedProfileId(Long selectedProfileId) {
460                         this.selectedProfileId = selectedProfileId;
461                         return this;
462                 }
463
464                 public CentralV2UserBuilder setTimeZoneId(Long timeZoneId) {
465                         this.timeZoneId = timeZoneId;
466                         return this;
467                 }
468
469                 public CentralV2UserBuilder setOnline(boolean online) {
470                         this.online = online;
471                         return this;
472                 }
473
474                 public CentralV2UserBuilder setChatId(String chatId) {
475                         this.chatId = chatId;
476                         return this;
477                 }
478
479                 public CentralV2UserBuilder setUserApps(Set<CentralV2UserApp> userApps) {
480                         this.userApps = userApps;
481                         return this;
482                 }
483
484                 public CentralV2UserBuilder setPseudoRoles(Set<CentralV2Role> pseudoRoles) {
485                         this.pseudoRoles = pseudoRoles;
486                         return this;
487                 }
488
489                 public CentralV2User createCentralV2User() {
490                         return new CentralV2User(this);
491                 }
492         }
493
494         /**
495          * @return the id
496          */
497         public Long getId() {
498                 return id;
499         }
500
501         /**
502          * @param id the id to set
503          */
504         public void setId(Long id) {
505                 this.id = id;
506         }
507
508         /**
509          * @return the created
510          */
511         public Date getCreated() {
512                 return created;
513         }
514
515         /**
516          * @param created the created to set
517          */
518         public void setCreated(Date created) {
519                 this.created = created;
520         }
521
522         /**
523          * @return the modified
524          */
525         public Date getModified() {
526                 return modified;
527         }
528
529         /**
530          * @param modified the modified to set
531          */
532         public void setModified(Date modified) {
533                 this.modified = modified;
534         }
535
536         /**
537          * @return the createdId
538          */
539         public Long getCreatedId() {
540                 return createdId;
541         }
542
543         /**
544          * @param createdId the createdId to set
545          */
546         public void setCreatedId(Long createdId) {
547                 this.createdId = createdId;
548         }
549
550         /**
551          * @return the modifiedId
552          */
553         public Long getModifiedId() {
554                 return modifiedId;
555         }
556
557         /**
558          * @param modifiedId the modifiedId to set
559          */
560         public void setModifiedId(Long modifiedId) {
561                 this.modifiedId = modifiedId;
562         }
563
564         /**
565          * @return the rowNum
566          */
567         public Long getRowNum() {
568                 return rowNum;
569         }
570
571         /**
572          * @param rowNum the rowNum to set
573          */
574         public void setRowNum(Long rowNum) {
575                 this.rowNum = rowNum;
576         }
577
578         /**
579          * @return the orgId
580          */
581         public Long getOrgId() {
582                 return orgId;
583         }
584
585         /**
586          * @param orgId the orgId to set
587          */
588         public void setOrgId(Long orgId) {
589                 this.orgId = orgId;
590         }
591
592         /**
593          * @return the managerId
594          */
595         public Long getManagerId() {
596                 return managerId;
597         }
598
599         /**
600          * @param managerId the managerId to set
601          */
602         public void setManagerId(Long managerId) {
603                 this.managerId = managerId;
604         }
605
606         /**
607          * @return the firstName
608          */
609         public String getFirstName() {
610                 return firstName;
611         }
612
613         /**
614          * @param firstName the firstName to set
615          */
616         public void setFirstName(String firstName) {
617                 this.firstName = firstName;
618         }
619
620         /**
621          * @return the middleInitial
622          */
623         public String getMiddleInitial() {
624                 return middleInitial;
625         }
626
627         /**
628          * @param middleInitial the middleInitial to set
629          */
630         public void setMiddleInitial(String middleInitial) {
631                 this.middleInitial = middleInitial;
632         }
633
634         /**
635          * @return the lastName
636          */
637         public String getLastName() {
638                 return lastName;
639         }
640
641         /**
642          * @param lastName the lastName to set
643          */
644         public void setLastName(String lastName) {
645                 this.lastName = lastName;
646         }
647
648         /**
649          * @return the phone
650          */
651         public String getPhone() {
652                 return phone;
653         }
654
655         /**
656          * @param phone the phone to set
657          */
658         public void setPhone(String phone) {
659                 this.phone = phone;
660         }
661
662         /**
663          * @return the fax
664          */
665         public String getFax() {
666                 return fax;
667         }
668
669         /**
670          * @param fax the fax to set
671          */
672         public void setFax(String fax) {
673                 this.fax = fax;
674         }
675
676         /**
677          * @return the cellular
678          */
679         public String getCellular() {
680                 return cellular;
681         }
682
683         /**
684          * @param cellular the cellular to set
685          */
686         public void setCellular(String cellular) {
687                 this.cellular = cellular;
688         }
689
690         /**
691          * @return the email
692          */
693         public String getEmail() {
694                 return email;
695         }
696
697         /**
698          * @param email the email to set
699          */
700         public void setEmail(String email) {
701                 this.email = email;
702         }
703
704         /**
705          * @return the addressId
706          */
707         public Long getAddressId() {
708                 return addressId;
709         }
710
711         /**
712          * @param addressId the addressId to set
713          */
714         public void setAddressId(Long addressId) {
715                 this.addressId = addressId;
716         }
717
718         /**
719          * @return the alertMethodCd
720          */
721         public String getAlertMethodCd() {
722                 return alertMethodCd;
723         }
724
725         /**
726          * @param alertMethodCd the alertMethodCd to set
727          */
728         public void setAlertMethodCd(String alertMethodCd) {
729                 this.alertMethodCd = alertMethodCd;
730         }
731
732         /**
733          * @return the hrid
734          */
735         public String getHrid() {
736                 return hrid;
737         }
738
739         /**
740          * @param hrid the hrid to set
741          */
742         public void setHrid(String hrid) {
743                 this.hrid = hrid;
744         }
745
746         /**
747          * @return the orgUserId
748          */
749         public String getOrgUserId() {
750                 return orgUserId;
751         }
752
753         /**
754          * @param orgUserId the orgUserId to set
755          */
756         public void setOrgUserId(String orgUserId) {
757                 this.orgUserId = orgUserId;
758         }
759
760         /**
761          * @return the orgCode
762          */
763         public String getOrgCode() {
764                 return orgCode;
765         }
766
767         /**
768          * @param orgCode the orgCode to set
769          */
770         public void setOrgCode(String orgCode) {
771                 this.orgCode = orgCode;
772         }
773
774         /**
775          * @return the address1
776          */
777         public String getAddress1() {
778                 return address1;
779         }
780
781         /**
782          * @param address1 the address1 to set
783          */
784         public void setAddress1(String address1) {
785                 this.address1 = address1;
786         }
787
788         /**
789          * @return the address2
790          */
791         public String getAddress2() {
792                 return address2;
793         }
794
795         /**
796          * @param address2 the address2 to set
797          */
798         public void setAddress2(String address2) {
799                 this.address2 = address2;
800         }
801
802         /**
803          * @return the city
804          */
805         public String getCity() {
806                 return city;
807         }
808
809         /**
810          * @param city the city to set
811          */
812         public void setCity(String city) {
813                 this.city = city;
814         }
815
816         /**
817          * @return the state
818          */
819         public String getState() {
820                 return state;
821         }
822
823         /**
824          * @param state the state to set
825          */
826         public void setState(String state) {
827                 this.state = state;
828         }
829
830         /**
831          * @return the zipCode
832          */
833         public String getZipCode() {
834                 return zipCode;
835         }
836
837         /**
838          * @param zipCode the zipCode to set
839          */
840         public void setZipCode(String zipCode) {
841                 this.zipCode = zipCode;
842         }
843
844         /**
845          * @return the country
846          */
847         public String getCountry() {
848                 return country;
849         }
850
851         /**
852          * @param country the country to set
853          */
854         public void setCountry(String country) {
855                 this.country = country;
856         }
857
858         /**
859          * @return the orgManagerUserId
860          */
861         public String getOrgManagerUserId() {
862                 return orgManagerUserId;
863         }
864
865         /**
866          * @param orgManagerUserId the orgManagerUserId to set
867          */
868         public void setOrgManagerUserId(String orgManagerUserId) {
869                 this.orgManagerUserId = orgManagerUserId;
870         }
871
872         /**
873          * @return the locationClli
874          */
875         public String getLocationClli() {
876                 return locationClli;
877         }
878
879         /**
880          * @param locationClli the locationClli to set
881          */
882         public void setLocationClli(String locationClli) {
883                 this.locationClli = locationClli;
884         }
885
886         /**
887          * @return the businessCountryCode
888          */
889         public String getBusinessCountryCode() {
890                 return businessCountryCode;
891         }
892
893         /**
894          * @param businessCountryCode the businessCountryCode to set
895          */
896         public void setBusinessCountryCode(String businessCountryCode) {
897                 this.businessCountryCode = businessCountryCode;
898         }
899
900         /**
901          * @return the businessCountryName
902          */
903         public String getBusinessCountryName() {
904                 return businessCountryName;
905         }
906
907         /**
908          * @param businessCountryName the businessCountryName to set
909          */
910         public void setBusinessCountryName(String businessCountryName) {
911                 this.businessCountryName = businessCountryName;
912         }
913
914         /**
915          * @return the businessUnit
916          */
917         public String getBusinessUnit() {
918                 return businessUnit;
919         }
920
921         /**
922          * @param businessUnit the businessUnit to set
923          */
924         public void setBusinessUnit(String businessUnit) {
925                 this.businessUnit = businessUnit;
926         }
927
928         /**
929          * @return the businessUnitName
930          */
931         public String getBusinessUnitName() {
932                 return businessUnitName;
933         }
934
935         /**
936          * @param businessUnitName the businessUnitName to set
937          */
938         public void setBusinessUnitName(String businessUnitName) {
939                 this.businessUnitName = businessUnitName;
940         }
941
942         /**
943          * @return the department
944          */
945         public String getDepartment() {
946                 return department;
947         }
948
949         /**
950          * @param department the department to set
951          */
952         public void setDepartment(String department) {
953                 this.department = department;
954         }
955
956         /**
957          * @return the departmentName
958          */
959         public String getDepartmentName() {
960                 return departmentName;
961         }
962
963         /**
964          * @param departmentName the departmentName to set
965          */
966         public void setDepartmentName(String departmentName) {
967                 this.departmentName = departmentName;
968         }
969
970         /**
971          * @return the companyCode
972          */
973         public String getCompanyCode() {
974                 return companyCode;
975         }
976
977         /**
978          * @param companyCode the companyCode to set
979          */
980         public void setCompanyCode(String companyCode) {
981                 this.companyCode = companyCode;
982         }
983
984         /**
985          * @return the company
986          */
987         public String getCompany() {
988                 return company;
989         }
990
991         /**
992          * @param company the company to set
993          */
994         public void setCompany(String company) {
995                 this.company = company;
996         }
997
998         /**
999          * @return the zipCodeSuffix
1000          */
1001         public String getZipCodeSuffix() {
1002                 return zipCodeSuffix;
1003         }
1004
1005         /**
1006          * @param zipCodeSuffix the zipCodeSuffix to set
1007          */
1008         public void setZipCodeSuffix(String zipCodeSuffix) {
1009                 this.zipCodeSuffix = zipCodeSuffix;
1010         }
1011
1012         /**
1013          * @return the jobTitle
1014          */
1015         public String getJobTitle() {
1016                 return jobTitle;
1017         }
1018
1019         /**
1020          * @param jobTitle the jobTitle to set
1021          */
1022         public void setJobTitle(String jobTitle) {
1023                 this.jobTitle = jobTitle;
1024         }
1025
1026         /**
1027          * @return the commandChain
1028          */
1029         public String getCommandChain() {
1030                 return commandChain;
1031         }
1032
1033         /**
1034          * @param commandChain the commandChain to set
1035          */
1036         public void setCommandChain(String commandChain) {
1037                 this.commandChain = commandChain;
1038         }
1039
1040         /**
1041          * @return the siloStatus
1042          */
1043         public String getSiloStatus() {
1044                 return siloStatus;
1045         }
1046
1047         /**
1048          * @param siloStatus the siloStatus to set
1049          */
1050         public void setSiloStatus(String siloStatus) {
1051                 this.siloStatus = siloStatus;
1052         }
1053
1054         /**
1055          * @return the costCenter
1056          */
1057         public String getCostCenter() {
1058                 return costCenter;
1059         }
1060
1061         /**
1062          * @param costCenter the costCenter to set
1063          */
1064         public void setCostCenter(String costCenter) {
1065                 this.costCenter = costCenter;
1066         }
1067
1068         /**
1069          * @return the financialLocCode
1070          */
1071         public String getFinancialLocCode() {
1072                 return financialLocCode;
1073         }
1074
1075         /**
1076          * @param financialLocCode the financialLocCode to set
1077          */
1078         public void setFinancialLocCode(String financialLocCode) {
1079                 this.financialLocCode = financialLocCode;
1080         }
1081
1082         /**
1083          * @return the loginId
1084          */
1085         public String getLoginId() {
1086                 return loginId;
1087         }
1088
1089         /**
1090          * @param loginId the loginId to set
1091          */
1092         public void setLoginId(String loginId) {
1093                 this.loginId = loginId;
1094         }
1095
1096         /**
1097          * @return the loginPwd
1098          */
1099         public String getLoginPwd() {
1100                 return loginPwd;
1101         }
1102
1103         /**
1104          * @param loginPwd the loginPwd to set
1105          */
1106         public void setLoginPwd(String loginPwd) {
1107                 this.loginPwd = loginPwd;
1108         }
1109
1110         /**
1111          * @return the lastLoginDate
1112          */
1113         public Date getLastLoginDate() {
1114                 return lastLoginDate;
1115         }
1116
1117         /**
1118          * @param lastLoginDate the lastLoginDate to set
1119          */
1120         public void setLastLoginDate(Date lastLoginDate) {
1121                 this.lastLoginDate = lastLoginDate;
1122         }
1123
1124         /**
1125          * @return the active
1126          */
1127         public boolean isActive() {
1128                 return active;
1129         }
1130
1131         /**
1132          * @param active the active to set
1133          */
1134         public void setActive(boolean active) {
1135                 this.active = active;
1136         }
1137
1138         /**
1139          * @return the internal
1140          */
1141         public boolean isInternal() {
1142                 return internal;
1143         }
1144
1145         /**
1146          * @param internal the internal to set
1147          */
1148         public void setInternal(boolean internal) {
1149                 this.internal = internal;
1150         }
1151
1152         /**
1153          * @return the selectedProfileId
1154          */
1155         public Long getSelectedProfileId() {
1156                 return selectedProfileId;
1157         }
1158
1159         /**
1160          * @param selectedProfileId the selectedProfileId to set
1161          */
1162         public void setSelectedProfileId(Long selectedProfileId) {
1163                 this.selectedProfileId = selectedProfileId;
1164         }
1165
1166         /**
1167          * @return the timeZoneId
1168          */
1169         public Long getTimeZoneId() {
1170                 return timeZoneId;
1171         }
1172
1173         /**
1174          * @param timeZoneId the timeZoneId to set
1175          */
1176         public void setTimeZoneId(Long timeZoneId) {
1177                 this.timeZoneId = timeZoneId;
1178         }
1179
1180         /**
1181          * @return the online
1182          */
1183         public boolean isOnline() {
1184                 return online;
1185         }
1186
1187         /**
1188          * @param online the online to set
1189          */
1190         public void setOnline(boolean online) {
1191                 this.online = online;
1192         }
1193
1194         /**
1195          * @return the chatId
1196          */
1197         public String getChatId() {
1198                 return chatId;
1199         }
1200
1201         /**
1202          * @param chatId the chatId to set
1203          */
1204         public void setChatId(String chatId) {
1205                 this.chatId = chatId;
1206         }
1207
1208         /**
1209          * @return the userApps
1210          */
1211         public Set<CentralV2UserApp> getUserApps() {
1212                 return userApps;
1213         }
1214
1215         /**
1216          * @param userApps the userApps to set
1217          */
1218         public void setUserApps(Set<CentralV2UserApp> userApps) {
1219                 this.userApps = userApps;
1220         }
1221
1222         /**
1223          * @return the pseudoRoles
1224          */
1225         public Set<CentralV2Role> getPseudoRoles() {
1226                 return pseudoRoles;
1227         }
1228
1229         /**
1230          * @param pseudoRoles the pseudoRoles to set
1231          */
1232         public void setPseudoRoles(Set<CentralV2Role> pseudoRoles) {
1233                 this.pseudoRoles = pseudoRoles;
1234         }
1235
1236         @Override
1237         public int hashCode() {
1238                 final int prime = 31;
1239                 int result = 1;
1240                 result = prime * result + (active ? 1231 : 1237);
1241                 result = prime * result + ((address1 == null) ? 0 : address1.hashCode());
1242                 result = prime * result + ((address2 == null) ? 0 : address2.hashCode());
1243                 result = prime * result + ((addressId == null) ? 0 : addressId.hashCode());
1244                 result = prime * result + ((alertMethodCd == null) ? 0 : alertMethodCd.hashCode());
1245                 result = prime * result + ((businessCountryCode == null) ? 0 : businessCountryCode.hashCode());
1246                 result = prime * result + ((businessCountryName == null) ? 0 : businessCountryName.hashCode());
1247                 result = prime * result + ((businessUnit == null) ? 0 : businessUnit.hashCode());
1248                 result = prime * result + ((businessUnitName == null) ? 0 : businessUnitName.hashCode());
1249                 result = prime * result + ((cellular == null) ? 0 : cellular.hashCode());
1250                 result = prime * result + ((chatId == null) ? 0 : chatId.hashCode());
1251                 result = prime * result + ((city == null) ? 0 : city.hashCode());
1252                 result = prime * result + ((commandChain == null) ? 0 : commandChain.hashCode());
1253                 result = prime * result + ((company == null) ? 0 : company.hashCode());
1254                 result = prime * result + ((companyCode == null) ? 0 : companyCode.hashCode());
1255                 result = prime * result + ((costCenter == null) ? 0 : costCenter.hashCode());
1256                 result = prime * result + ((country == null) ? 0 : country.hashCode());
1257                 result = prime * result + ((created == null) ? 0 : created.hashCode());
1258                 result = prime * result + ((createdId == null) ? 0 : createdId.hashCode());
1259                 result = prime * result + ((department == null) ? 0 : department.hashCode());
1260                 result = prime * result + ((departmentName == null) ? 0 : departmentName.hashCode());
1261                 result = prime * result + ((email == null) ? 0 : email.hashCode());
1262                 result = prime * result + ((fax == null) ? 0 : fax.hashCode());
1263                 result = prime * result + ((financialLocCode == null) ? 0 : financialLocCode.hashCode());
1264                 result = prime * result + ((firstName == null) ? 0 : firstName.hashCode());
1265                 result = prime * result + ((hrid == null) ? 0 : hrid.hashCode());
1266                 result = prime * result + ((id == null) ? 0 : id.hashCode());
1267                 result = prime * result + (internal ? 1231 : 1237);
1268                 result = prime * result + ((jobTitle == null) ? 0 : jobTitle.hashCode());
1269                 result = prime * result + ((lastLoginDate == null) ? 0 : lastLoginDate.hashCode());
1270                 result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
1271                 result = prime * result + ((locationClli == null) ? 0 : locationClli.hashCode());
1272                 result = prime * result + ((loginId == null) ? 0 : loginId.hashCode());
1273                 result = prime * result + ((loginPwd == null) ? 0 : loginPwd.hashCode());
1274                 result = prime * result + ((managerId == null) ? 0 : managerId.hashCode());
1275                 result = prime * result + ((middleInitial == null) ? 0 : middleInitial.hashCode());
1276                 result = prime * result + ((modified == null) ? 0 : modified.hashCode());
1277                 result = prime * result + ((modifiedId == null) ? 0 : modifiedId.hashCode());
1278                 result = prime * result + (online ? 1231 : 1237);
1279                 result = prime * result + ((orgCode == null) ? 0 : orgCode.hashCode());
1280                 result = prime * result + ((orgId == null) ? 0 : orgId.hashCode());
1281                 result = prime * result + ((orgManagerUserId == null) ? 0 : orgManagerUserId.hashCode());
1282                 result = prime * result + ((orgUserId == null) ? 0 : orgUserId.hashCode());
1283                 result = prime * result + ((phone == null) ? 0 : phone.hashCode());
1284                 result = prime * result + ((pseudoRoles == null) ? 0 : pseudoRoles.hashCode());
1285                 result = prime * result + ((rowNum == null) ? 0 : rowNum.hashCode());
1286                 result = prime * result + ((selectedProfileId == null) ? 0 : selectedProfileId.hashCode());
1287                 result = prime * result + ((siloStatus == null) ? 0 : siloStatus.hashCode());
1288                 result = prime * result + ((state == null) ? 0 : state.hashCode());
1289                 result = prime * result + ((timeZoneId == null) ? 0 : timeZoneId.hashCode());
1290                 result = prime * result + ((userApps == null) ? 0 : userApps.hashCode());
1291                 result = prime * result + ((zipCode == null) ? 0 : zipCode.hashCode());
1292                 result = prime * result + ((zipCodeSuffix == null) ? 0 : zipCodeSuffix.hashCode());
1293                 return result;
1294         }
1295
1296         @Override
1297         public boolean equals(Object obj) {
1298                 if (this == obj)
1299                         return true;
1300                 if (obj == null)
1301                         return false;
1302                 if (getClass() != obj.getClass())
1303                         return false;
1304                 CentralV2User other = (CentralV2User) obj;
1305                 if (active != other.active)
1306                         return false;
1307                 if (address1 == null) {
1308                         if (other.address1 != null)
1309                                 return false;
1310                 } else if (!address1.equals(other.address1))
1311                         return false;
1312                 if (address2 == null) {
1313                         if (other.address2 != null)
1314                                 return false;
1315                 } else if (!address2.equals(other.address2))
1316                         return false;
1317                 if (addressId == null) {
1318                         if (other.addressId != null)
1319                                 return false;
1320                 } else if (!addressId.equals(other.addressId))
1321                         return false;
1322                 if (alertMethodCd == null) {
1323                         if (other.alertMethodCd != null)
1324                                 return false;
1325                 } else if (!alertMethodCd.equals(other.alertMethodCd))
1326                         return false;
1327                 if (businessCountryCode == null) {
1328                         if (other.businessCountryCode != null)
1329                                 return false;
1330                 } else if (!businessCountryCode.equals(other.businessCountryCode))
1331                         return false;
1332                 if (businessCountryName == null) {
1333                         if (other.businessCountryName != null)
1334                                 return false;
1335                 } else if (!businessCountryName.equals(other.businessCountryName))
1336                         return false;
1337                 if (businessUnit == null) {
1338                         if (other.businessUnit != null)
1339                                 return false;
1340                 } else if (!businessUnit.equals(other.businessUnit))
1341                         return false;
1342                 if (businessUnitName == null) {
1343                         if (other.businessUnitName != null)
1344                                 return false;
1345                 } else if (!businessUnitName.equals(other.businessUnitName))
1346                         return false;
1347                 if (cellular == null) {
1348                         if (other.cellular != null)
1349                                 return false;
1350                 } else if (!cellular.equals(other.cellular))
1351                         return false;
1352                 if (chatId == null) {
1353                         if (other.chatId != null)
1354                                 return false;
1355                 } else if (!chatId.equals(other.chatId))
1356                         return false;
1357                 if (city == null) {
1358                         if (other.city != null)
1359                                 return false;
1360                 } else if (!city.equals(other.city))
1361                         return false;
1362                 if (commandChain == null) {
1363                         if (other.commandChain != null)
1364                                 return false;
1365                 } else if (!commandChain.equals(other.commandChain))
1366                         return false;
1367                 if (company == null) {
1368                         if (other.company != null)
1369                                 return false;
1370                 } else if (!company.equals(other.company))
1371                         return false;
1372                 if (companyCode == null) {
1373                         if (other.companyCode != null)
1374                                 return false;
1375                 } else if (!companyCode.equals(other.companyCode))
1376                         return false;
1377                 if (costCenter == null) {
1378                         if (other.costCenter != null)
1379                                 return false;
1380                 } else if (!costCenter.equals(other.costCenter))
1381                         return false;
1382                 if (country == null) {
1383                         if (other.country != null)
1384                                 return false;
1385                 } else if (!country.equals(other.country))
1386                         return false;
1387                 if (created == null) {
1388                         if (other.created != null)
1389                                 return false;
1390                 } else if (!created.equals(other.created))
1391                         return false;
1392                 if (createdId == null) {
1393                         if (other.createdId != null)
1394                                 return false;
1395                 } else if (!createdId.equals(other.createdId))
1396                         return false;
1397                 if (department == null) {
1398                         if (other.department != null)
1399                                 return false;
1400                 } else if (!department.equals(other.department))
1401                         return false;
1402                 if (departmentName == null) {
1403                         if (other.departmentName != null)
1404                                 return false;
1405                 } else if (!departmentName.equals(other.departmentName))
1406                         return false;
1407                 if (email == null) {
1408                         if (other.email != null)
1409                                 return false;
1410                 } else if (!email.equals(other.email))
1411                         return false;
1412                 if (fax == null) {
1413                         if (other.fax != null)
1414                                 return false;
1415                 } else if (!fax.equals(other.fax))
1416                         return false;
1417                 if (financialLocCode == null) {
1418                         if (other.financialLocCode != null)
1419                                 return false;
1420                 } else if (!financialLocCode.equals(other.financialLocCode))
1421                         return false;
1422                 if (firstName == null) {
1423                         if (other.firstName != null)
1424                                 return false;
1425                 } else if (!firstName.equals(other.firstName))
1426                         return false;
1427                 if (hrid == null) {
1428                         if (other.hrid != null)
1429                                 return false;
1430                 } else if (!hrid.equals(other.hrid))
1431                         return false;
1432                 if (id == null) {
1433                         if (other.id != null)
1434                                 return false;
1435                 } else if (!id.equals(other.id))
1436                         return false;
1437                 if (internal != other.internal)
1438                         return false;
1439                 if (jobTitle == null) {
1440                         if (other.jobTitle != null)
1441                                 return false;
1442                 } else if (!jobTitle.equals(other.jobTitle))
1443                         return false;
1444                 if (lastLoginDate == null) {
1445                         if (other.lastLoginDate != null)
1446                                 return false;
1447                 } else if (!lastLoginDate.equals(other.lastLoginDate))
1448                         return false;
1449                 if (lastName == null) {
1450                         if (other.lastName != null)
1451                                 return false;
1452                 } else if (!lastName.equals(other.lastName))
1453                         return false;
1454                 if (locationClli == null) {
1455                         if (other.locationClli != null)
1456                                 return false;
1457                 } else if (!locationClli.equals(other.locationClli))
1458                         return false;
1459                 if (loginId == null) {
1460                         if (other.loginId != null)
1461                                 return false;
1462                 } else if (!loginId.equals(other.loginId))
1463                         return false;
1464                 if (loginPwd == null) {
1465                         if (other.loginPwd != null)
1466                                 return false;
1467                 } else if (!loginPwd.equals(other.loginPwd))
1468                         return false;
1469                 if (managerId == null) {
1470                         if (other.managerId != null)
1471                                 return false;
1472                 } else if (!managerId.equals(other.managerId))
1473                         return false;
1474                 if (middleInitial == null) {
1475                         if (other.middleInitial != null)
1476                                 return false;
1477                 } else if (!middleInitial.equals(other.middleInitial))
1478                         return false;
1479                 if (modified == null) {
1480                         if (other.modified != null)
1481                                 return false;
1482                 } else if (!modified.equals(other.modified))
1483                         return false;
1484                 if (modifiedId == null) {
1485                         if (other.modifiedId != null)
1486                                 return false;
1487                 } else if (!modifiedId.equals(other.modifiedId))
1488                         return false;
1489                 if (online != other.online)
1490                         return false;
1491                 if (orgCode == null) {
1492                         if (other.orgCode != null)
1493                                 return false;
1494                 } else if (!orgCode.equals(other.orgCode))
1495                         return false;
1496                 if (orgId == null) {
1497                         if (other.orgId != null)
1498                                 return false;
1499                 } else if (!orgId.equals(other.orgId))
1500                         return false;
1501                 if (orgManagerUserId == null) {
1502                         if (other.orgManagerUserId != null)
1503                                 return false;
1504                 } else if (!orgManagerUserId.equals(other.orgManagerUserId))
1505                         return false;
1506                 if (orgUserId == null) {
1507                         if (other.orgUserId != null)
1508                                 return false;
1509                 } else if (!orgUserId.equals(other.orgUserId))
1510                         return false;
1511                 if (phone == null) {
1512                         if (other.phone != null)
1513                                 return false;
1514                 } else if (!phone.equals(other.phone))
1515                         return false;
1516                 if (pseudoRoles == null) {
1517                         if (other.pseudoRoles != null)
1518                                 return false;
1519                 } else if (!pseudoRoles.equals(other.pseudoRoles))
1520                         return false;
1521                 if (rowNum == null) {
1522                         if (other.rowNum != null)
1523                                 return false;
1524                 } else if (!rowNum.equals(other.rowNum))
1525                         return false;
1526                 if (selectedProfileId == null) {
1527                         if (other.selectedProfileId != null)
1528                                 return false;
1529                 } else if (!selectedProfileId.equals(other.selectedProfileId))
1530                         return false;
1531                 if (siloStatus == null) {
1532                         if (other.siloStatus != null)
1533                                 return false;
1534                 } else if (!siloStatus.equals(other.siloStatus))
1535                         return false;
1536                 if (state == null) {
1537                         if (other.state != null)
1538                                 return false;
1539                 } else if (!state.equals(other.state))
1540                         return false;
1541                 if (timeZoneId == null) {
1542                         if (other.timeZoneId != null)
1543                                 return false;
1544                 } else if (!timeZoneId.equals(other.timeZoneId))
1545                         return false;
1546                 if (userApps == null) {
1547                         if (other.userApps != null)
1548                                 return false;
1549                 } else if (!userApps.equals(other.userApps))
1550                         return false;
1551                 if (zipCode == null) {
1552                         if (other.zipCode != null)
1553                                 return false;
1554                 } else if (!zipCode.equals(other.zipCode))
1555                         return false;
1556                 if (zipCodeSuffix == null) {
1557                         if (other.zipCodeSuffix != null)
1558                                 return false;
1559                 } else if (!zipCodeSuffix.equals(other.zipCodeSuffix))
1560                         return false;
1561                 return true;
1562         }
1563
1564         
1565         
1566 }