org.kuali.rice.kim.impl.identity
Class PersonImpl

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.TransientBusinessObjectBase
          extended by org.kuali.rice.kim.impl.identity.PersonImpl
All Implemented Interfaces:
Serializable, ModelObjectBasic, Person, BusinessObject, ExternalizableBusinessObject

public class PersonImpl
extends TransientBusinessObjectBase
implements Person

See Also:
Serialized Form

Field Summary
protected  boolean active
           
protected  EntityAddress address
           
protected  List<? extends EntityAffiliationContract> affiliations
           
protected  KualiDecimal baseSalaryAmount
           
protected  String campusCode
           
protected  String emailAddress
           
protected  String employeeId
           
protected  org.kuali.rice.kim.impl.identity.employment.EntityEmploymentStatusBo employeeStatus
           
protected  String employeeStatusCode
           
protected  org.kuali.rice.kim.impl.identity.employment.EntityEmploymentTypeBo employeeType
           
protected  String employeeTypeCode
           
protected  String entityId
           
protected  String entityTypeCode
           
protected  Map<String,String> externalIdentifiers
           
protected  String firstName
           
protected static IdentityService identityService
           
protected  String lastName
           
protected  String middleName
           
protected  String name
           
protected static PersonService personService
           
protected  String phoneNumber
           
protected  String primaryDepartmentCode
           
protected  String principalId
           
protected  String principalName
           
protected  boolean suppressAddress
           
protected  boolean suppressEmail
           
protected  boolean suppressName
           
protected  boolean suppressPersonal
           
protected  boolean suppressPhone
           
 
Constructor Summary
PersonImpl()
           
PersonImpl(org.kuali.rice.kim.impl.identity.EntityDefaultInfoCacheBo p)
           
PersonImpl(Principal principal, EntityDefault entity, String personEntityTypeCode)
           
PersonImpl(Principal principal, String personEntityTypeCode)
           
PersonImpl(String principalId, String personEntityTypeCode)
           
 
Method Summary
 String getAddressCity()
          Returns the city name from the default address for the Person.
 String getAddressCityUnmasked()
           
 String getAddressCountryCode()
          Returns the country code from the default address for the Person.
 String getAddressCountryCodeUnmasked()
           
 String getAddressLine1()
          Returns line1 of the default address for the Person.
 String getAddressLine1Unmasked()
           
 String getAddressLine2()
          Returns line2 of the default address for the Person.
 String getAddressLine2Unmasked()
           
 String getAddressLine3()
          Returns line3 of the default address for the Person.
 String getAddressLine3Unmasked()
           
 String getAddressPostalCode()
          Returns the postal code from the default address for the Person.
 String getAddressPostalCodeUnmasked()
           
 String getAddressStateProvinceCode()
          Returns the state code from the default address for the Person.
 String getAddressStateProvinceCodeUnmasked()
           
 List<? extends EntityAffiliationContract> getAffiliations()
           
 KualiDecimal getBaseSalaryAmount()
           
 String getCampusCode()
          Pulls the campus code from the default affiliation for the identity.
 List<String> getCampusCodesForAffiliationOfType(String affiliationTypeCode)
           
 String getEmailAddress()
           
 String getEmailAddressUnmasked()
           
 String getEmployeeId()
           
 org.kuali.rice.kim.impl.identity.employment.EntityEmploymentStatusBo getEmployeeStatus()
           
 String getEmployeeStatusCode()
           
 org.kuali.rice.kim.impl.identity.employment.EntityEmploymentTypeBo getEmployeeType()
           
 String getEmployeeTypeCode()
           
 String getEntityId()
           
 String getEntityTypeCode()
           
 String getExternalId(String externalIdentifierTypeCode)
           
 Map<String,String> getExternalIdentifiers()
           
 String getFirstName()
          The first name from the default name record for the entity.
 String getFirstNameUnmasked()
           
static IdentityService getIdentityService()
           
 String getLastName()
           
 String getLastNameUnmasked()
           
 String getLookupRoleName()
           
 String getLookupRoleNamespaceCode()
           
 String getMiddleName()
           
 String getMiddleNameUnmasked()
           
 String getName()
           
 String getNameUnmasked()
           
