1 package org.openecomp.portalapp.portal.transport;
6 public class CentralUser {
12 public Long createdId;
13 public Long modifiedId;
17 public Long managerId;
18 public String firstName;
19 public String middleInitial;
20 public String lastName;
23 public String cellular;
25 public Long addressId;
26 public String alertMethodCd;
28 public String orgUserId;
29 public String orgCode;
30 public String address1;
31 public String address2;
34 public String zipCode;
35 public String country;
36 public String orgManagerUserId;
37 public String locationClli;
38 public String businessCountryCode;
39 public String businessCountryName;
40 public String businessUnit;
41 public String businessUnitName;
42 public String department;
43 public String departmentName;
44 public String companyCode;
45 public String company;
46 public String zipCodeSuffix;
47 public String jobTitle;
48 public String commandChain;
49 public String siloStatus;
50 public String costCenter;
51 public String financialLocCode;
53 public String loginId;
54 public String loginPwd;
55 public Date lastLoginDate;
56 public boolean active;
57 public boolean internal;
58 public Long selectedProfileId;
59 public Long timeZoneId;
60 public boolean online;
63 public Set<CentralUserApp> userApps = null;
64 public Set<CentralRole> pseudoRoles = null;
70 public CentralUser(Long id, Date created, Date modified, Long createdId, Long modifiedId, Long rowNum, Long orgId,
71 Long managerId, String firstName, String middleInitial, String lastName, String phone, String fax,
72 String cellular, String email, Long addressId, String alertMethodCd, String hrid, String orgUserId,
73 String orgCode, String address1, String address2, String city, String state, String zipCode, String country,
74 String orgManagerUserId, String locationClli, String businessCountryCode, String businessCountryName,
75 String businessUnit, String businessUnitName, String department, String departmentName, String companyCode,
76 String company, String zipCodeSuffix, String jobTitle, String commandChain, String siloStatus,
77 String costCenter, String financialLocCode, String loginId, String loginPwd, Date lastLoginDate,
78 boolean active, boolean internal, Long selectedProfileId, Long timeZoneId, boolean online, String chatId,
79 Set<CentralUserApp> userApps, Set<CentralRole> pseudoRoles) {
82 this.created = created;
83 this.modified = modified;
84 this.createdId = createdId;
85 this.modifiedId = modifiedId;
88 this.managerId = managerId;
89 this.firstName = firstName;
90 this.middleInitial = middleInitial;
91 this.lastName = lastName;
94 this.cellular = cellular;
96 this.addressId = addressId;
97 this.alertMethodCd = alertMethodCd;
99 this.orgUserId = orgUserId;
100 this.orgCode = orgCode;
101 this.address1 = address1;
102 this.address2 = address2;
105 this.zipCode = zipCode;
106 this.country = country;
107 this.orgManagerUserId = orgManagerUserId;
108 this.locationClli = locationClli;
109 this.businessCountryCode = businessCountryCode;
110 this.businessCountryName = businessCountryName;
111 this.businessUnit = businessUnit;
112 this.businessUnitName = businessUnitName;
113 this.department = department;
114 this.departmentName = departmentName;
115 this.companyCode = companyCode;
116 this.company = company;
117 this.zipCodeSuffix = zipCodeSuffix;
118 this.jobTitle = jobTitle;
119 this.commandChain = commandChain;
120 this.siloStatus = siloStatus;
121 this.costCenter = costCenter;
122 this.financialLocCode = financialLocCode;
123 this.loginId = loginId;
124 this.loginPwd = loginPwd;
125 this.lastLoginDate = lastLoginDate;
126 this.active = active;
127 this.internal = internal;
128 this.selectedProfileId = selectedProfileId;
129 this.timeZoneId = timeZoneId;
130 this.online = online;
131 this.chatId = chatId;
132 this.userApps = userApps;
133 this.pseudoRoles = pseudoRoles;
137 public int hashCode() {
138 final int prime = 31;
140 result = prime * result + (active ? 1231 : 1237);
141 result = prime * result + ((address1 == null) ? 0 : address1.hashCode());
142 result = prime * result + ((address2 == null) ? 0 : address2.hashCode());
143 result = prime * result + ((addressId == null) ? 0 : addressId.hashCode());
144 result = prime * result + ((alertMethodCd == null) ? 0 : alertMethodCd.hashCode());
145 result = prime * result + ((businessCountryCode == null) ? 0 : businessCountryCode.hashCode());
146 result = prime * result + ((businessCountryName == null) ? 0 : businessCountryName.hashCode());
147 result = prime * result + ((businessUnit == null) ? 0 : businessUnit.hashCode());
148 result = prime * result + ((businessUnitName == null) ? 0 : businessUnitName.hashCode());
149 result = prime * result + ((cellular == null) ? 0 : cellular.hashCode());
150 result = prime * result + ((chatId == null) ? 0 : chatId.hashCode());
151 result = prime * result + ((city == null) ? 0 : city.hashCode());
152 result = prime * result + ((commandChain == null) ? 0 : commandChain.hashCode());
153 result = prime * result + ((company == null) ? 0 : company.hashCode());
154 result = prime * result + ((companyCode == null) ? 0 : companyCode.hashCode());
155 result = prime * result + ((costCenter == null) ? 0 : costCenter.hashCode());
156 result = prime * result + ((country == null) ? 0 : country.hashCode());
157 result = prime * result + ((created == null) ? 0 : created.hashCode());
158 result = prime * result + ((createdId == null) ? 0 : createdId.hashCode());
159 result = prime * result + ((department == null) ? 0 : department.hashCode());
160 result = prime * result + ((departmentName == null) ? 0 : departmentName.hashCode());
161 result = prime * result + ((email == null) ? 0 : email.hashCode());
162 result = prime * result + ((fax == null) ? 0 : fax.hashCode());
163 result = prime * result + ((financialLocCode == null) ? 0 : financialLocCode.hashCode());
164 result = prime * result + ((firstName == null) ? 0 : firstName.hashCode());
165 result = prime * result + ((hrid == null) ? 0 : hrid.hashCode());
166 result = prime * result + ((id == null) ? 0 : id.hashCode());
167 result = prime * result + (internal ? 1231 : 1237);
168 result = prime * result + ((jobTitle == null) ? 0 : jobTitle.hashCode());
169 result = prime * result + ((lastLoginDate == null) ? 0 : lastLoginDate.hashCode());
170 result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
171 result = prime * result + ((locationClli == null) ? 0 : locationClli.hashCode());
172 result = prime * result + ((loginId == null) ? 0 : loginId.hashCode());
173 result = prime * result + ((loginPwd == null) ? 0 : loginPwd.hashCode());
174 result = prime * result + ((managerId == null) ? 0 : managerId.hashCode());
175 result = prime * result + ((middleInitial == null) ? 0 : middleInitial.hashCode());
176 result = prime * result + ((modified == null) ? 0 : modified.hashCode());
177 result = prime * result + ((modifiedId == null) ? 0 : modifiedId.hashCode());
178 result = prime * result + (online ? 1231 : 1237);
179 result = prime * result + ((orgCode == null) ? 0 : orgCode.hashCode());
180 result = prime * result + ((orgId == null) ? 0 : orgId.hashCode());
181 result = prime * result + ((orgManagerUserId == null) ? 0 : orgManagerUserId.hashCode());
182 result = prime * result + ((orgUserId == null) ? 0 : orgUserId.hashCode());
183 result = prime * result + ((phone == null) ? 0 : phone.hashCode());
184 result = prime * result + ((pseudoRoles == null) ? 0 : pseudoRoles.hashCode());
185 result = prime * result + ((rowNum == null) ? 0 : rowNum.hashCode());
186 result = prime * result + ((selectedProfileId == null) ? 0 : selectedProfileId.hashCode());
187 result = prime * result + ((siloStatus == null) ? 0 : siloStatus.hashCode());
188 result = prime * result + ((state == null) ? 0 : state.hashCode());
189 result = prime * result + ((timeZoneId == null) ? 0 : timeZoneId.hashCode());
190 result = prime * result + ((userApps == null) ? 0 : userApps.hashCode());
191 result = prime * result + ((zipCode == null) ? 0 : zipCode.hashCode());
192 result = prime * result + ((zipCodeSuffix == null) ? 0 : zipCodeSuffix.hashCode());
197 public boolean equals(Object obj) {
202 if (getClass() != obj.getClass())
204 CentralUser other = (CentralUser) obj;
205 if (active != other.active)
207 if (address1 == null) {
208 if (other.address1 != null)
210 } else if (!address1.equals(other.address1))
212 if (address2 == null) {
213 if (other.address2 != null)
215 } else if (!address2.equals(other.address2))
217 if (addressId == null) {
218 if (other.addressId != null)
220 } else if (!addressId.equals(other.addressId))
222 if (alertMethodCd == null) {
223 if (other.alertMethodCd != null)
225 } else if (!alertMethodCd.equals(other.alertMethodCd))
227 if (businessCountryCode == null) {
228 if (other.businessCountryCode != null)
230 } else if (!businessCountryCode.equals(other.businessCountryCode))
232 if (businessCountryName == null) {
233 if (other.businessCountryName != null)
235 } else if (!businessCountryName.equals(other.businessCountryName))
237 if (businessUnit == null) {
238 if (other.businessUnit != null)
240 } else if (!businessUnit.equals(other.businessUnit))
242 if (businessUnitName == null) {
243 if (other.businessUnitName != null)
245 } else if (!businessUnitName.equals(other.businessUnitName))
247 if (cellular == null) {
248 if (other.cellular != null)
250 } else if (!cellular.equals(other.cellular))
252 if (chatId == null) {
253 if (other.chatId != null)
255 } else if (!chatId.equals(other.chatId))
258 if (other.city != null)
260 } else if (!city.equals(other.city))
262 if (commandChain == null) {
263 if (other.commandChain != null)
265 } else if (!commandChain.equals(other.commandChain))
267 if (company == null) {
268 if (other.company != null)
270 } else if (!company.equals(other.company))
272 if (companyCode == null) {
273 if (other.companyCode != null)
275 } else if (!companyCode.equals(other.companyCode))
277 if (costCenter == null) {
278 if (other.costCenter != null)
280 } else if (!costCenter.equals(other.costCenter))
282 if (country == null) {
283 if (other.country != null)
285 } else if (!country.equals(other.country))
287 if (created == null) {
288 if (other.created != null)
290 } else if (!created.equals(other.created))
292 if (createdId == null) {
293 if (other.createdId != null)
295 } else if (!createdId.equals(other.createdId))
297 if (department == null) {
298 if (other.department != null)
300 } else if (!department.equals(other.department))
302 if (departmentName == null) {
303 if (other.departmentName != null)
305 } else if (!departmentName.equals(other.departmentName))
308 if (other.email != null)
310 } else if (!email.equals(other.email))
313 if (other.fax != null)
315 } else if (!fax.equals(other.fax))
317 if (financialLocCode == null) {
318 if (other.financialLocCode != null)
320 } else if (!financialLocCode.equals(other.financialLocCode))
322 if (firstName == null) {
323 if (other.firstName != null)
325 } else if (!firstName.equals(other.firstName))
328 if (other.hrid != null)
330 } else if (!hrid.equals(other.hrid))
333 if (other.id != null)
335 } else if (!id.equals(other.id))
337 if (internal != other.internal)
339 if (jobTitle == null) {
340 if (other.jobTitle != null)
342 } else if (!jobTitle.equals(other.jobTitle))
344 if (lastLoginDate == null) {
345 if (other.lastLoginDate != null)
347 } else if (!lastLoginDate.equals(other.lastLoginDate))
349 if (lastName == null) {
350 if (other.lastName != null)
352 } else if (!lastName.equals(other.lastName))
354 if (locationClli == null) {
355 if (other.locationClli != null)
357 } else if (!locationClli.equals(other.locationClli))
359 if (loginId == null) {
360 if (other.loginId != null)
362 } else if (!loginId.equals(other.loginId))
364 if (loginPwd == null) {
365 if (other.loginPwd != null)
367 } else if (!loginPwd.equals(other.loginPwd))
369 if (managerId == null) {
370 if (other.managerId != null)
372 } else if (!managerId.equals(other.managerId))
374 if (middleInitial == null) {
375 if (other.middleInitial != null)
377 } else if (!middleInitial.equals(other.middleInitial))
379 if (modified == null) {
380 if (other.modified != null)
382 } else if (!modified.equals(other.modified))
384 if (modifiedId == null) {
385 if (other.modifiedId != null)
387 } else if (!modifiedId.equals(other.modifiedId))
389 if (online != other.online)
391 if (orgCode == null) {
392 if (other.orgCode != null)
394 } else if (!orgCode.equals(other.orgCode))
397 if (other.orgId != null)
399 } else if (!orgId.equals(other.orgId))
401 if (orgManagerUserId == null) {
402 if (other.orgManagerUserId != null)
404 } else if (!orgManagerUserId.equals(other.orgManagerUserId))
406 if (orgUserId == null) {
407 if (other.orgUserId != null)
409 } else if (!orgUserId.equals(other.orgUserId))
412 if (other.phone != null)
414 } else if (!phone.equals(other.phone))
416 if (pseudoRoles == null) {
417 if (other.pseudoRoles != null)
419 } else if (!pseudoRoles.equals(other.pseudoRoles))
421 if (rowNum == null) {
422 if (other.rowNum != null)
424 } else if (!rowNum.equals(other.rowNum))
426 if (selectedProfileId == null) {
427 if (other.selectedProfileId != null)
429 } else if (!selectedProfileId.equals(other.selectedProfileId))
431 if (siloStatus == null) {
432 if (other.siloStatus != null)
434 } else if (!siloStatus.equals(other.siloStatus))
437 if (other.state != null)
439 } else if (!state.equals(other.state))
441 if (timeZoneId == null) {
442 if (other.timeZoneId != null)
444 } else if (!timeZoneId.equals(other.timeZoneId))
446 if (userApps == null) {
447 if (other.userApps != null)
449 } else if (!userApps.equals(other.userApps))
451 if (zipCode == null) {
452 if (other.zipCode != null)
454 } else if (!zipCode.equals(other.zipCode))
456 if (zipCodeSuffix == null) {
457 if (other.zipCodeSuffix != null)
459 } else if (!zipCodeSuffix.equals(other.zipCodeSuffix))