1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.impl.identity; |
17 | |
|
18 | |
import org.apache.commons.lang.StringUtils; |
19 | |
import org.kuali.rice.core.api.util.type.KualiDecimal; |
20 | |
import org.kuali.rice.kim.api.KimConstants; |
21 | |
import org.kuali.rice.kim.api.identity.IdentityService; |
22 | |
import org.kuali.rice.kim.api.identity.Person; |
23 | |
import org.kuali.rice.kim.api.identity.PersonService; |
24 | |
import org.kuali.rice.kim.api.identity.address.EntityAddress; |
25 | |
import org.kuali.rice.kim.api.identity.affiliation.EntityAffiliation; |
26 | |
import org.kuali.rice.kim.api.identity.affiliation.EntityAffiliationContract; |
27 | |
import org.kuali.rice.kim.api.identity.email.EntityEmailContract; |
28 | |
import org.kuali.rice.kim.api.identity.employment.EntityEmployment; |
29 | |
import org.kuali.rice.kim.api.identity.entity.EntityDefault; |
30 | |
import org.kuali.rice.kim.api.identity.external.EntityExternalIdentifier; |
31 | |
import org.kuali.rice.kim.api.identity.name.EntityName; |
32 | |
import org.kuali.rice.kim.api.identity.phone.EntityPhoneContract; |
33 | |
import org.kuali.rice.kim.api.identity.principal.Principal; |
34 | |
import org.kuali.rice.kim.api.identity.type.EntityTypeContactInfoDefault; |
35 | |
import org.kuali.rice.kim.api.services.KimApiServiceLocator; |
36 | |
import org.kuali.rice.kim.impl.identity.employment.EntityEmploymentStatusBo; |
37 | |
import org.kuali.rice.kim.impl.identity.employment.EntityEmploymentTypeBo; |
38 | |
import org.kuali.rice.krad.bo.TransientBusinessObjectBase; |
39 | |
|
40 | |
import java.util.ArrayList; |
41 | |
import java.util.HashMap; |
42 | |
import java.util.List; |
43 | |
import java.util.Map; |
44 | |
|
45 | |
public class PersonImpl extends TransientBusinessObjectBase implements Person { |
46 | |
|
47 | |
private static final long serialVersionUID = 1L; |
48 | |
|
49 | |
protected static PersonService personService; |
50 | |
protected static IdentityService identityService; |
51 | |
|
52 | |
private String lookupRoleNamespaceCode; |
53 | |
private String lookupRoleName; |
54 | |
|
55 | |
|
56 | |
protected String principalId; |
57 | |
protected String principalName; |
58 | |
protected String entityId; |
59 | |
protected String entityTypeCode; |
60 | |
|
61 | 0 | protected String firstName = ""; |
62 | 0 | protected String middleName = ""; |
63 | 0 | protected String lastName = ""; |
64 | |
|
65 | 0 | protected String name = ""; |
66 | |
|
67 | |
protected EntityAddress address; |
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
|
73 | |
|
74 | |
|
75 | |
|
76 | 0 | protected String emailAddress = ""; |
77 | |
|
78 | 0 | protected String phoneNumber = ""; |
79 | |
|
80 | 0 | protected boolean suppressName = false; |
81 | 0 | protected boolean suppressAddress = false; |
82 | 0 | protected boolean suppressPhone = false; |
83 | 0 | protected boolean suppressPersonal = false; |
84 | 0 | protected boolean suppressEmail = false; |
85 | |
|
86 | |
protected List<? extends EntityAffiliationContract> affiliations; |
87 | |
|
88 | 0 | protected String campusCode = ""; |
89 | |
|
90 | |
|
91 | 0 | protected Map<String,String> externalIdentifiers = null; |
92 | |
|
93 | 0 | protected String employeeStatusCode = ""; |
94 | |
protected EntityEmploymentStatusBo employeeStatus; |
95 | 0 | protected String employeeTypeCode = ""; |
96 | |
protected EntityEmploymentTypeBo employeeType; |
97 | 0 | protected String primaryDepartmentCode = ""; |
98 | 0 | protected String employeeId = ""; |
99 | |
|
100 | 0 | protected KualiDecimal baseSalaryAmount = KualiDecimal.ZERO; |
101 | 0 | protected boolean active = true; |
102 | |
|
103 | 0 | public PersonImpl() {} |
104 | |
|
105 | |
public PersonImpl( Principal principal, String personEntityTypeCode ) { |
106 | 0 | this( principal, null, personEntityTypeCode ); |
107 | 0 | } |
108 | |
|
109 | 0 | public PersonImpl( Principal principal, EntityDefault entity, String personEntityTypeCode ) { |
110 | 0 | setPrincipal( principal, entity, personEntityTypeCode ); |
111 | 0 | } |
112 | |
|
113 | |
public PersonImpl( String principalId, String personEntityTypeCode ) { |
114 | 0 | this( getIdentityService().getPrincipal(principalId), personEntityTypeCode ); |
115 | 0 | } |
116 | |
|
117 | 0 | public PersonImpl( EntityDefaultInfoCacheBo p ) { |
118 | 0 | entityId = p.getEntityId(); |
119 | 0 | principalId = p.getPrincipalId(); |
120 | 0 | principalName = p.getPrincipalName(); |
121 | 0 | entityTypeCode = p.getEntityTypeCode(); |
122 | 0 | firstName = p.getFirstName(); |
123 | 0 | middleName = p.getMiddleName(); |
124 | 0 | lastName = p.getLastName(); |
125 | 0 | name = p.getName(); |
126 | 0 | campusCode = p.getCampusCode(); |
127 | 0 | primaryDepartmentCode = p.getPrimaryDepartmentCode(); |
128 | 0 | employeeId = p.getEmployeeId(); |
129 | 0 | affiliations = new ArrayList<EntityAffiliation>( 0 ); |
130 | 0 | externalIdentifiers = new HashMap<String,String>( 0 ); |
131 | 0 | } |
132 | |
|
133 | |
|
134 | |
|
135 | |
|
136 | |
public void setPrincipal(Principal principal, EntityDefault entity, String personEntityTypeCode) { |
137 | 0 | populatePrincipalInfo( principal ); |
138 | 0 | if ( entity == null ) { |
139 | 0 | entity = getIdentityService().getEntityDefault( principal.getEntityId() ); |
140 | |
} |
141 | 0 | populateEntityInfo( entity, principal, personEntityTypeCode ); |
142 | 0 | } |
143 | |
|
144 | |
|
145 | |
protected void populatePrincipalInfo( Principal principal ) { |
146 | 0 | entityId = principal.getEntityId(); |
147 | 0 | principalId = principal.getPrincipalId(); |
148 | 0 | principalName = principal.getPrincipalName(); |
149 | 0 | active = principal.isActive(); |
150 | 0 | } |
151 | |
|
152 | |
protected void populateEntityInfo( EntityDefault entity, Principal principal, String personEntityTypeCode ) { |
153 | 0 | if(entity!=null){ |
154 | 0 | populatePrivacyInfo (entity ); |
155 | 0 | EntityTypeContactInfoDefault entityTypeContactInfoDefault = entity.getEntityType( personEntityTypeCode ); |
156 | 0 | entityTypeCode = personEntityTypeCode; |
157 | 0 | populateNameInfo( personEntityTypeCode, entity, principal ); |
158 | 0 | populateAddressInfo( entityTypeContactInfoDefault ); |
159 | 0 | populateEmailInfo( entityTypeContactInfoDefault ); |
160 | 0 | populatePhoneInfo( entityTypeContactInfoDefault ); |
161 | 0 | populateAffiliationInfo( entity ); |
162 | 0 | populateEmploymentInfo( entity ); |
163 | 0 | populateExternalIdentifiers( entity ); |
164 | |
} |
165 | 0 | } |
166 | |
|
167 | |
protected void populateNameInfo( String entityTypeCode, EntityDefault entity, Principal principal ) { |
168 | 0 | if(entity!=null){ |
169 | 0 | EntityName entityName = entity.getName(); |
170 | 0 | if ( entityName != null ) { |
171 | 0 | firstName = unNullify( entityName.getFirstName()); |
172 | 0 | middleName = unNullify( entityName.getMiddleName() ); |
173 | 0 | lastName = unNullify( entityName.getLastName() ); |
174 | 0 | if ( entityTypeCode.equals( KimConstants.EntityTypes.SYSTEM ) ) { |
175 | 0 | name = principal.getPrincipalName().toUpperCase(); |
176 | |
} else { |
177 | 0 | name = unNullify( entityName.getCompositeName() ); |
178 | 0 | if(name.equals("") || name == null){ |
179 | 0 | name = lastName + ", " + firstName; |
180 | |
} |
181 | |
} |
182 | |
} else { |
183 | 0 | firstName = ""; |
184 | 0 | middleName = ""; |
185 | 0 | if ( entityTypeCode.equals( KimConstants.EntityTypes.SYSTEM ) ) { |
186 | 0 | name = principal.getPrincipalName().toUpperCase(); |
187 | 0 | lastName = principal.getPrincipalName().toUpperCase(); |
188 | |
} else { |
189 | 0 | name = ""; |
190 | 0 | lastName = ""; |
191 | |
} |
192 | |
} |
193 | |
} |
194 | 0 | } |
195 | |
|
196 | |
protected void populatePrivacyInfo (EntityDefault entity) { |
197 | 0 | if(entity!=null) { |
198 | 0 | if (entity.getPrivacyPreferences() != null) { |
199 | 0 | suppressName = entity.getPrivacyPreferences().isSuppressName(); |
200 | 0 | suppressAddress = entity.getPrivacyPreferences().isSuppressAddress(); |
201 | 0 | suppressPhone = entity.getPrivacyPreferences().isSuppressPhone(); |
202 | 0 | suppressPersonal = entity.getPrivacyPreferences().isSuppressPersonal(); |
203 | 0 | suppressEmail = entity.getPrivacyPreferences().isSuppressEmail(); |
204 | |
} |
205 | |
} |
206 | 0 | } |
207 | |
|
208 | |
protected void populateAddressInfo( EntityTypeContactInfoDefault contactInfoDefault ) { |
209 | 0 | if(contactInfoDefault!=null){ |
210 | 0 | EntityAddress defaultAddress = contactInfoDefault.getDefaultAddress(); |
211 | 0 | if ( defaultAddress != null ) { |
212 | 0 | address = defaultAddress; |
213 | |
} else { |
214 | 0 | EntityAddress.Builder builder = EntityAddress.Builder.create(); |
215 | 0 | builder.setCity(""); |
216 | 0 | builder.setCountryCode(""); |
217 | 0 | builder.setLine1(""); |
218 | 0 | builder.setLine2(""); |
219 | 0 | builder.setLine3(""); |
220 | 0 | builder.setCity(""); |
221 | 0 | builder.setPostalCode(""); |
222 | 0 | builder.setStateProvinceCode(""); |
223 | 0 | builder.setActive(true); |
224 | 0 | address = builder.build(); |
225 | |
} |
226 | |
} |
227 | 0 | } |
228 | |
|
229 | |
protected void populateEmailInfo( EntityTypeContactInfoDefault contactInfoDefault ) { |
230 | 0 | if(contactInfoDefault!=null){ |
231 | 0 | EntityEmailContract entityEmail = contactInfoDefault.getDefaultEmailAddress(); |
232 | 0 | if ( entityEmail != null ) { |
233 | 0 | emailAddress = unNullify( entityEmail.getEmailAddressUnmasked() ); |
234 | |
} else { |
235 | 0 | emailAddress = ""; |
236 | |
} |
237 | |
} |
238 | 0 | } |
239 | |
|
240 | |
protected void populatePhoneInfo( EntityTypeContactInfoDefault contactInfoDefault ) { |
241 | 0 | if(contactInfoDefault!=null){ |
242 | 0 | EntityPhoneContract entityPhone = contactInfoDefault.getDefaultPhoneNumber(); |
243 | 0 | if ( entityPhone != null ) { |
244 | 0 | phoneNumber = unNullify( entityPhone.getFormattedPhoneNumberUnmasked() ); |
245 | |
} else { |
246 | 0 | phoneNumber = ""; |
247 | |
} |
248 | |
} |
249 | 0 | } |
250 | |
|
251 | |
protected void populateAffiliationInfo(EntityDefault entity ) { |
252 | 0 | if(entity!=null){ |
253 | 0 | affiliations = entity.getAffiliations(); |
254 | 0 | EntityAffiliation defaultAffiliation = entity.getDefaultAffiliation(); |
255 | 0 | if ( defaultAffiliation != null ) { |
256 | 0 | campusCode = unNullify( defaultAffiliation.getCampusCode() ); |
257 | |
} else { |
258 | 0 | campusCode = ""; |
259 | |
} |
260 | |
} |
261 | 0 | } |
262 | |
|
263 | |
protected void populateEmploymentInfo( EntityDefault entity ) { |
264 | 0 | if(entity!=null){ |
265 | 0 | EntityEmployment employmentInformation = entity.getEmployment(); |
266 | 0 | if ( employmentInformation != null ) { |
267 | 0 | employeeStatusCode = unNullify( employmentInformation.getEmployeeStatus() != null ? employmentInformation.getEmployeeStatus().getCode() : null); |
268 | 0 | employeeTypeCode = unNullify( employmentInformation.getEmployeeType() != null ? employmentInformation.getEmployeeStatus().getCode() : null); |
269 | 0 | primaryDepartmentCode = unNullify( employmentInformation.getPrimaryDepartmentCode() ); |
270 | 0 | employeeId = unNullify( employmentInformation.getEmployeeId() ); |
271 | 0 | if ( employmentInformation.getBaseSalaryAmount() != null ) { |
272 | 0 | baseSalaryAmount = employmentInformation.getBaseSalaryAmount(); |
273 | |
} else { |
274 | 0 | baseSalaryAmount = KualiDecimal.ZERO; |
275 | |
} |
276 | |
} else { |
277 | 0 | employeeStatusCode = ""; |
278 | 0 | employeeTypeCode = ""; |
279 | 0 | primaryDepartmentCode = ""; |
280 | 0 | employeeId = ""; |
281 | 0 | baseSalaryAmount = KualiDecimal.ZERO; |
282 | |
} |
283 | |
} |
284 | 0 | } |
285 | |
|
286 | |
protected void populateExternalIdentifiers( EntityDefault entity ) { |
287 | 0 | if(entity!=null){ |
288 | 0 | List<? extends EntityExternalIdentifier> externalIds = entity.getExternalIdentifiers(); |
289 | 0 | externalIdentifiers = new HashMap<String,String>( externalIds.size() ); |
290 | 0 | for ( EntityExternalIdentifier eei : externalIds ) { |
291 | 0 | externalIdentifiers.put( eei.getExternalIdentifierTypeCode(), eei.getExternalId() ); |
292 | |
} |
293 | |
} |
294 | 0 | } |
295 | |
|
296 | |
|
297 | |
private String unNullify( String str ) { |
298 | 0 | if ( str == null ) { |
299 | 0 | return ""; |
300 | |
} |
301 | 0 | return str; |
302 | |
} |
303 | |
|
304 | |
|
305 | |
|
306 | |
|
307 | |
public String getEntityId() { |
308 | 0 | return entityId; |
309 | |
} |
310 | |
|
311 | |
|
312 | |
|
313 | |
|
314 | |
public String getPrincipalId() { |
315 | 0 | return principalId; |
316 | |
} |
317 | |
|
318 | |
|
319 | |
|
320 | |
|
321 | |
|
322 | |
|
323 | |
public String getPrincipalName() { |
324 | 0 | return principalName; |
325 | |
} |
326 | |
|
327 | |
|
328 | |
|
329 | |
|
330 | |
public String getFirstName() { |
331 | 0 | if (KimInternalSuppressUtils.isSuppressName(getEntityId())){ |
332 | 0 | return KimConstants.RESTRICTED_DATA_MASK; |
333 | |
} |
334 | 0 | return firstName; |
335 | |
} |
336 | |
|
337 | |
|
338 | |
|
339 | |
|
340 | |
public String getFirstNameUnmasked() { |
341 | 0 | return firstName; |
342 | |
} |
343 | |
|
344 | |
|
345 | |
|
346 | |
|
347 | |
public String getMiddleName() { |
348 | 0 | if (KimInternalSuppressUtils.isSuppressName(getEntityId())){ |
349 | 0 | return KimConstants.RESTRICTED_DATA_MASK; |
350 | |
} |
351 | 0 | return middleName; |
352 | |
} |
353 | |
|
354 | |
|
355 | |
|
356 | |
|
357 | |
public String getMiddleNameUnmasked() { |
358 | 0 | return middleName; |
359 | |
} |
360 | |
|
361 | |
|
362 | |
|
363 | |
|
364 | |
public String getLastName() { |
365 | 0 | if (KimInternalSuppressUtils.isSuppressName(getEntityId())){ |
366 | 0 | return KimConstants.RESTRICTED_DATA_MASK; |
367 | |
} |
368 | 0 | return lastName; |
369 | |
} |
370 | |
|
371 | |
|
372 | |
|
373 | |
|
374 | |
public String getLastNameUnmasked() { |
375 | 0 | return lastName; |
376 | |
} |
377 | |
|
378 | |
|
379 | |
|
380 | |
|
381 | |
public String getName() { |
382 | 0 | if (StringUtils.isNotBlank(getEntityId()) && KimInternalSuppressUtils.isSuppressName(getEntityId())) { |
383 | 0 | return KimConstants.RESTRICTED_DATA_MASK; |
384 | |
} |
385 | 0 | return name; |
386 | |
} |
387 | |
|
388 | |
public String getNameUnmasked() { |
389 | 0 | return this.name; |
390 | |
} |
391 | |
|
392 | |
|
393 | |
|
394 | |
|
395 | |
public String getPhoneNumber() { |
396 | 0 | if (KimInternalSuppressUtils.isSuppressPhone(getEntityId())){ |
397 | 0 | return KimConstants.RESTRICTED_DATA_MASK; |
398 | |
} |
399 | 0 | return phoneNumber; |
400 | |
} |
401 | |
|
402 | |
|
403 | |
|
404 | |
|
405 | |
public String getPhoneNumberUnmasked() { |
406 | 0 | return phoneNumber; |
407 | |
} |
408 | |
|
409 | |
|
410 | |
|
411 | |
|
412 | |
public String getEmailAddress() { |
413 | 0 | if (KimInternalSuppressUtils.isSuppressEmail(getEntityId())){ |
414 | 0 | return KimConstants.RESTRICTED_DATA_MASK; |
415 | |
} |
416 | 0 | return emailAddress; |
417 | |
} |
418 | |
|
419 | |
public String getEmailAddressUnmasked() { |
420 | 0 | return emailAddress; |
421 | |
} |
422 | |
|
423 | |
public List<? extends EntityAffiliationContract> getAffiliations() { |
424 | 0 | return affiliations; |
425 | |
} |
426 | |
|
427 | |
|
428 | |
|
429 | |
|
430 | |
|
431 | |
|
432 | |
public boolean hasAffiliationOfType(String affiliationTypeCode) { |
433 | 0 | return getCampusCodesForAffiliationOfType(affiliationTypeCode).size() > 0; |
434 | |
} |
435 | |
|
436 | |
|
437 | |
public List<String> getCampusCodesForAffiliationOfType(String affiliationTypeCode) { |
438 | 0 | ArrayList<String> campusCodes = new ArrayList<String>( 3 ); |
439 | 0 | if ( affiliationTypeCode == null ) { |
440 | 0 | return campusCodes; |
441 | |
} |
442 | 0 | for ( EntityAffiliationContract a : getAffiliations() ) { |
443 | 0 | if ( a.getAffiliationType().getCode().equals(affiliationTypeCode) ) { |
444 | 0 | campusCodes.add( a.getCampusCode() ); |
445 | |
} |
446 | |
} |
447 | 0 | return campusCodes; |
448 | |
} |
449 | |
|
450 | |
|
451 | |
|
452 | |
|
453 | |
public String getExternalId(String externalIdentifierTypeCode) { |
454 | 0 | return externalIdentifiers.get( externalIdentifierTypeCode ); |
455 | |
} |
456 | |
|
457 | |
|
458 | |
|
459 | |
|
460 | |
|
461 | |
|
462 | |
public String getCampusCode() { |
463 | 0 | return campusCode; |
464 | |
} |
465 | |
|
466 | |
|
467 | |
|
468 | |
|
469 | |
@SuppressWarnings("unchecked") |
470 | |
public static PersonService getPersonService() { |
471 | 0 | if ( personService == null ) { |
472 | 0 | personService = KimApiServiceLocator.getPersonService(); |
473 | |
} |
474 | 0 | return personService; |
475 | |
} |
476 | |
|
477 | |
|
478 | |
|
479 | |
|
480 | |
public static IdentityService getIdentityService() { |
481 | 0 | if ( identityService == null ) { |
482 | 0 | identityService = KimApiServiceLocator.getIdentityService(); |
483 | |
} |
484 | 0 | return identityService; |
485 | |
} |
486 | |
|
487 | |
|
488 | |
|
489 | |
|
490 | |
public Map<String,String> getExternalIdentifiers() { |
491 | 0 | return externalIdentifiers; |
492 | |
} |
493 | |
|
494 | |
public String getAddressLine1() { |
495 | 0 | return address.getLine1(); |
496 | |
} |
497 | |
|
498 | |
public String getAddressLine1Unmasked() { |
499 | 0 | return address.getLine1Unmasked(); |
500 | |
} |
501 | |
|
502 | |
public String getAddressLine2() { |
503 | 0 | return address.getLine2(); |
504 | |
} |
505 | |
|
506 | |
public String getAddressLine2Unmasked() { |
507 | 0 | return address.getLine2Unmasked(); |
508 | |
} |
509 | |
|
510 | |
public String getAddressLine3() { |
511 | 0 | return address.getLine3(); |
512 | |
} |
513 | |
|
514 | |
public String getAddressLine3Unmasked() { |
515 | 0 | return address.getLine3Unmasked(); |
516 | |
} |
517 | |
|
518 | |
public String getAddressCity() { |
519 | 0 | return address.getCity(); |
520 | |
} |
521 | |
|
522 | |
public String getAddressCityUnmasked() { |
523 | 0 | return address.getCityUnmasked(); |
524 | |
} |
525 | |
|
526 | |
public String getAddressStateProvinceCode() { |
527 | 0 | return address.getStateProvinceCode(); |
528 | |
} |
529 | |
|
530 | |
public String getAddressStateProvinceCodeUnmasked() { |
531 | 0 | return address.getStateProvinceCodeUnmasked(); |
532 | |
} |
533 | |
|
534 | |
public String getAddressPostalCode() { |
535 | 0 | return address.getPostalCode(); |
536 | |
} |
537 | |
|
538 | |
public String getAddressPostalCodeUnmasked() { |
539 | 0 | return address.getPostalCodeUnmasked(); |
540 | |
} |
541 | |
|
542 | |
public String getAddressCountryCode() { |
543 | 0 | return address.getCountryCode(); |
544 | |
} |
545 | |
|
546 | |
public String getAddressCountryCodeUnmasked() { |
547 | 0 | return address.getCountryCodeUnmasked(); |
548 | |
} |
549 | |
|
550 | |
public String getEmployeeStatusCode() { |
551 | 0 | return this.employeeStatusCode; |
552 | |
} |
553 | |
|
554 | |
public String getEmployeeTypeCode() { |
555 | 0 | return this.employeeTypeCode; |
556 | |
} |
557 | |
|
558 | |
public KualiDecimal getBaseSalaryAmount() { |
559 | 0 | return this.baseSalaryAmount; |
560 | |
} |
561 | |
|
562 | |
public String getEmployeeId() { |
563 | 0 | return this.employeeId; |
564 | |
} |
565 | |
|
566 | |
public String getPrimaryDepartmentCode() { |
567 | 0 | return this.primaryDepartmentCode; |
568 | |
} |
569 | |
|
570 | |
public String getEntityTypeCode() { |
571 | 0 | return this.entityTypeCode; |
572 | |
} |
573 | |
|
574 | |
public boolean isActive() { |
575 | 0 | return this.active; |
576 | |
} |
577 | |
|
578 | |
public void setActive(boolean active) { |
579 | 0 | this.active = active; |
580 | 0 | } |
581 | |
|
582 | |
|
583 | |
|
584 | |
|
585 | |
public String getLookupRoleNamespaceCode() { |
586 | 0 | return this.lookupRoleNamespaceCode; |
587 | |
} |
588 | |
|
589 | |
|
590 | |
|
591 | |
|
592 | |
public void setLookupRoleNamespaceCode(String lookupRoleNamespaceCode) { |
593 | 0 | this.lookupRoleNamespaceCode = lookupRoleNamespaceCode; |
594 | 0 | } |
595 | |
|
596 | |
|
597 | |
|
598 | |
|
599 | |
public String getLookupRoleName() { |
600 | 0 | return this.lookupRoleName; |
601 | |
} |
602 | |
|
603 | |
|
604 | |
|
605 | |
|
606 | |
public void setLookupRoleName(String lookupRoleName) { |
607 | 0 | this.lookupRoleName = lookupRoleName; |
608 | 0 | } |
609 | |
|
610 | |
|
611 | |
|
612 | |
|
613 | |
public void setPrincipalName(String principalName) { |
614 | 0 | this.principalName = principalName; |
615 | 0 | } |
616 | |
|
617 | |
|
618 | |
|
619 | |
|
620 | |
public void setName(String name) { |
621 | 0 | this.name = name; |
622 | 0 | } |
623 | |
|
624 | |
|
625 | |
|
626 | |
|
627 | |
|
628 | |
public EntityEmploymentStatusBo getEmployeeStatus() { |
629 | 0 | return this.employeeStatus; |
630 | |
} |
631 | |
|
632 | |
public EntityEmploymentTypeBo getEmployeeType() { |
633 | 0 | return this.employeeType; |
634 | |
} |
635 | |
} |