static PersonService getPersonService()
           
 String getPhoneNumber()
          Returns the default phone number for the entity.
 String getPhoneNumberUnmasked()
           
 String getPrimaryDepartmentCode()
           
 String getPrincipalId()
           
 String getPrincipalName()
          This overridden method ...
 boolean hasAffiliationOfType(String affiliationTypeCode)
          This overridden method ...
 boolean isActive()
           
protected  void populateAddressInfo(EntityTypeContactInfoDefault contactInfoDefault)
           
protected  void populateAffiliationInfo(EntityDefault entity)
           
protected  void populateEmailInfo(EntityTypeContactInfoDefault contactInfoDefault)
           
protected  void populateEmploymentInfo(EntityDefault entity)
           
protected  void populateEntityInfo(EntityDefault entity, Principal principal, String personEntityTypeCode)
           
protected  void populateExternalIdentifiers(EntityDefault entity)
           
protected  void populateNameInfo(String entityTypeCode, EntityDefault entity, Principal principal)
           
protected  void populatePhoneInfo(EntityTypeContactInfoDefault contactInfoDefault)
           
protected  void populatePrincipalInfo(Principal principal)
           
protected  void populatePrivacyInfo(EntityDefault entity)
           
 void setActive(boolean active)
           
 void setLookupRoleName(String lookupRoleName)
           
 void setLookupRoleNamespaceCode(String lookupRoleNamespaceCode)
           
 void setName(String name)
           
 void setPrincipal(Principal principal, EntityDefault entity, String personEntityTypeCode)
          Sets the principal object and populates the person object from that.
 void setPrincipalName(String principalName)
           
 
Methods inherited from class org.kuali.rice.krad.bo.TransientBusinessObjectBase
refresh
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.bo.BusinessObject
refresh
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Field Detail

personService

protected static PersonService personService

identityService

protected static IdentityService identityService

principalId

protected String principalId

principalName

protected String principalName

entityId

protected String entityId

entityTypeCode

protected String entityTypeCode

firstName

protected String firstName

middleName

protected String middleName

lastName

protected String lastName

name

protected String name

address

protected EntityAddress address

emailAddress

protected String emailAddress

phoneNumber

protected String phoneNumber

suppressName

protected boolean suppressName

suppressAddress

protected boolean suppressAddress

suppressPhone

protected boolean suppressPhone

suppressPersonal

protected boolean suppressPersonal

suppressEmail

protected boolean suppressEmail

affiliations

protected List<? extends EntityAffiliationContract> affiliations

campusCode

protected String campusCode

externalIdentifiers

protected Map<String,String> externalIdentifiers

employeeStatusCode

protected String employeeStatusCode

employeeStatus

protected org.kuali.rice.kim.impl.identity.employment.EntityEmploymentStatusBo employeeStatus

employeeTypeCode

protected String employeeTypeCode

employeeType

protected org.kuali.rice.kim.impl.identity.employment.EntityEmploymentTypeBo employeeType

primaryDepartmentCode

protected String primaryDepartmentCode

employeeId

protected String employeeId

baseSalaryAmount

protected KualiDecimal baseSalaryAmount

active

protected boolean active
Constructor Detail

PersonImpl

public PersonImpl()

PersonImpl

public PersonImpl(Principal principal,
                  String personEntityTypeCode)

PersonImpl

public PersonImpl(Principal principal,
                  EntityDefault entity,
                  String personEntityTypeCode)

PersonImpl

public PersonImpl(String principalId,
                  String personEntityTypeCode)

PersonImpl

public PersonImpl(org.kuali.rice.kim.impl.identity.EntityDefaultInfoCacheBo p)
Method Detail

setPrincipal

public void setPrincipal(Principal principal,
                         EntityDefault entity,
                         String personEntityTypeCode)
Sets the principal object and populates the person object from that.


populatePrincipalInfo

protected void populatePrincipalInfo(Principal principal)

populateEntityInfo

protected void populateEntityInfo(EntityDefault entity,
                                  Principal principal,
                                  String personEntityTypeCode)

populateNameInfo

protected void populateNameInfo(String entityTypeCode,
                                EntityDefault entity,
                                Principal principal)

populatePrivacyInfo

protected void populatePrivacyInfo(EntityDefault entity)

populateAddressInfo

protected void populateAddressInfo(EntityTypeContactInfoDefault contactInfoDefault)

