b8307b908100da2453f834b86fe50d99b85fb0d6
[portal.git] / portal-BE / src / main / java / org / onap / portal / domain / db / fn / FnUser.java
1 /*
2  * ============LICENSE_START==========================================
3  * ONAP Portal
4  * ===================================================================
5  * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6  * ===================================================================
7  * Modifications Copyright (c) 2019 Samsung
8  * ===================================================================
9  *
10  * Unless otherwise specified, all software contained herein is licensed
11  * under the Apache License, Version 2.0 (the "License");
12  * you may not use this software except in compliance with the License.
13  * You may obtain a copy of the License at
14  *
15  *             http://www.apache.org/licenses/LICENSE-2.0
16  *
17  * Unless required by applicable law or agreed to in writing, software
18  * distributed under the License is distributed on an "AS IS" BASIS,
19  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  * See the License for the specific language governing permissions and
21  * limitations under the License.
22  *
23  * Unless otherwise specified, all documentation contained herein is licensed
24  * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
25  * you may not use this documentation except in compliance with the License.
26  * You may obtain a copy of the License at
27  *
28  *             https://creativecommons.org/licenses/by/4.0/
29  *
30  * Unless required by applicable law or agreed to in writing, documentation
31  * distributed under the License is distributed on an "AS IS" BASIS,
32  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33  * See the License for the specific language governing permissions and
34  * limitations under the License.
35  *
36  * ============LICENSE_END============================================
37  *
38  *
39  */
40
41 package org.onap.portal.domain.db.fn;
42
43 import java.io.Serializable;
44 import java.time.LocalDateTime;
45 import java.util.Collection;
46 import java.util.HashSet;
47 import java.util.Iterator;
48 import java.util.Set;
49 import java.util.SortedSet;
50 import java.util.TreeSet;
51 import java.util.stream.Collectors;
52 import javax.persistence.CascadeType;
53 import javax.persistence.Column;
54 import javax.persistence.Entity;
55 import javax.persistence.FetchType;
56 import javax.persistence.Index;
57 import javax.persistence.JoinColumn;
58 import javax.persistence.ManyToMany;
59 import javax.persistence.ManyToOne;
60 import javax.persistence.NamedQueries;
61 import javax.persistence.NamedQuery;
62 import javax.persistence.OneToMany;
63 import javax.persistence.Table;
64 import javax.persistence.UniqueConstraint;
65 import javax.validation.constraints.Digits;
66 import javax.validation.constraints.Email;
67 import javax.validation.constraints.NotNull;
68 import javax.validation.constraints.PastOrPresent;
69 import javax.validation.constraints.Size;
70 import lombok.AllArgsConstructor;
71 import lombok.Builder;
72 import lombok.Getter;
73 import lombok.NoArgsConstructor;
74 import lombok.Setter;
75 import org.hibernate.annotations.DynamicUpdate;
76 import org.hibernate.validator.constraints.SafeHtml;
77 import org.onap.portal.domain.db.DomainVo;
78 import org.onap.portal.domain.db.cr.CrReportFileHistory;
79 import org.onap.portal.domain.db.ep.EpPersUserWidgetPlacement;
80 import org.onap.portal.domain.db.ep.EpPersUserWidgetSel;
81 import org.onap.portal.domain.db.ep.EpUserNotification;
82 import org.onap.portal.domain.db.ep.EpUserRolesRequest;
83 import org.onap.portal.domain.db.ep.EpWidgetCatalogParameter;
84 import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate;
85 import org.springframework.security.core.GrantedAuthority;
86 import org.springframework.security.core.authority.SimpleGrantedAuthority;
87 import org.springframework.security.core.userdetails.UserDetails;
88
89 /*
90 CREATE TABLE `fn_user` (
91         `user_id` int(11) NOT NULL AUTO_INCREMENT,
92         `org_id` int(11) DEFAULT NULL,
93         `manager_id` int(11) DEFAULT NULL,
94         `first_name` varchar(50) DEFAULT NULL,
95         `middle_name` varchar(50) DEFAULT NULL,
96         `last_name` varchar(50) DEFAULT NULL,
97         `phone` varchar(25) DEFAULT NULL,
98         `fax` varchar(25) DEFAULT NULL,
99         `cellular` varchar(25) DEFAULT NULL,
100         `email` varchar(50) DEFAULT NULL,
101         `address_id` decimal(11,0) DEFAULT NULL,
102         `alert_method_cd` varchar(10) DEFAULT NULL,
103         `hrid` varchar(20) DEFAULT NULL,
104         `org_user_id` varchar(20) DEFAULT NULL,
105         `org_code` varchar(30) DEFAULT NULL,
106         `login_id` varchar(25) DEFAULT NULL,
107         `login_pwd` varchar(100) DEFAULT NULL,
108         `last_login_date` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
109         `active_yn` varchar(1) NOT NULL DEFAULT 'y',
110         `created_id` int(11) DEFAULT NULL,
111         `created_date` timestamp NOT NULL DEFAULT current_timestamp(),
112         `modified_id` int(11) DEFAULT NULL,
113         `modified_date` timestamp NOT NULL DEFAULT current_timestamp(),
114         `is_internal_yn` char(1) NOT NULL DEFAULT 'n',
115         `address_line_1` varchar(100) DEFAULT NULL,
116         `address_line_2` varchar(100) DEFAULT NULL,
117         `city` varchar(50) DEFAULT NULL,
118         `state_cd` varchar(3) DEFAULT NULL,
119         `zip_code` varchar(11) DEFAULT NULL,
120         `country_cd` varchar(3) DEFAULT NULL,
121         `location_clli` varchar(8) DEFAULT NULL,
122         `org_manager_userid` varchar(20) DEFAULT NULL,
123         `company` varchar(100) DEFAULT NULL,
124         `department_name` varchar(100) DEFAULT NULL,
125         `job_title` varchar(100) DEFAULT NULL,
126         `timezone` int(11) DEFAULT NULL,
127         `department` varchar(25) DEFAULT NULL,
128         `business_unit` varchar(25) DEFAULT NULL,
129         `business_unit_name` varchar(100) DEFAULT NULL,
130         `cost_center` varchar(25) DEFAULT NULL,
131         `fin_loc_code` varchar(10) DEFAULT NULL,
132         `silo_status` varchar(10) DEFAULT NULL,
133         `language_id` int(2) NOT NULL DEFAULT 1,
134         PRIMARY KEY (`user_id`),
135         UNIQUE KEY `fn_user_hrid` (`hrid`) USING BTREE,
136         UNIQUE KEY `fn_user_login_id` (`login_id`) USING BTREE,
137         KEY `fn_user_address_id` (`address_id`) USING BTREE,
138         KEY `fn_user_alert_method_cd` (`alert_method_cd`) USING BTREE,
139         KEY `fn_user_org_id` (`org_id`) USING BTREE,
140         KEY `fk_fn_user_ref_197_fn_user` (`manager_id`),
141         KEY `fk_fn_user_ref_198_fn_user` (`created_id`),
142         KEY `fk_fn_user_ref_199_fn_user` (`modified_id`),
143         KEY `fk_timezone` (`timezone`),
144         CONSTRAINT `fk_fn_user_ref_110_fn_org` FOREIGN KEY (`org_id`) REFERENCES `fn_org` (`org_id`),
145         CONSTRAINT `fk_fn_user_ref_123_fn_lu_al` FOREIGN KEY (`alert_method_cd`) REFERENCES `fn_lu_alert_method` (`alert_method_cd`),
146         CONSTRAINT `fk_fn_user_ref_197_fn_user` FOREIGN KEY (`manager_id`) REFERENCES `fn_user` (`user_id`),
147         CONSTRAINT `fk_fn_user_ref_198_fn_user` FOREIGN KEY (`created_id`) REFERENCES `fn_user` (`user_id`),
148         CONSTRAINT `fk_fn_user_ref_199_fn_user` FOREIGN KEY (`modified_id`) REFERENCES `fn_user` (`user_id`),
149         CONSTRAINT `fk_timezone` FOREIGN KEY (`timezone`) REFERENCES `fn_lu_timezone` (`timezone_id`)
150         )
151 */
152
153 @NamedQueries({
154     @NamedQuery(
155         name = "FnUser.getUserWithOrgUserId",
156         query = "FROM FnUser WHERE orgUserId = :orgId"),
157     @NamedQuery(
158         name = "FnUser.findByLoginId",
159         query = "FROM FnUser WHERE loginId = :loginId"),
160     @NamedQuery(
161         name = "FnUser.getActiveUsers",
162         query = "FROM FnUser WHERE activeYn = 'Y'"),
163     @NamedQuery(
164         name = "FnUser.getUsersByOrgIds",
165         query = "FROM FnUser WHERE orgUserId IN :orgIds"
166     )
167 })
168
169 @Table(name = "fn_user", indexes = {
170     @Index(name = "fn_user_address_id", columnList = "address_id"),
171     @Index(name = "fn_user_alert_method_cd", columnList = "alert_method_cd"),
172     @Index(name = "fn_user_org_id", columnList = "org_id"),
173 //    @Index(name = "fk_fn_user_ref_197_fn_user", columnList = "manager_id"),
174     @Index(name = "fk_fn_user_ref_198_fn_user", columnList = "created_id"),
175     @Index(name = "fk_fn_user_ref_199_fn_user", columnList = "modified_id"),
176     @Index(name = "fk_timezone", columnList = "timezone")
177 },
178     uniqueConstraints = {
179         @UniqueConstraint(name = "fn_user_hrid", columnNames = "hrid"),
180         @UniqueConstraint(name = "fn_user_login_id", columnNames = "login_id")
181
182     })
183
184 @Getter
185 @Setter
186 @Entity
187 @NoArgsConstructor
188 @AllArgsConstructor
189 @DynamicUpdate
190 public class FnUser extends DomainVo implements UserDetails, Serializable {
191
192   private static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(FnUser.class);
193
194 /*  @ManyToOne(cascade = CascadeType.MERGE, fetch = FetchType.LAZY)
195   @JoinColumn(name = "manager_id")
196   private FnUser managerId;*/
197   @ManyToOne(cascade = CascadeType.MERGE, fetch = FetchType.LAZY)
198   @JoinColumn(name = "org_id")
199   private FnOrg orgId;
200   @Column(name = "first_name", length = 50)
201   @Size(max = 50)
202   @SafeHtml
203   private String firstName;
204   @Column(name = "middle_name", length = 50)
205   @Size(max = 50)
206   @SafeHtml
207   private String middleName;
208   @Column(name = "last_name", length = 50)
209   @Size(max = 50)
210   @SafeHtml
211   private String lastName;
212   @Column(name = "phone", length = 25)
213   @Size(max = 25)
214   @SafeHtml
215   private String phone;
216   @Column(name = "fax", length = 25)
217   @Size(max = 25)
218   @SafeHtml
219   private String fax;
220   @Column(name = "cellular", length = 25)
221   @Size(max = 25)
222   @SafeHtml
223   private String cellular;
224   @Column(name = "email", length = 50)
225   @Size(max = 50)
226   @Email
227   @SafeHtml
228   private String email;
229   @Column(name = "address_id")
230   @Digits(integer = 11, fraction = 0)
231   private Long addressId;
232   @ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.MERGE)
233   @JoinColumn(name = "alert_method_cd")
234   private FnLuAlertMethod alertMethodCd;
235   @Column(name = "hrid", length = 20)
236   @Size(max = 20)
237   @SafeHtml
238   private String hrid;
239   @Column(name = "org_user_id", length = 20)
240   @Size(max = 20)
241   @SafeHtml
242   private String orgUserId;
243   @Column(name = "org_code", length = 30)
244   @Size(max = 30)
245   @SafeHtml
246   private String orgCode;
247   @Column(name = "login_id", length = 25)
248   @Size(max = 25)
249   @SafeHtml
250   private String loginId;
251   @Column(name = "login_pwd", length = 100)
252   @Size(max = 100)
253   @SafeHtml
254   private String loginPwd;
255   @Column(name = "last_login_date", nullable = false, columnDefinition = "datetime DEFAULT current_timestamp() ON UPDATE current_timestamp()")
256   @PastOrPresent
257   protected LocalDateTime lastLoginDate;
258   @Column(name = "active_yn", nullable = false)
259   private Boolean activeYn;
260   @Column(name = "created_date", columnDefinition = "datetime DEFAULT current_timestamp()", nullable = false)
261   @PastOrPresent
262   protected LocalDateTime createdDate;
263   @Column(name = "modified_date", nullable = false, columnDefinition = "datetime default now()")
264   @PastOrPresent
265   protected LocalDateTime modifiedDate;
266   @Column(name = "is_internal_yn", nullable = false, columnDefinition = "boolean DEFAULT false")
267   private Boolean isInternalYn = false;
268   @Column(name = "is_system_user", nullable = false, columnDefinition = "boolean DEFAULT false")
269   private Boolean isSystemUser = false;
270   @Column(name = "address_line_1", length = 100)
271   @Size(max = 100)
272   @SafeHtml
273   private String addressLine1;
274   @Column(name = "address_line_2", length = 100)
275   @Size(max = 100)
276   @SafeHtml
277   private String addressLine2;
278   @Column(name = "city", length = 50)
279   @Size(max = 50)
280   @SafeHtml
281   private String city;
282   @Column(name = "state_cd", length = 3)
283   @Size(max = 3)
284   @SafeHtml
285   private String stateCd;
286   @Column(name = "zip_code", length = 11)
287   @Size(max = 11)
288   @SafeHtml
289   private String zipCode;
290   @Column(name = "country_cd", length = 3)
291   @Size(max = 3)
292   @SafeHtml
293   private String countryCd;
294   @Column(name = "location_clli", length = 8)
295   @Size(max = 8)
296   @SafeHtml
297   private String locationClli;
298   @Column(name = "org_manager_userid", length = 20)
299   private Long orgManagerUserId;
300   @Column(name = "company", length = 100)
301   @Size(max = 100)
302   @SafeHtml
303   private String company;
304   @Column(name = "department_name", length = 200)
305   @Size(max = 200)
306   @SafeHtml
307   private String departmentName;
308   @Column(name = "job_title", length = 100)
309   @Size(max = 100)
310   @SafeHtml
311   private String jobTitle;
312   @ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.MERGE)
313   @JoinColumn(name = "timezone")
314   private FnLuTimezone timezone;
315   @Column(name = "department", length = 25)
316   @Size(max = 25)
317   @SafeHtml
318   private String department;
319   @Column(name = "business_unit", length = 25)
320   @Size(max = 25)
321   @SafeHtml
322   private String businessUnit;
323   @Column(name = "business_unit_name", length = 100)
324   @Size(max = 100)
325   @SafeHtml
326   private String businessUnitName;
327   @Column(name = "cost_center", length = 25)
328   @Size(max = 25)
329   @SafeHtml
330   private String costCenter;
331   @Column(name = "fin_loc_code", length = 10)
332   @Size(max = 10)
333   @SafeHtml
334   private String finLocCode;
335   @Column(name = "silo_status", length = 10)
336   @Size(max = 10)
337   @SafeHtml
338   private String siloStatus;
339   @ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.MERGE)
340   @JoinColumn(name = "language_id", nullable = false)
341   @NotNull(message = "languageId must not be null")
342   private FnLanguage languageId;
343   @Column(name = "is_guest", nullable = false, columnDefinition = "boolean DEFAULT false")
344   @NotNull(message = "guest must not be null")
345   private Boolean guest = false;
346   @ManyToMany(cascade = CascadeType.MERGE, fetch = FetchType.LAZY, mappedBy = "fnUserList")
347   private Set<CrReportFileHistory> crReportFileHistorie;
348   @ManyToMany(cascade = CascadeType.MERGE, fetch = FetchType.EAGER, mappedBy = "fnUsers")
349   private Set<FnRole> fnRoles;
350   @ManyToMany(cascade = CascadeType.MERGE, fetch = FetchType.LAZY)
351   private Set<FnMenuFunctional> fnRoleList;
352   @OneToMany(
353       targetEntity = FnAuditLog.class,
354       mappedBy = "userId",
355       cascade = CascadeType.MERGE,
356       fetch = FetchType.LAZY
357   )
358   private Set<FnAuditLog> fnAuditLogs;
359   @OneToMany(
360       targetEntity = EpUserRolesRequest.class,
361       mappedBy = "userId",
362       cascade = CascadeType.MERGE,
363       fetch = FetchType.LAZY
364   )
365   private Set<EpUserRolesRequest> epUserRolesRequests;
366   @OneToMany(
367       targetEntity = FnPersUserAppSel.class,
368       mappedBy = "userId",
369       cascade = CascadeType.MERGE,
370       fetch = FetchType.LAZY
371   )
372   private Set<FnPersUserAppSel> persUserAppSels;
373   @OneToMany(
374       targetEntity = EpWidgetCatalogParameter.class,
375       mappedBy = "userId",
376       cascade = CascadeType.MERGE,
377       fetch = FetchType.LAZY
378   )
379   private Set<EpWidgetCatalogParameter> epWidgetCatalogParameters;
380   @OneToMany(
381       targetEntity = EpPersUserWidgetPlacement.class,
382       mappedBy = "userId",
383       cascade = CascadeType.MERGE,
384       fetch = FetchType.LAZY
385   )
386   private Set<EpPersUserWidgetPlacement> epPersUserWidgetPlacements;
387   @OneToMany(
388       targetEntity = EpPersUserWidgetSel.class,
389       mappedBy = "userId",
390       cascade = CascadeType.MERGE,
391       fetch = FetchType.LAZY
392   )
393   private Set<EpPersUserWidgetSel> epPersUserWidgetSels;
394   @OneToMany(
395       targetEntity = FnUserRole.class,
396       mappedBy = "userId",
397       cascade = CascadeType.MERGE,
398       fetch = FetchType.LAZY
399   )
400   private Set<FnUserRole> userApps;
401   @OneToMany(
402       targetEntity = EpUserNotification.class,
403       mappedBy = "userId",
404       cascade = CascadeType.MERGE,
405       fetch = FetchType.LAZY
406   )
407   private Set<EpUserNotification> epUserNotifications;
408 /*  @OneToMany(
409       targetEntity = FnUser.class,
410       mappedBy = "managerId",
411       cascade = CascadeType.MERGE,
412       fetch = FetchType.LAZY
413   )
414   private Set<FnUser> fnUsersManagerId;*/
415
416   @Override
417   public Collection<? extends GrantedAuthority> getAuthorities() {
418     return fnRoles
419         .stream()
420         .map(fnRole -> new SimpleGrantedAuthority("ROLE_" + fnRole.getRoleName()))
421         .collect(Collectors.toList());
422   }
423
424   @Override
425   public String getPassword() {
426     return this.getLoginPwd();
427   }
428
429   @Override
430   public String getUsername() {
431     return this.getLoginId();
432   }
433
434   @Override
435   public boolean isAccountNonExpired() {
436     return true;
437   }
438
439   @Override
440   public boolean isAccountNonLocked() {
441     return true;
442   }
443
444   @Override
445   public boolean isCredentialsNonExpired() {
446     return true;
447   }
448
449   @Override
450   public boolean isEnabled() {
451     return true;
452   }
453
454   public String getFullName() {
455     return this.firstName + " " + this.lastName;
456   }
457
458   public SortedSet<FnRole> getAppEPRoles(FnApp app) {
459
460     logger.debug(EELFLoggerDelegate.debugLogger, "In EPUser.getAppEPRoles() - app = {}", app.getAppName());
461
462     SortedSet<FnRole> roles = new TreeSet<>();
463     Set<FnUserRole> userAppRoles = getUserApps();
464
465     logger.debug(EELFLoggerDelegate.debugLogger, "In EPUser.getAppEPRoles() - userApps = {} ", userAppRoles.size());
466
467     Iterator<FnUserRole> userAppRolesIterator = userAppRoles.iterator();
468
469     FnUserRole userAppRole;
470     // getting default app
471     while (userAppRolesIterator.hasNext()) {
472       FnUserRole tempUserApp = userAppRolesIterator.next();
473       if (tempUserApp.getFnAppId().getId().equals(app.getId())) {
474
475         logger.debug(EELFLoggerDelegate.debugLogger,
476             "In EPUser.getAppEPRoles() - for user {}, found application {}", this.getFullName(),
477             app.getAppName());
478
479         userAppRole = tempUserApp;
480
481         FnRole role = userAppRole.getRoleId();
482         if (role.getActiveYn()) {
483           logger.debug(EELFLoggerDelegate.debugLogger,
484               "In EPUser.getAppEPRoles() - Role {} is active - adding for user {} and app {}",
485               role.getRoleName(), this.getFullName(), app.getAppName());
486           roles.add(role);
487         } else {
488           logger.debug(EELFLoggerDelegate.debugLogger,
489               "In EPUser.getAppEPRoles() - Role {} is NOT active - NOT adding for user {} and app {}",
490               role.getRoleName(), this.getFullName(), app.getAppName());
491         }
492       }
493     }
494     logger.debug(EELFLoggerDelegate.debugLogger, "In EPUser.getAppEPRoles() - roles = {}", roles.size());
495
496     return roles;
497   }
498
499   public void setRoles(Set<FnRole> roles) {
500     FnApp app = new FnApp();
501     app.setId(1L);
502     app.setAppName("Default");
503     this.addAppRoles(app, roles);
504   }
505
506   private void addAppRoles(FnApp app, Set<FnRole> roles) {
507     if (roles != null) {
508       Set<FnUserRole> newUserApps = new HashSet<>();
509       for (FnRole role : roles) {
510         FnUserRole userApp = new FnUserRole();
511         userApp.setUserId(this);
512         userApp.setFnAppId(app);
513         userApp.setRoleId(role);
514         newUserApps.add(userApp);
515       }
516
517       this.setUserApps(newUserApps);
518     } else {
519       this.userApps.clear();
520     }
521   }
522
523   @Builder
524   public FnUser(@Digits(integer = 11, fraction = 0) Long id, LocalDateTime created, LocalDateTime modified,
525       Long rowNum, Serializable auditUserId, DomainVo createdId, DomainVo modifiedId,
526       Set<DomainVo> fnUsersCreatedId, Set<DomainVo> fnUsersModifiedId, FnOrg orgId,
527       @Size(max = 50) @SafeHtml String firstName,
528       @Size(max = 50) @SafeHtml String middleName,
529       @Size(max = 50) @SafeHtml String lastName,
530       @Size(max = 25) @SafeHtml String phone,
531       @Size(max = 25) @SafeHtml String fax,
532       @Size(max = 25) @SafeHtml String cellular,
533       @Size(max = 50) @Email @SafeHtml String email,
534       @Digits(integer = 11, fraction = 0) Long addressId, FnLuAlertMethod alertMethodCd,
535       @Size(max = 20) @SafeHtml String hrid,
536       @Size(max = 20) @SafeHtml String orgUserId,
537       @Size(max = 30) @SafeHtml String org_code,
538       @Size(max = 25) @SafeHtml String loginId,
539       @Size(max = 100) @SafeHtml String loginPwd,
540       @PastOrPresent LocalDateTime lastLoginDate, Boolean activeYn,
541       @PastOrPresent LocalDateTime createdDate,
542       @PastOrPresent LocalDateTime modifiedDate, Boolean isInternalYn, Boolean isSystemUser,
543       @Size(max = 100) @SafeHtml String addressLine1,
544       @Size(max = 100) @SafeHtml String addressLine2,
545       @Size(max = 50) @SafeHtml String city,
546       @Size(max = 3) @SafeHtml String stateCd,
547       @Size(max = 11) @SafeHtml String zipCode,
548       @Size(max = 3) @SafeHtml String countryCd,
549       @Size(max = 8) @SafeHtml String locationClli,
550       Long orgManagerUserId,
551       @Size(max = 100) @SafeHtml String company,
552       @Size(max = 200) @SafeHtml String departmentName,
553       @Size(max = 100) @SafeHtml String jobTitle, FnLuTimezone timezone,
554       @Size(max = 25) @SafeHtml String department,
555       @Size(max = 25) @SafeHtml String businessUnit,
556       @Size(max = 100) @SafeHtml String businessUnitName,
557       @Size(max = 25) @SafeHtml String cost_center,
558       @Size(max = 10) @SafeHtml String finLocCode,
559       @Size(max = 10) @SafeHtml String siloStatus,
560       @NotNull(message = "languageId must not be null") FnLanguage languageId,
561       @NotNull(message = "guest must not be null") Boolean guest,
562       Set<CrReportFileHistory> crReportFileHistorie, Set<FnRole> fnRoles,
563       Set<FnMenuFunctional> fnRoleList, Set<FnAuditLog> fnAuditLogs,
564       Set<EpUserRolesRequest> epUserRolesRequests,
565       Set<FnPersUserAppSel> persUserAppSels,
566       Set<EpWidgetCatalogParameter> epWidgetCatalogParameters,
567       Set<EpPersUserWidgetPlacement> epPersUserWidgetPlacements,
568       Set<EpPersUserWidgetSel> epPersUserWidgetSels, Set<FnUserRole> userApps,
569       Set<EpUserNotification> epUserNotifications) {
570     super(id, created, modified, rowNum, auditUserId, createdId, modifiedId, fnUsersCreatedId, fnUsersModifiedId);
571     this.orgId = orgId;
572     this.firstName = firstName;
573     this.middleName = middleName;
574     this.lastName = lastName;
575     this.phone = phone;
576     this.fax = fax;
577     this.cellular = cellular;
578     this.email = email;
579     this.addressId = addressId;
580     this.alertMethodCd = alertMethodCd;
581     this.hrid = hrid;
582     this.orgUserId = orgUserId;
583     this.orgCode = org_code;
584     this.loginId = loginId;
585     this.loginPwd = loginPwd;
586     this.lastLoginDate = lastLoginDate;
587     this.activeYn = activeYn;
588     this.createdDate = createdDate;
589     this.modifiedDate = modifiedDate;
590     this.isInternalYn = isInternalYn;
591     this.isSystemUser = isSystemUser;
592     this.addressLine1 = addressLine1;
593     this.addressLine2 = addressLine2;
594     this.city = city;
595     this.stateCd = stateCd;
596     this.zipCode = zipCode;
597     this.countryCd = countryCd;
598     this.locationClli = locationClli;
599     this.orgManagerUserId = orgManagerUserId;
600     this.company = company;
601     this.departmentName = departmentName;
602     this.jobTitle = jobTitle;
603     this.timezone = timezone;
604     this.department = department;
605     this.businessUnit = businessUnit;
606     this.businessUnitName = businessUnitName;
607     this.costCenter = cost_center;
608     this.finLocCode = finLocCode;
609     this.siloStatus = siloStatus;
610     this.languageId = languageId;
611     this.guest = guest;
612     this.crReportFileHistorie = crReportFileHistorie;
613     this.fnRoles = fnRoles;
614     this.fnRoleList = fnRoleList;
615     this.fnAuditLogs = fnAuditLogs;
616     this.epUserRolesRequests = epUserRolesRequests;
617     this.persUserAppSels = persUserAppSels;
618     this.epWidgetCatalogParameters = epWidgetCatalogParameters;
619     this.epPersUserWidgetPlacements = epPersUserWidgetPlacements;
620     this.epPersUserWidgetSels = epPersUserWidgetSels;
621     this.userApps = userApps;
622     this.epUserNotifications = epUserNotifications;
623   }
624 }