1485af610e59c47146a53987eb0d72c0b10659b4
[portal.git] / ecomp-portal-BE-common / src / main / java / org / onap / portalapp / portal / transport / CentralUser.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 import java.util.TreeSet;
44
45 public class CentralUser implements Serializable {
46
47         private static final long serialVersionUID = 7060454665330579923L;
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
55         private Long orgId;
56         private Long managerId;
57         private String firstName;
58         private String middleInitial;
59         private String lastName;
60         private String phone;
61         private String fax;
62         private String cellular;
63         private String email;
64         private Long addressId;
65         private String alertMethodCd;
66         private String hrid;
67         private String orgUserId;
68         private String orgCode;
69         private String address1;
70         private String address2;
71         private String city;
72         private String state;
73         private String zipCode;
74         private String country;
75         private String orgManagerUserId;
76         private String locationClli;
77         private String businessCountryCode;
78         private String businessCountryName;
79         private String businessUnit;
80         private String businessUnitName;
81         private String department;
82         private String departmentName;
83         private String companyCode;
84         private String company;
85         private String zipCodeSuffix;
86         private String jobTitle;
87         private String commandChain;
88         private String siloStatus;
89         private String costCenter;
90         private String financialLocCode;
91
92         private String loginId;
93         private String loginPwd;
94         private Date lastLoginDate;
95         private boolean active;
96         private boolean internal;
97         private Long selectedProfileId;
98         private Long timeZoneId;
99         private boolean online;
100         private String chatId;
101
102         private Set<CentralUserApp> userApps = new TreeSet<>();
103         private Set<CentralRole> pseudoRoles = new TreeSet<>();
104
105         public CentralUser(Long id, Date created, Date modified, Long createdId, Long modifiedId, Long rowNum, Long orgId,
106                         Long managerId, String firstName, String middleInitial, String lastName, String phone, String fax,
107                         String cellular, String email, Long addressId, String alertMethodCd, String hrid, String orgUserId,
108                         String orgCode, String address1, String address2, String city, String state, String zipCode, String country,
109                         String orgManagerUserId, String locationClli, String businessCountryCode, String businessCountryName,
110                         String businessUnit, String businessUnitName, String department, String departmentName, String companyCode,
111                         String company, String zipCodeSuffix, String jobTitle, String commandChain, String siloStatus,
112                         String costCenter, String financialLocCode, String loginId, String loginPwd, Date lastLoginDate,
113                         boolean active, boolean internal, Long selectedProfileId, Long timeZoneId, boolean online, String chatId,
114                         Set<CentralUserApp> userApps) {
115                 super();
116                 this.id = id;
117                 this.created = created;
118                 this.modified = modified;
119                 this.createdId = createdId;
120                 this.modifiedId = modifiedId;
121                 this.rowNum = rowNum;
122                 this.orgId = orgId;
123                 this.managerId = managerId;
124                 this.firstName = firstName;
125                 this.middleInitial = middleInitial;
126                 this.lastName = lastName;
127                 this.phone = phone;
128                 this.fax = fax;
129                 this.cellular = cellular;
130                 this.email = email;
131                 this.addressId = addressId;
132                 this.alertMethodCd = alertMethodCd;
133                 this.hrid = hrid;
134                 this.orgUserId = orgUserId;
135                 this.orgCode = orgCode;
136                 this.address1 = address1;
137                 this.address2 = address2;
138                 this.city = city;
139                 this.state = state;
140                 this.zipCode = zipCode;
141                 this.country = country;
142                 this.orgManagerUserId = orgManagerUserId;
143                 this.locationClli = locationClli;
144                 this.businessCountryCode = businessCountryCode;
145                 this.businessCountryName = businessCountryName;
146                 this.businessUnit = businessUnit;
147                 this.businessUnitName = businessUnitName;
148                 this.department = department;
149                 this.departmentName = departmentName;
150                 this.companyCode = companyCode;
151                 this.company = company;
152                 this.zipCodeSuffix = zipCodeSuffix;
153                 this.jobTitle = jobTitle;
154                 this.commandChain = commandChain;
155                 this.siloStatus = siloStatus;
156                 this.costCenter = costCenter;
157                 this.financialLocCode = financialLocCode;
158                 this.loginId = loginId;
159                 this.loginPwd = loginPwd;
160                 this.lastLoginDate = lastLoginDate;
161                 this.active = active;
162                 this.internal = internal;
163                 this.selectedProfileId = selectedProfileId;
164                 this.timeZoneId = timeZoneId;
165                 this.online = online;
166                 this.chatId = chatId;
167                 this.userApps = userApps;
168         }
169
170         /**
171          * @return the id
172          */
173         public Long getId() {
174                 return id;
175         }
176
177         /**
178          * @param id
179          *            the id to set
180          */
181         public void setId(Long id) {
182                 this.id = id;
183         }
184
185         /**
186          * @return the created
187          */
188         public Date getCreated() {
189                 return created;
190         }
191
192         /**
193          * @param created
194          *            the created to set
195          */
196         public void setCreated(Date created) {
197                 this.created = created;
198         }
199
200         /**
201          * @return the modified
202          */
203         public Date getModified() {
204                 return modified;
205         }
206
207         /**
208          * @param modified
209          *            the modified to set
210          */
211         public void setModified(Date modified) {
212                 this.modified = modified;
213         }
214
215         /**
216          * @return the createdId
217          */
218         public Long getCreatedId() {
219                 return createdId;
220         }
221
222         /**
223          * @param createdId
224          *            the createdId to set
225          */
226         public void setCreatedId(Long createdId) {
227                 this.createdId = createdId;
228         }
229
230         /**
231          * @return the modifiedId
232          */
233         public Long getModifiedId() {
234                 return modifiedId;
235         }
236
237         /**
238          * @param modifiedId
239          *            the modifiedId to set
240          */
241         public void setModifiedId(Long modifiedId) {
242                 this.modifiedId = modifiedId;
243         }
244
245         /**
246          * @return the rowNum
247          */
248         public Long getRowNum() {
249                 return rowNum;
250         }
251
252         /**
253          * @param rowNum
254          *            the rowNum to set
255          */
256         public void setRowNum(Long rowNum) {
257                 this.rowNum = rowNum;
258         }
259
260         /**
261          * @return the orgId
262          */
263         public Long getOrgId() {
264                 return orgId;
265         }
266
267         /**
268          * @param orgId
269          *            the orgId to set
270          */
271         public void setOrgId(Long orgId) {
272                 this.orgId = orgId;
273         }
274
275         /**
276          * @return the managerId
277          */
278         public Long getManagerId() {
279                 return managerId;
280         }
281
282         /**
283          * @param managerId
284          *            the managerId to set
285          */
286         public void setManagerId(Long managerId) {
287                 this.managerId = managerId;
288         }
289
290         /**
291          * @return the firstName
292          */
293         public String getFirstName() {
294                 return firstName;
295         }
296
297         /**
298          * @param firstName
299          *            the firstName to set
300          */
301         public void setFirstName(String firstName) {
302                 this.firstName = firstName;
303         }
304
305         /**
306          * @return the middleInitial
307          */
308         public String getMiddleInitial() {
309                 return middleInitial;
310         }
311
312         /**
313          * @param middleInitial
314          *            the middleInitial to set
315          */
316         public void setMiddleInitial(String middleInitial) {
317                 this.middleInitial = middleInitial;
318         }
319
320         /**
321          * @return the lastName
322          */
323         public String getLastName() {
324                 return lastName;
325         }
326
327         /**
328          * @param lastName
329          *            the lastName to set
330          */
331         public void setLastName(String lastName) {
332                 this.lastName = lastName;
333         }
334
335         /**
336          * @return the phone
337          */
338         public String getPhone() {
339                 return phone;
340         }
341
342         /**
343          * @param phone
344          *            the phone to set
345          */
346         public void setPhone(String phone) {
347                 this.phone = phone;
348         }
349
350         /**
351          * @return the fax
352          */
353         public String getFax() {
354                 return fax;
355         }
356
357         /**
358          * @param fax
359          *            the fax to set
360          */
361         public void setFax(String fax) {
362                 this.fax = fax;
363         }
364
365         /**
366          * @return the cellular
367          */
368         public String getCellular() {
369                 return cellular;
370         }
371
372         /**
373          * @param cellular
374          *            the cellular to set
375          */
376         public void setCellular(String cellular) {
377                 this.cellular = cellular;
378         }
379
380         /**
381          * @return the email
382          */
383         public String getEmail() {
384                 return email;
385         }
386
387         /**
388          * @param email
389          *            the email to set
390          */
391         public void setEmail(String email) {
392                 this.email = email;
393         }
394
395         /**
396          * @return the addressId
397          */
398         public Long getAddressId() {
399                 return addressId;
400         }
401
402         /**
403          * @param addressId
404          *            the addressId to set
405          */
406         public void setAddressId(Long addressId) {
407                 this.addressId = addressId;
408         }
409
410         /**
411          * @return the alertMethodCd
412          */
413         public String getAlertMethodCd() {
414                 return alertMethodCd;
415         }
416
417         /**
418          * @param alertMethodCd
419          *            the alertMethodCd to set
420          */
421         public void setAlertMethodCd(String alertMethodCd) {
422                 this.alertMethodCd = alertMethodCd;
423         }
424
425         /**
426          * @return the hrid
427          */
428         public String getHrid() {
429                 return hrid;
430         }
431
432         /**
433          * @param hrid
434          *            the hrid to set
435          */
436         public void setHrid(String hrid) {
437                 this.hrid = hrid;
438         }
439
440         /**
441          * @return the orgUserId
442          */
443         public String getOrgUserId() {
444                 return orgUserId;
445         }
446
447         /**
448          * @param orgUserId
449          *            the orgUserId to set
450          */
451         public void setOrgUserId(String orgUserId) {
452                 this.orgUserId = orgUserId;
453         }
454
455         /**
456          * @return the orgCode
457          */
458         public String getOrgCode() {
459                 return orgCode;
460         }
461
462         /**
463          * @param orgCode
464          *            the orgCode to set
465          */
466         public void setOrgCode(String orgCode) {
467                 this.orgCode = orgCode;
468         }
469
470         /**
471          * @return the address1
472          */
473         public String getAddress1() {
474                 return address1;
475         }
476
477         /**
478          * @param address1
479          *            the address1 to set
480          */
481         public void setAddress1(String address1) {
482                 this.address1 = address1;
483         }
484
485         /**
486          * @return the address2
487          */
488         public String getAddress2() {
489                 return address2;
490         }
491
492         /**
493          * @param address2
494          *            the address2 to set
495          */
496         public void setAddress2(String address2) {
497                 this.address2 = address2;
498         }
499
500         /**
501          * @return the city
502          */
503         public String getCity() {
504                 return city;
505         }
506
507         /**
508          * @param city
509          *            the city to set
510          */
511         public void setCity(String city) {
512                 this.city = city;
513         }
514
515         /**
516          * @return the state
517          */
518         public String getState() {
519                 return state;
520         }
521
522         /**
523          * @param state
524          *            the state to set
525          */
526         public void setState(String state) {
527                 this.state = state;
528         }
529
530         /**
531          * @return the zipCode
532          */
533         public String getZipCode() {
534                 return zipCode;
535         }
536
537         /**
538          * @param zipCode
539          *            the zipCode to set
540          */
541         public void setZipCode(String zipCode) {
542                 this.zipCode = zipCode;
543         }
544
545         /**
546          * @return the country
547          */
548         public String getCountry() {
549                 return country;
550         }
551
552         /**
553          * @param country
554          *            the country to set
555          */
556         public void setCountry(String country) {
557                 this.country = country;
558         }
559
560         /**
561          * @return the orgManagerUserId
562          */
563         public String getOrgManagerUserId() {
564                 return orgManagerUserId;
565         }
566
567         /**
568          * @param orgManagerUserId
569          *            the orgManagerUserId to set
570          */
571         public void setOrgManagerUserId(String orgManagerUserId) {
572                 this.orgManagerUserId = orgManagerUserId;
573         }
574
575         /**
576          * @return the locationClli
577          */
578         public String getLocationClli() {
579                 return locationClli;
580         }
581
582         /**
583          * @param locationClli
584          *            the locationClli to set
585          */
586         public void setLocationClli(String locationClli) {
587                 this.locationClli = locationClli;
588         }
589
590         /**
591          * @return the businessCountryCode
592          */
593         public String getBusinessCountryCode() {
594                 return businessCountryCode;
595         }
596
597         /**
598          * @param businessCountryCode
599          *            the businessCountryCode to set
600          */
601         public void setBusinessCountryCode(String businessCountryCode) {
602                 this.businessCountryCode = businessCountryCode;
603         }
604
605         /**
606          * @return the businessCountryName
607          */
608         public String getBusinessCountryName() {
609                 return businessCountryName;
610         }
611
612         /**
613          * @param businessCountryName
614          *            the businessCountryName to set
615          */
616         public void setBusinessCountryName(String businessCountryName) {
617                 this.businessCountryName = businessCountryName;
618         }
619
620         /**
621          * @return the businessUnit
622          */
623         public String getBusinessUnit() {
624                 return businessUnit;
625         }
626
627         /**
628          * @param businessUnit
629          *            the businessUnit to set
630          */
631         public void setBusinessUnit(String businessUnit) {
632                 this.businessUnit = businessUnit;
633         }
634
635         /**
636          * @return the businessUnitName
637          */
638         public String getBusinessUnitName() {
639                 return businessUnitName;
640         }
641
642         /**
643          * @param businessUnitName
644          *            the businessUnitName to set
645          */
646         public void setBusinessUnitName(String businessUnitName) {
647                 this.businessUnitName = businessUnitName;
648         }
649
650         /**
651          * @return the department
652          */
653         public String getDepartment() {
654                 return department;
655         }
656
657         /**
658          * @param department
659          *            the department to set
660          */
661         public void setDepartment(String department) {
662                 this.department = department;
663         }
664
665         /**
666          * @return the departmentName
667          */
668         public String getDepartmentName() {
669                 return departmentName;
670         }
671
672         /**
673          * @param departmentName
674          *            the departmentName to set
675          */
676         public void setDepartmentName(String departmentName) {
677                 this.departmentName = departmentName;
678         }
679
680         /**
681          * @return the companyCode
682          */
683         public String getCompanyCode() {
684                 return companyCode;
685         }
686
687         /**
688          * @param companyCode
689          *            the companyCode to set
690          */
691         public void setCompanyCode(String companyCode) {
692                 this.companyCode = companyCode;
693         }
694
695         /**
696          * @return the company
697          */
698         public String getCompany() {
699                 return company;
700         }
701
702         /**
703          * @param company
704          *            the company to set
705          */
706         public void setCompany(String company) {
707                 this.company = company;
708         }
709
710         /**
711          * @return the zipCodeSuffix
712          */
713         public String getZipCodeSuffix() {
714                 return zipCodeSuffix;
715         }
716
717         /**
718          * @param zipCodeSuffix
719          *            the zipCodeSuffix to set
720          */
721         public void setZipCodeSuffix(String zipCodeSuffix) {
722                 this.zipCodeSuffix = zipCodeSuffix;
723         }
724
725         /**
726          * @return the jobTitle
727          */
728         public String getJobTitle() {
729                 return jobTitle;
730         }
731
732         /**
733          * @param jobTitle
734          *            the jobTitle to set
735          */
736         public void setJobTitle(String jobTitle) {
737                 this.jobTitle = jobTitle;
738         }
739
740         /**
741          * @return the commandChain
742          */
743         public String getCommandChain() {
744                 return commandChain;
745         }
746
747         /**
748          * @param commandChain
749          *            the commandChain to set
750          */
751         public void setCommandChain(String commandChain) {
752                 this.commandChain = commandChain;
753         }
754
755         /**
756          * @return the siloStatus
757          */
758         public String getSiloStatus() {
759                 return siloStatus;
760         }
761
762         /**
763          * @param siloStatus
764          *            the siloStatus to set
765          */
766         public void setSiloStatus(String siloStatus) {
767                 this.siloStatus = siloStatus;
768         }
769
770         /**
771          * @return the costCenter
772          */
773         public String getCostCenter() {
774                 return costCenter;
775         }
776
777         /**
778          * @param costCenter
779          *            the costCenter to set
780          */
781         public void setCostCenter(String costCenter) {
782                 this.costCenter = costCenter;
783         }
784
785         /**
786          * @return the financialLocCode
787          */
788         public String getFinancialLocCode() {
789                 return financialLocCode;
790         }
791
792         /**
793          * @param financialLocCode
794          *            the financialLocCode to set
795          */
796         public void setFinancialLocCode(String financialLocCode) {
797                 this.financialLocCode = financialLocCode;
798         }
799
800         /**
801          * @return the loginId
802          */
803         public String getLoginId() {
804                 return loginId;
805         }
806
807         /**
808          * @param loginId
809          *            the loginId to set
810          */
811         public void setLoginId(String loginId) {
812                 this.loginId = loginId;
813         }
814
815         /**
816          * @return the loginPwd
817          */
818         public String getLoginPwd() {
819                 return loginPwd;
820         }
821
822         /**
823          * @param loginPwd
824          *            the loginPwd to set
825          */
826         public void setLoginPwd(String loginPwd) {
827                 this.loginPwd = loginPwd;
828         }
829
830         /**
831          * @return the lastLoginDate
832          */
833         public Date getLastLoginDate() {
834                 return lastLoginDate;
835         }
836
837         /**
838          * @param lastLoginDate
839          *            the lastLoginDate to set
840          */
841         public void setLastLoginDate(Date lastLoginDate) {
842                 this.lastLoginDate = lastLoginDate;
843         }
844
845         /**
846          * @return the active
847          */
848         public boolean isActive() {
849                 return active;
850         }
851
852         /**
853          * @param active
854          *            the active to set
855          */
856         public void setActive(boolean active) {
857                 this.active = active;
858         }
859
860         /**
861          * @return the internal
862          */
863         public boolean isInternal() {
864                 return internal;
865         }
866
867         /**
868          * @param internal
869          *            the internal to set
870          */
871         public void setInternal(boolean internal) {
872                 this.internal = internal;
873         }
874
875         /**
876          * @return the selectedProfileId
877          */
878         public Long getSelectedProfileId() {
879                 return selectedProfileId;
880         }
881
882         /**
883          * @param selectedProfileId
884          *            the selectedProfileId to set
885          */
886         public void setSelectedProfileId(Long selectedProfileId) {
887                 this.selectedProfileId = selectedProfileId;
888         }
889
890         /**
891          * @return the timeZoneId
892          */
893         public Long getTimeZoneId() {
894                 return timeZoneId;
895         }
896
897         /**
898          * @param timeZoneId
899          *            the timeZoneId to set
900          */
901         public void setTimeZoneId(Long timeZoneId) {
902                 this.timeZoneId = timeZoneId;
903         }
904
905         /**
906          * @return the online
907          */
908         public boolean isOnline() {
909                 return online;
910         }
911
912         /**
913          * @param online
914          *            the online to set
915          */
916         public void setOnline(boolean online) {
917                 this.online = online;
918         }
919
920         /**
921          * @return the chatId
922          */
923         public String getChatId() {
924                 return chatId;
925         }
926
927         /**
928          * @param chatId
929          *            the chatId to set
930          */
931         public void setChatId(String chatId) {
932                 this.chatId = chatId;
933         }
934
935         /**
936          * @return the userApps
937          */
938         public Set<CentralUserApp> getUserApps() {
939                 return userApps;
940         }
941
942         /**
943          * @param userApps
944          *            the userApps to set
945          */
946         public void setUserApps(Set<CentralUserApp> userApps) {
947                 this.userApps = userApps;
948         }
949
950         /**
951          * @return the pseudoRoles
952          */
953         public Set<CentralRole> getPseudoRoles() {
954                 return pseudoRoles;
955         }
956
957         /**
958          * @param pseudoRoles
959          *            the pseudoRoles to set
960          */
961         public void setPseudoRoles(Set<CentralRole> pseudoRoles) {
962                 this.pseudoRoles = pseudoRoles;
963         }
964
965 }