populateEmailInfo

protected void populateEmailInfo(EntityTypeContactInfoDefault contactInfoDefault)

populatePhoneInfo

protected void populatePhoneInfo(EntityTypeContactInfoDefault contactInfoDefault)

populateAffiliationInfo

protected void populateAffiliationInfo(EntityDefault entity)

populateEmploymentInfo

protected void populateEmploymentInfo(EntityDefault entity)

populateExternalIdentifiers

protected void populateExternalIdentifiers(EntityDefault entity)

getEntityId

public String getEntityId()
Specified by:
getEntityId in interface Person
See Also:
Person.getEntityId()

getPrincipalId

public String getPrincipalId()
Specified by:
getPrincipalId in interface Person
See Also:
Person.getPrincipalId()

getPrincipalName

public String getPrincipalName()
This overridden method ...

Specified by:
getPrincipalName in interface Person
See Also:
Person.getPrincipalName()

getFirstName

public String getFirstName()
Description copied from interface: Person
The first name from the default name record for the entity.

Specified by:
getFirstName in interface Person
See Also:
Person.getFirstName()

getFirstNameUnmasked

public String getFirstNameUnmasked()
Specified by:
getFirstNameUnmasked in interface Person
See Also:
Person.getFirstNameUnmasked()

getMiddleName

public String getMiddleName()
Specified by:
getMiddleName in interface Person
See Also:
Person.getMiddleName()

getMiddleNameUnmasked

public String getMiddleNameUnmasked()
Specified by:
getMiddleNameUnmasked in interface Person
See Also:
Person.getMiddleNameUnmasked()

getLastName

public String getLastName()
Specified by:
getLastName in interface Person
See Also:
Person.getLastName()

getLastNameUnmasked

public String getLastNameUnmasked()
Specified by:
getLastNameUnmasked in interface Person
See Also:
Person.getLastNameUnmasked()

getName

public String getName()
Specified by:
getName in interface Person
See Also:
Person.getName()

getNameUnmasked

public String getNameUnmasked()
Specified by:
getNameUnmasked in interface Person

getPhoneNumber

public String getPhoneNumber()
Description copied from interface: Person
Returns the default phone number for the entity.

Specified by:
getPhoneNumber in interface Person
See Also:
Person.getPhoneNumber()

getPhoneNumberUnmasked

public String getPhoneNumberUnmasked()
Specified by:
getPhoneNumberUnmasked in interface Person
See Also:
Person.getPhoneNumberUnmasked()

getEmailAddress

public String getEmailAddress()
Specified by:
getEmailAddress in interface Person
See Also:
Person.getEmailAddress()

getEmailAddressUnmasked

public String getEmailAddressUnmasked()
Specified by:
getEmailAddressUnmasked in interface Person

getAffiliations

public List<? extends EntityAffiliationContract> getAffiliations()

hasAffiliationOfType

public boolean hasAffiliationOfType(String affiliationTypeCode)
This overridden method ...

Specified by:
hasAffiliationOfType in interface Person
See Also:
Person.hasAffiliationOfType(java.lang.String)

getCampusCodesForAffiliationOfType

public List<String> getCampusCodesForAffiliationOfType(String affiliationTypeCode)
Specified by:
getCampusCodesForAffiliationOfType in interface Person

getExternalId

public String getExternalId(String externalIdentifierTypeCode)
Specified by:
getExternalId in interface Person
See Also:
Person.getExternalId(java.lang.String)

getCampusCode

public String getCampusCode()
Pulls the campus code from the default affiliation for the identity. Returns null if no default affiliation is set.

Specified by:
getCampusCode in interface Person
See Also:
Person.getCampusCode()

getPersonService

public static PersonService getPersonService()
Returns:
the personService

getIdentityService

public static IdentityService getIdentityService()
Returns:
the identityService

getExternalIdentifiers

public Map<String,String> getExternalIdentifiers()
Specified by:
getExternalIdentifiers in interface Person
See Also:
Person.getExternalIdentifiers()

getAddressLine1

public String getAddressLine1()
Description copied from interface: Person
Returns line1 of the default address for the Person. Will lazy-load the information from the IdentityManagementService if requested.

Specified by:
getAddressLine1 in interface Person

getAddressLine1Unmasked

