2 * ============LICENSE_START==========================================
4 * ===================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ===================================================================
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
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
26 * https://creativecommons.org/licenses/by/4.0/
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.
34 * ============LICENSE_END============================================
38 package org.onap.portalapp.portal.transport;
40 import java.io.Serializable;
41 import java.util.Date;
43 import java.util.TreeSet;
45 public class CentralUser implements Serializable {
47 private static final long serialVersionUID = 7060454665330579923L;
50 private Date modified;
51 private Long createdId;
52 private Long modifiedId;
56 private Long managerId;
57 private String firstName;
58 private String middleInitial;
59 private String lastName;
62 private String cellular;
64 private Long addressId;
65 private String alertMethodCd;
67 private String orgUserId;
68 private String orgCode;
69 private String address1;
70 private String address2;
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;
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;
102 private Set<CentralUserApp> userApps = new TreeSet<>();
103 private Set<CentralRole> pseudoRoles = new TreeSet<>();
105 public CentralUser(CentralUserBuilder builder) {
107 this.id = builder.id;
108 this.created = builder.created;
109 this.modified = builder.modified;
110 this.createdId = builder.createdId;
111 this.modifiedId = builder.modifiedId;
112 this.rowNum = builder.rowNum;
113 this.orgId = builder.orgId;
114 this.managerId = builder.managerId;
115 this.firstName = builder.firstName;
116 this.middleInitial = builder.middleInitial;
117 this.lastName = builder.lastName;
118 this.phone = builder.phone;
119 this.fax = builder.fax;
120 this.cellular = builder.cellular;
121 this.email = builder.email;
122 this.addressId = builder.addressId;
123 this.alertMethodCd = builder.alertMethodCd;
124 this.hrid = builder.hrid;
125 this.orgUserId = builder.orgUserId;
126 this.orgCode = builder.orgCode;
127 this.address1 = builder.address1;
128 this.address2 = builder.address2;
129 this.city = builder.city;
130 this.state = builder.state;
131 this.zipCode = builder.zipCode;
132 this.country = builder.country;
133 this.orgManagerUserId = builder.orgManagerUserId;
134 this.locationClli = builder.locationClli;
135 this.businessCountryCode = builder.businessCountryCode;
136 this.businessCountryName = builder.businessCountryName;
137 this.businessUnit = builder.businessUnit;
138 this.businessUnitName = builder.businessUnitName;
139 this.department = builder.department;
140 this.departmentName = builder.departmentName;
141 this.companyCode = builder.companyCode;
142 this.company = builder.company;
143 this.zipCodeSuffix = builder.zipCodeSuffix;
144 this.jobTitle = builder.jobTitle;
145 this.commandChain = builder.commandChain;
146 this.siloStatus = builder.siloStatus;
147 this.costCenter = builder.costCenter;
148 this.financialLocCode = builder.financialLocCode;
149 this.loginId = builder.loginId;
150 this.loginPwd = builder.loginPwd;
151 this.lastLoginDate = builder.lastLoginDate;
152 this.active = builder.active;
153 this.internal = builder.internal;
154 this.selectedProfileId = builder.selectedProfileId;
155 this.timeZoneId = builder.timeZoneId;
156 this.online = builder.online;
157 this.chatId = builder.chatId;
158 this.userApps = builder.userApps;
161 public static class CentralUserBuilder {
163 private Date created;
164 private Date modified;
165 private Long createdId;
166 private Long modifiedId;
169 private Long managerId;
170 private String firstName;
171 private String middleInitial;
172 private String lastName;
173 private String phone;
175 private String cellular;
176 private String email;
177 private Long addressId;
178 private String alertMethodCd;
180 private String orgUserId;
181 private String orgCode;
182 private String address1;
183 private String address2;
185 private String state;
186 private String zipCode;
187 private String country;
188 private String orgManagerUserId;
189 private String locationClli;
190 private String businessCountryCode;
191 private String businessCountryName;
192 private String businessUnit;
193 private String businessUnitName;
194 private String department;
195 private String departmentName;
196 private String companyCode;
197 private String company;
198 private String zipCodeSuffix;
199 private String jobTitle;
200 private String commandChain;
201 private String siloStatus;
202 private String costCenter;
203 private String financialLocCode;
204 private String loginId;
205 private String loginPwd;
206 private Date lastLoginDate;
207 private boolean active;
208 private boolean internal;
209 private Long selectedProfileId;
210 private Long timeZoneId;
211 private boolean online;
212 private String chatId;
213 private Set<CentralUserApp> userApps;
215 public CentralUserBuilder setId(Long id) {
220 public CentralUserBuilder setCreated(Date created) {
221 this.created = created;
225 public CentralUserBuilder setModified(Date modified) {
226 this.modified = modified;
230 public CentralUserBuilder setCreatedId(Long createdId) {
231 this.createdId = createdId;
235 public CentralUserBuilder setModifiedId(Long modifiedId) {
236 this.modifiedId = modifiedId;
240 public CentralUserBuilder setRowNum(Long rowNum) {
241 this.rowNum = rowNum;
245 public CentralUserBuilder setOrgId(Long orgId) {
250 public CentralUserBuilder setManagerId(Long managerId) {
251 this.managerId = managerId;
255 public CentralUserBuilder setFirstName(String firstName) {
256 this.firstName = firstName;
260 public CentralUserBuilder setMiddleInitial(String middleInitial) {
261 this.middleInitial = middleInitial;
265 public CentralUserBuilder setLastName(String lastName) {
266 this.lastName = lastName;
270 public CentralUserBuilder setPhone(String phone) {
275 public CentralUserBuilder setFax(String fax) {
280 public CentralUserBuilder setCellular(String cellular) {
281 this.cellular = cellular;
285 public CentralUserBuilder setEmail(String email) {
290 public CentralUserBuilder setAddressId(Long addressId) {
291 this.addressId = addressId;
295 public CentralUserBuilder setAlertMethodCd(String alertMethodCd) {
296 this.alertMethodCd = alertMethodCd;
300 public CentralUserBuilder setHrid(String hrid) {
305 public CentralUserBuilder setOrgUserId(String orgUserId) {
306 this.orgUserId = orgUserId;
310 public CentralUserBuilder setOrgCode(String orgCode) {
311 this.orgCode = orgCode;
315 public CentralUserBuilder setAddress1(String address1) {
316 this.address1 = address1;
320 public CentralUserBuilder setAddress2(String address2) {
321 this.address2 = address2;
325 public CentralUserBuilder setCity(String city) {
330 public CentralUserBuilder setState(String state) {
335 public CentralUserBuilder setZipCode(String zipCode) {
336 this.zipCode = zipCode;
340 public CentralUserBuilder setCountry(String country) {
341 this.country = country;
345 public CentralUserBuilder setOrgManagerUserId(String orgManagerUserId) {
346 this.orgManagerUserId = orgManagerUserId;
350 public CentralUserBuilder setLocationClli(String locationClli) {
351 this.locationClli = locationClli;
355 public CentralUserBuilder setBusinessCountryCode(String businessCountryCode) {
356 this.businessCountryCode = businessCountryCode;
360 public CentralUserBuilder setBusinessCountryName(String businessCountryName) {
361 this.businessCountryName = businessCountryName;
365 public CentralUserBuilder setBusinessUnit(String businessUnit) {
366 this.businessUnit = businessUnit;
370 public CentralUserBuilder setBusinessUnitName(String businessUnitName) {
371 this.businessUnitName = businessUnitName;
375 public CentralUserBuilder setDepartment(String department) {
376 this.department = department;
380 public CentralUserBuilder setDepartmentName(String departmentName) {
381 this.departmentName = departmentName;
385 public CentralUserBuilder setCompanyCode(String companyCode) {
386 this.companyCode = companyCode;
390 public CentralUserBuilder setCompany(String company) {
391 this.company = company;
395 public CentralUserBuilder setZipCodeSuffix(String zipCodeSuffix) {
396 this.zipCodeSuffix = zipCodeSuffix;
400 public CentralUserBuilder setJobTitle(String jobTitle) {
401 this.jobTitle = jobTitle;
405 public CentralUserBuilder setCommandChain(String commandChain) {
406 this.commandChain = commandChain;
410 public CentralUserBuilder setSiloStatus(String siloStatus) {
411 this.siloStatus = siloStatus;
415 public CentralUserBuilder setCostCenter(String costCenter) {
416 this.costCenter = costCenter;
420 public CentralUserBuilder setFinancialLocCode(String financialLocCode) {
421 this.financialLocCode = financialLocCode;
425 public CentralUserBuilder setLoginId(String loginId) {
426 this.loginId = loginId;
430 public CentralUserBuilder setLoginPwd(String loginPwd) {
431 this.loginPwd = loginPwd;
435 public CentralUserBuilder setLastLoginDate(Date lastLoginDate) {
436 this.lastLoginDate = lastLoginDate;
440 public CentralUserBuilder setActive(boolean active) {
441 this.active = active;
445 public CentralUserBuilder setInternal(boolean internal) {
446 this.internal = internal;
450 public CentralUserBuilder setSelectedProfileId(Long selectedProfileId) {
451 this.selectedProfileId = selectedProfileId;
455 public CentralUserBuilder setTimeZoneId(Long timeZoneId) {
456 this.timeZoneId = timeZoneId;
460 public CentralUserBuilder setOnline(boolean online) {
461 this.online = online;
465 public CentralUserBuilder setChatId(String chatId) {
466 this.chatId = chatId;
470 public CentralUserBuilder setUserApps(Set<CentralUserApp> userApps) {
471 this.userApps = userApps;
475 public CentralUser createCentralUser() {
476 return new CentralUser(this);
483 public Long getId() {
491 public void setId(Long id) {
496 * @return the created
498 public Date getCreated() {
506 public void setCreated(Date created) {
507 this.created = created;
511 * @return the modified
513 public Date getModified() {
519 * the modified to set
521 public void setModified(Date modified) {
522 this.modified = modified;
526 * @return the createdId
528 public Long getCreatedId() {
534 * the createdId to set
536 public void setCreatedId(Long createdId) {
537 this.createdId = createdId;
541 * @return the modifiedId
543 public Long getModifiedId() {
549 * the modifiedId to set
551 public void setModifiedId(Long modifiedId) {
552 this.modifiedId = modifiedId;
558 public Long getRowNum() {
566 public void setRowNum(Long rowNum) {
567 this.rowNum = rowNum;
573 public Long getOrgId() {
581 public void setOrgId(Long orgId) {
586 * @return the managerId
588 public Long getManagerId() {
594 * the managerId to set
596 public void setManagerId(Long managerId) {
597 this.managerId = managerId;
601 * @return the firstName
603 public String getFirstName() {
609 * the firstName to set
611 public void setFirstName(String firstName) {
612 this.firstName = firstName;
616 * @return the middleInitial
618 public String getMiddleInitial() {
619 return middleInitial;
623 * @param middleInitial
624 * the middleInitial to set
626 public void setMiddleInitial(String middleInitial) {
627 this.middleInitial = middleInitial;
631 * @return the lastName
633 public String getLastName() {
639 * the lastName to set
641 public void setLastName(String lastName) {
642 this.lastName = lastName;
648 public String getPhone() {
656 public void setPhone(String phone) {
663 public String getFax() {
671 public void setFax(String fax) {
676 * @return the cellular
678 public String getCellular() {
684 * the cellular to set
686 public void setCellular(String cellular) {
687 this.cellular = cellular;
693 public String getEmail() {
701 public void setEmail(String email) {
706 * @return the addressId
708 public Long getAddressId() {
714 * the addressId to set
716 public void setAddressId(Long addressId) {
717 this.addressId = addressId;
721 * @return the alertMethodCd
723 public String getAlertMethodCd() {
724 return alertMethodCd;
728 * @param alertMethodCd
729 * the alertMethodCd to set
731 public void setAlertMethodCd(String alertMethodCd) {
732 this.alertMethodCd = alertMethodCd;
738 public String getHrid() {
746 public void setHrid(String hrid) {
751 * @return the orgUserId
753 public String getOrgUserId() {
759 * the orgUserId to set
761 public void setOrgUserId(String orgUserId) {
762 this.orgUserId = orgUserId;
766 * @return the orgCode
768 public String getOrgCode() {
776 public void setOrgCode(String orgCode) {
777 this.orgCode = orgCode;
781 * @return the address1
783 public String getAddress1() {
789 * the address1 to set
791 public void setAddress1(String address1) {
792 this.address1 = address1;
796 * @return the address2
798 public String getAddress2() {
804 * the address2 to set
806 public void setAddress2(String address2) {
807 this.address2 = address2;
813 public String getCity() {
821 public void setCity(String city) {
828 public String getState() {
836 public void setState(String state) {
841 * @return the zipCode
843 public String getZipCode() {
851 public void setZipCode(String zipCode) {
852 this.zipCode = zipCode;
856 * @return the country
858 public String getCountry() {
866 public void setCountry(String country) {
867 this.country = country;
871 * @return the orgManagerUserId
873 public String getOrgManagerUserId() {
874 return orgManagerUserId;
878 * @param orgManagerUserId
879 * the orgManagerUserId to set
881 public void setOrgManagerUserId(String orgManagerUserId) {
882 this.orgManagerUserId = orgManagerUserId;
886 * @return the locationClli
888 public String getLocationClli() {
893 * @param locationClli
894 * the locationClli to set
896 public void setLocationClli(String locationClli) {
897 this.locationClli = locationClli;
901 * @return the businessCountryCode
903 public String getBusinessCountryCode() {
904 return businessCountryCode;
908 * @param businessCountryCode
909 * the businessCountryCode to set
911 public void setBusinessCountryCode(String businessCountryCode) {
912 this.businessCountryCode = businessCountryCode;
916 * @return the businessCountryName
918 public String getBusinessCountryName() {
919 return businessCountryName;
923 * @param businessCountryName
924 * the businessCountryName to set
926 public void setBusinessCountryName(String businessCountryName) {
927 this.businessCountryName = businessCountryName;
931 * @return the businessUnit
933 public String getBusinessUnit() {
938 * @param businessUnit
939 * the businessUnit to set
941 public void setBusinessUnit(String businessUnit) {
942 this.businessUnit = businessUnit;
946 * @return the businessUnitName
948 public String getBusinessUnitName() {
949 return businessUnitName;
953 * @param businessUnitName
954 * the businessUnitName to set
956 public void setBusinessUnitName(String businessUnitName) {
957 this.businessUnitName = businessUnitName;
961 * @return the department
963 public String getDepartment() {
969 * the department to set
971 public void setDepartment(String department) {
972 this.department = department;
976 * @return the departmentName
978 public String getDepartmentName() {
979 return departmentName;
983 * @param departmentName
984 * the departmentName to set
986 public void setDepartmentName(String departmentName) {
987 this.departmentName = departmentName;
991 * @return the companyCode
993 public String getCompanyCode() {
999 * the companyCode to set
1001 public void setCompanyCode(String companyCode) {
1002 this.companyCode = companyCode;
1006 * @return the company
1008 public String getCompany() {
1014 * the company to set
1016 public void setCompany(String company) {
1017 this.company = company;
1021 * @return the zipCodeSuffix
1023 public String getZipCodeSuffix() {
1024 return zipCodeSuffix;
1028 * @param zipCodeSuffix
1029 * the zipCodeSuffix to set
1031 public void setZipCodeSuffix(String zipCodeSuffix) {
1032 this.zipCodeSuffix = zipCodeSuffix;
1036 * @return the jobTitle
1038 public String getJobTitle() {
1044 * the jobTitle to set
1046 public void setJobTitle(String jobTitle) {
1047 this.jobTitle = jobTitle;
1051 * @return the commandChain
1053 public String getCommandChain() {
1054 return commandChain;
1058 * @param commandChain
1059 * the commandChain to set
1061 public void setCommandChain(String commandChain) {
1062 this.commandChain = commandChain;
1066 * @return the siloStatus
1068 public String getSiloStatus() {
1074 * the siloStatus to set
1076 public void setSiloStatus(String siloStatus) {
1077 this.siloStatus = siloStatus;
1081 * @return the costCenter
1083 public String getCostCenter() {
1089 * the costCenter to set
1091 public void setCostCenter(String costCenter) {
1092 this.costCenter = costCenter;
1096 * @return the financialLocCode
1098 public String getFinancialLocCode() {
1099 return financialLocCode;
1103 * @param financialLocCode
1104 * the financialLocCode to set
1106 public void setFinancialLocCode(String financialLocCode) {
1107 this.financialLocCode = financialLocCode;
1111 * @return the loginId
1113 public String getLoginId() {
1119 * the loginId to set
1121 public void setLoginId(String loginId) {
1122 this.loginId = loginId;
1126 * @return the loginPwd
1128 public String getLoginPwd() {
1134 * the loginPwd to set
1136 public void setLoginPwd(String loginPwd) {
1137 this.loginPwd = loginPwd;
1141 * @return the lastLoginDate
1143 public Date getLastLoginDate() {
1144 return lastLoginDate;
1148 * @param lastLoginDate
1149 * the lastLoginDate to set
1151 public void setLastLoginDate(Date lastLoginDate) {
1152 this.lastLoginDate = lastLoginDate;
1156 * @return the active
1158 public boolean isActive() {
1166 public void setActive(boolean active) {
1167 this.active = active;
1171 * @return the internal
1173 public boolean isInternal() {
1179 * the internal to set
1181 public void setInternal(boolean internal) {
1182 this.internal = internal;
1186 * @return the selectedProfileId
1188 public Long getSelectedProfileId() {
1189 return selectedProfileId;
1193 * @param selectedProfileId
1194 * the selectedProfileId to set
1196 public void setSelectedProfileId(Long selectedProfileId) {
1197 this.selectedProfileId = selectedProfileId;
1201 * @return the timeZoneId
1203 public Long getTimeZoneId() {
1209 * the timeZoneId to set
1211 public void setTimeZoneId(Long timeZoneId) {
1212 this.timeZoneId = timeZoneId;
1216 * @return the online
1218 public boolean isOnline() {
1226 public void setOnline(boolean online) {
1227 this.online = online;
1231 * @return the chatId
1233 public String getChatId() {
1241 public void setChatId(String chatId) {
1242 this.chatId = chatId;
1246 * @return the userApps
1248 public Set<CentralUserApp> getUserApps() {
1254 * the userApps to set
1256 public void setUserApps(Set<CentralUserApp> userApps) {
1257 this.userApps = userApps;
1261 * @return the pseudoRoles
1263 public Set<CentralRole> getPseudoRoles() {
1268 * @param pseudoRoles
1269 * the pseudoRoles to set
1271 public void setPseudoRoles(Set<CentralRole> pseudoRoles) {
1272 this.pseudoRoles = pseudoRoles;