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(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) {
117 this.created = created;
118 this.modified = modified;
119 this.createdId = createdId;
120 this.modifiedId = modifiedId;
121 this.rowNum = rowNum;
123 this.managerId = managerId;
124 this.firstName = firstName;
125 this.middleInitial = middleInitial;
126 this.lastName = lastName;
129 this.cellular = cellular;
131 this.addressId = addressId;
132 this.alertMethodCd = alertMethodCd;
134 this.orgUserId = orgUserId;
135 this.orgCode = orgCode;
136 this.address1 = address1;
137 this.address2 = address2;
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;
173 public Long getId() {
181 public void setId(Long id) {
186 * @return the created
188 public Date getCreated() {
196 public void setCreated(Date created) {
197 this.created = created;
201 * @return the modified
203 public Date getModified() {
209 * the modified to set
211 public void setModified(Date modified) {
212 this.modified = modified;
216 * @return the createdId
218 public Long getCreatedId() {
224 * the createdId to set
226 public void setCreatedId(Long createdId) {
227 this.createdId = createdId;
231 * @return the modifiedId
233 public Long getModifiedId() {
239 * the modifiedId to set
241 public void setModifiedId(Long modifiedId) {
242 this.modifiedId = modifiedId;
248 public Long getRowNum() {
256 public void setRowNum(Long rowNum) {
257 this.rowNum = rowNum;
263 public Long getOrgId() {
271 public void setOrgId(Long orgId) {
276 * @return the managerId
278 public Long getManagerId() {
284 * the managerId to set
286 public void setManagerId(Long managerId) {
287 this.managerId = managerId;
291 * @return the firstName
293 public String getFirstName() {
299 * the firstName to set
301 public void setFirstName(String firstName) {
302 this.firstName = firstName;
306 * @return the middleInitial
308 public String getMiddleInitial() {
309 return middleInitial;
313 * @param middleInitial
314 * the middleInitial to set
316 public void setMiddleInitial(String middleInitial) {
317 this.middleInitial = middleInitial;
321 * @return the lastName
323 public String getLastName() {
329 * the lastName to set
331 public void setLastName(String lastName) {
332 this.lastName = lastName;
338 public String getPhone() {
346 public void setPhone(String phone) {
353 public String getFax() {
361 public void setFax(String fax) {
366 * @return the cellular
368 public String getCellular() {
374 * the cellular to set
376 public void setCellular(String cellular) {
377 this.cellular = cellular;
383 public String getEmail() {
391 public void setEmail(String email) {
396 * @return the addressId
398 public Long getAddressId() {
404 * the addressId to set
406 public void setAddressId(Long addressId) {
407 this.addressId = addressId;
411 * @return the alertMethodCd
413 public String getAlertMethodCd() {
414 return alertMethodCd;
418 * @param alertMethodCd
419 * the alertMethodCd to set
421 public void setAlertMethodCd(String alertMethodCd) {
422 this.alertMethodCd = alertMethodCd;
428 public String getHrid() {
436 public void setHrid(String hrid) {
441 * @return the orgUserId
443 public String getOrgUserId() {
449 * the orgUserId to set
451 public void setOrgUserId(String orgUserId) {
452 this.orgUserId = orgUserId;
456 * @return the orgCode
458 public String getOrgCode() {
466 public void setOrgCode(String orgCode) {
467 this.orgCode = orgCode;
471 * @return the address1
473 public String getAddress1() {
479 * the address1 to set
481 public void setAddress1(String address1) {
482 this.address1 = address1;
486 * @return the address2
488 public String getAddress2() {
494 * the address2 to set
496 public void setAddress2(String address2) {
497 this.address2 = address2;
503 public String getCity() {
511 public void setCity(String city) {
518 public String getState() {
526 public void setState(String state) {
531 * @return the zipCode
533 public String getZipCode() {
541 public void setZipCode(String zipCode) {
542 this.zipCode = zipCode;
546 * @return the country
548 public String getCountry() {
556 public void setCountry(String country) {
557 this.country = country;
561 * @return the orgManagerUserId
563 public String getOrgManagerUserId() {
564 return orgManagerUserId;
568 * @param orgManagerUserId
569 * the orgManagerUserId to set
571 public void setOrgManagerUserId(String orgManagerUserId) {
572 this.orgManagerUserId = orgManagerUserId;
576 * @return the locationClli
578 public String getLocationClli() {
583 * @param locationClli
584 * the locationClli to set
586 public void setLocationClli(String locationClli) {
587 this.locationClli = locationClli;
591 * @return the businessCountryCode
593 public String getBusinessCountryCode() {
594 return businessCountryCode;
598 * @param businessCountryCode
599 * the businessCountryCode to set
601 public void setBusinessCountryCode(String businessCountryCode) {
602 this.businessCountryCode = businessCountryCode;
606 * @return the businessCountryName
608 public String getBusinessCountryName() {
609 return businessCountryName;
613 * @param businessCountryName
614 * the businessCountryName to set
616 public void setBusinessCountryName(String businessCountryName) {
617 this.businessCountryName = businessCountryName;
621 * @return the businessUnit
623 public String getBusinessUnit() {
628 * @param businessUnit
629 * the businessUnit to set
631 public void setBusinessUnit(String businessUnit) {
632 this.businessUnit = businessUnit;
636 * @return the businessUnitName
638 public String getBusinessUnitName() {
639 return businessUnitName;
643 * @param businessUnitName
644 * the businessUnitName to set
646 public void setBusinessUnitName(String businessUnitName) {
647 this.businessUnitName = businessUnitName;
651 * @return the department
653 public String getDepartment() {
659 * the department to set
661 public void setDepartment(String department) {
662 this.department = department;
666 * @return the departmentName
668 public String getDepartmentName() {
669 return departmentName;
673 * @param departmentName
674 * the departmentName to set
676 public void setDepartmentName(String departmentName) {
677 this.departmentName = departmentName;
681 * @return the companyCode
683 public String getCompanyCode() {
689 * the companyCode to set
691 public void setCompanyCode(String companyCode) {
692 this.companyCode = companyCode;
696 * @return the company
698 public String getCompany() {
706 public void setCompany(String company) {
707 this.company = company;
711 * @return the zipCodeSuffix
713 public String getZipCodeSuffix() {
714 return zipCodeSuffix;
718 * @param zipCodeSuffix
719 * the zipCodeSuffix to set
721 public void setZipCodeSuffix(String zipCodeSuffix) {
722 this.zipCodeSuffix = zipCodeSuffix;
726 * @return the jobTitle
728 public String getJobTitle() {
734 * the jobTitle to set
736 public void setJobTitle(String jobTitle) {
737 this.jobTitle = jobTitle;
741 * @return the commandChain
743 public String getCommandChain() {
748 * @param commandChain
749 * the commandChain to set
751 public void setCommandChain(String commandChain) {
752 this.commandChain = commandChain;
756 * @return the siloStatus
758 public String getSiloStatus() {
764 * the siloStatus to set
766 public void setSiloStatus(String siloStatus) {
767 this.siloStatus = siloStatus;
771 * @return the costCenter
773 public String getCostCenter() {
779 * the costCenter to set
781 public void setCostCenter(String costCenter) {
782 this.costCenter = costCenter;
786 * @return the financialLocCode
788 public String getFinancialLocCode() {
789 return financialLocCode;
793 * @param financialLocCode
794 * the financialLocCode to set
796 public void setFinancialLocCode(String financialLocCode) {
797 this.financialLocCode = financialLocCode;
801 * @return the loginId
803 public String getLoginId() {
811 public void setLoginId(String loginId) {
812 this.loginId = loginId;
816 * @return the loginPwd
818 public String getLoginPwd() {
824 * the loginPwd to set
826 public void setLoginPwd(String loginPwd) {
827 this.loginPwd = loginPwd;
831 * @return the lastLoginDate
833 public Date getLastLoginDate() {
834 return lastLoginDate;
838 * @param lastLoginDate
839 * the lastLoginDate to set
841 public void setLastLoginDate(Date lastLoginDate) {
842 this.lastLoginDate = lastLoginDate;
848 public boolean isActive() {
856 public void setActive(boolean active) {
857 this.active = active;
861 * @return the internal
863 public boolean isInternal() {
869 * the internal to set
871 public void setInternal(boolean internal) {
872 this.internal = internal;
876 * @return the selectedProfileId
878 public Long getSelectedProfileId() {
879 return selectedProfileId;
883 * @param selectedProfileId
884 * the selectedProfileId to set
886 public void setSelectedProfileId(Long selectedProfileId) {
887 this.selectedProfileId = selectedProfileId;
891 * @return the timeZoneId
893 public Long getTimeZoneId() {
899 * the timeZoneId to set
901 public void setTimeZoneId(Long timeZoneId) {
902 this.timeZoneId = timeZoneId;
908 public boolean isOnline() {
916 public void setOnline(boolean online) {
917 this.online = online;
923 public String getChatId() {
931 public void setChatId(String chatId) {
932 this.chatId = chatId;
936 * @return the userApps
938 public Set<CentralUserApp> getUserApps() {
944 * the userApps to set
946 public void setUserApps(Set<CentralUserApp> userApps) {
947 this.userApps = userApps;
951 * @return the pseudoRoles
953 public Set<CentralRole> getPseudoRoles() {
959 * the pseudoRoles to set
961 public void setPseudoRoles(Set<CentralRole> pseudoRoles) {
962 this.pseudoRoles = pseudoRoles;