public String getAddressLine1Unmasked()
Specified by:
getAddressLine1Unmasked in interface Person

getAddressLine2

public String getAddressLine2()
Description copied from interface: Person
Returns line2 of the default address for the Person. Will lazy-load the information from the IdentityManagementService if requested.

Specified by:
getAddressLine2 in interface Person

getAddressLine2Unmasked

public String getAddressLine2Unmasked()
Specified by:
getAddressLine2Unmasked in interface Person

getAddressLine3

public String getAddressLine3()
Description copied from interface: Person
Returns line3 of the default address for the Person. Will lazy-load the information from the IdentityManagementService if requested.

Specified by:
getAddressLine3 in interface Person

getAddressLine3Unmasked

public String getAddressLine3Unmasked()
Specified by:
getAddressLine3Unmasked in interface Person

getAddressCity

public String getAddressCity()
Description copied from interface: Person
Returns the city name from the default address for the Person. Will lazy-load the information from the IdentityManagementService if requested.

Specified by:
getAddressCity in interface Person

getAddressCityUnmasked

public String getAddressCityUnmasked()
Specified by:
getAddressCityUnmasked in interface Person

getAddressStateProvinceCode

public String getAddressStateProvinceCode()
Description copied from interface: Person
Returns the state code from the default address for the Person. Will lazy-load the information from the IdentityManagementService if requested.

Specified by:
getAddressStateProvinceCode in interface Person

getAddressStateProvinceCodeUnmasked

public String getAddressStateProvinceCodeUnmasked()
Specified by:
getAddressStateProvinceCodeUnmasked in interface Person

getAddressPostalCode

public String getAddressPostalCode()
Description copied from interface: Person
Returns the postal code from the default address for the Person. Will lazy-load the information from the IdentityManagementService if requested.

Specified by:
getAddressPostalCode in interface Person

getAddressPostalCodeUnmasked

public String getAddressPostalCodeUnmasked()
Specified by:
getAddressPostalCodeUnmasked in interface Person

getAddressCountryCode

public String getAddressCountryCode()
Description copied from interface: Person
Returns the country code from the default address for the Person. Will lazy-load the information from the IdentityManagementService if requested.

Specified by:
getAddressCountryCode in interface Person

getAddressCountryCodeUnmasked

public String getAddressCountryCodeUnmasked()
Specified by:
getAddressCountryCodeUnmasked in interface Person

getEmployeeStatusCode

public String getEmployeeStatusCode()
Specified by:
getEmployeeStatusCode in interface Person

getEmployeeTypeCode

public String getEmployeeTypeCode()
Specified by:
getEmployeeTypeCode in interface Person

getBaseSalaryAmount

public KualiDecimal getBaseSalaryAmount()
Specified by:
getBaseSalaryAmount in interface Person

getEmployeeId

public String getEmployeeId()
Specified by:
getEmployeeId in interface Person

getPrimaryDepartmentCode

public String getPrimaryDepartmentCode()
Specified by:
getPrimaryDepartmentCode in interface Person

getEntityTypeCode

public String getEntityTypeCode()
Specified by:
getEntityTypeCode in interface Person

isActive

public boolean isActive()
Specified by:
isActive in interface Person

setActive

public void setActive(boolean active)

getLookupRoleNamespaceCode

public String getLookupRoleNamespaceCode()
Returns:
the lookupRoleNamespaceCode

setLookupRoleNamespaceCode

public void setLookupRoleNamespaceCode(String lookupRoleNamespaceCode)
Parameters:
lookupRoleNamespaceCode - the lookupRoleNamespaceCode to set

getLookupRoleName

public String getLookupRoleName()
Returns:
the lookupRoleName

setLookupRoleName

public void setLookupRoleName(String lookupRoleName)
Parameters:
lookupRoleName - the lookupRoleName to set

setPrincipalName

public void setPrincipalName(String principalName)
Parameters:
principalName - the principalName to set

setName

public void setName(String name)
Parameters:
name - the name to set

getEmployeeStatus

public org.kuali.rice.kim.impl.identity.employment.EntityEmploymentStatusBo getEmployeeStatus()

getEmployeeType

public org.kuali.rice.kim.impl.identity.employment.EntityEmploymentTypeBo getEmployeeType()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.