Class User

All Implemented Interfaces:
Serializable

public class User extends AbstractEntity implements Serializable
Class User General purpose User class for all OIM modules. Represents an enterprise user in the system. An enterprise user is one who can have access granted to them (provisioning) and whose access grants can be reviewed (aka access review, attestation, identity certification). Notes: - Can also be an OIM login user if appropriate role(s) have been granted. - Initially developed for the access review module (OIA identity certification or IDC). - Relevant fields from superclasses: id, name, createDate, updateDate, createdById, updatedById
See Also:
  • Constructor Details

    • User

      public User()
  • Method Details

    • setDisplayName

      public void setDisplayName(String displayName)
    • getDisplayName

      public String getDisplayName()
    • getManagerId

      public Long getManagerId()
      Gets unique identifier for the user's manager
      Returns:
      Unique identifier for the user's manager
    • setManagerId

      public void setManagerId(Long guid)
      Sets unique identifier for the user's manager
      Parameters:
      guid - Unique identifier for the user's manager
    • getStatus

      public User.UserStatus getStatus()
      Gets the status for the user
      Returns:
      the status for the user
    • setStatus

      public void setStatus(User.UserStatus usrStatus)
      Sets the status for the user
      Parameters:
      usrStatus - Status for the user
    • getStatusStr

      public String getStatusStr()
      Gets the string representation of the status for the user
      Returns:
      the statusStr
    • setStatusStr

      public void setStatusStr(String sStr)
      Sets the string representation of the status for the user Also updates the status value based on the specified string. The User status must be either Active or Disabled
      Parameters:
      statusStr - the statusStr to set
    • getSummaryRisk

      public Integer getSummaryRisk()
      Gets the calculated risk level for the user
      Returns:
      the summaryRisk
    • setSummaryRisk

      public void setSummaryRisk(Integer riskLevel)
      Sets the calculated risk level for the user
      Parameters:
      riskLevel - the summaryRisk to set
    • getRoleRisk

      public Integer getRoleRisk()
      Gets the risk level associated with roles assigned to the user
      Returns:
      the roleRisk
    • setRoleRisk

      public void setRoleRisk(Integer riskLevel)
      Sets the risk level associated with roles assigned to the user
      Parameters:
      riskLevel - the roleRisk to set
    • getAccountRisk

      public Integer getAccountRisk()
      Gets the risk level associated with accounts owned by the user
      Returns:
      the accountRisk
    • setAccountRisk

      public void setAccountRisk(Integer riskLevel)
      Sets the risk level associated with accounts owned by the user
      Parameters:
      riskLevel - the accountRisk to set
    • getEntitlementRisk

      public Integer getEntitlementRisk()
      Gets the risk level associated with entitlements granted to the user
      Returns:
      the entitlementRisk
    • setEntitlementRisk

      public void setEntitlementRisk(Integer riskLevel)
      Sets the risk level associated with entitlements granted to the user
      Parameters:
      riskLevel - the entitlementRisk to set
    • getRiskUpdateDate

      public Date getRiskUpdateDate()
      Gets the Date risk levels were last updated Returns a copy.
      Returns:
      a copy of the riskUpdateDate
    • setRiskUpdateDate

      public void setRiskUpdateDate(Date rDate)
      Sets the Date risk levels were last updated Makes a defensive copy.
      Parameters:
      rDate - the riskUpdateDate to set
    • setUserName

      public void setUserName(String userName)
    • getUserName

      public String getUserName()
    • getFirstName

      public String getFirstName()
      Gets the first name of the user
      Returns:
      the firstName
    • setFirstName

      public void setFirstName(String fName)
      Sets the first name of the user
      Parameters:
      fName - the firstName to set
    • getLastName

      public String getLastName()
      Gets the last name of the user
      Returns:
      the lastName
    • setLastName

      public void setLastName(String lName)
      Sets the last name of the user
      Parameters:
      lName - the lastName to set
    • getMiddleName

      public String getMiddleName()
      Gets the middle name of the user
      Returns:
      the middleName
    • setMiddleName

      public void setMiddleName(String mName)
      Sets the middle name of the user
      Parameters:
      mName - the middleName to set
    • getLocation

      public String getLocation()
      Returns:
      the location
    • setLocation

      public void setLocation(String lStr)
      Parameters:
      lStr - the location to set
    • getOffice

      public String getOffice()
      Returns:
      the office
    • setOffice

      public void setOffice(String oStr)
      Parameters:
      oStr - the office to set
    • getStreet

      public String getStreet()
      Returns:
      the street
    • setStreet

      public void setStreet(String sStr)
      Parameters:
      sStr - the street to set
    • getCity

      public String getCity()
      Returns:
      the city
    • setCity

      public void setCity(String cStr)
      Parameters:
      cStr - the city to set
    • getStateOrProvince

      public String getStateOrProvince()
      Returns:
      the stateOrProvince
    • setStateOrProvince

      public void setStateOrProvince(String sStr)
      Parameters:
      sStr - the stateOrProvince to set
    • getPostalCode

      public String getPostalCode()
      Returns:
      the postalCode
    • setPostalCode

      public void setPostalCode(String pStr)
      Parameters:
      pStr - the postalCode to set
    • getCountry

      public String getCountry()
      Returns:
      the country
    • setCountry

      public void setCountry(String cStr)
      Parameters:
      cStr - the country to set
    • getLocale

      public Locale getLocale()
    • setLocale

      public void setLocale(Locale locale)
    • getEmail

      public String getEmail()
      Returns:
      the email
    • setEmail

      public void setEmail(String eStr)
      Parameters:
      eStr - the email to set
    • getPhoneNumber

      public String getPhoneNumber()
      Returns:
      the phoneNumber
    • setPhoneNumber

      public void setPhoneNumber(String pStr)
      Parameters:
      pStr - the phoneNumber to set
    • getEmployeeId

      public String getEmployeeId()
      Gets the employee ID used to identify the user within the company. Note that this is not necessarily a number and is not connected with the unique identifier used internally.
      Returns:
      the employeeId
    • setEmployeeId

      public void setEmployeeId(String eStr)
      Sets the employee ID used to identify the user within the company. Note that this is not necessarily a number and is not connected with the unique identifier used internally.
      Parameters:
      eStr - the employeeId to set
    • getJobCode

      public String getJobCode()
      Gets the job code of the user
      Returns:
      the jobCode
    • setJobCode

      public void setJobCode(String jStr)
      Sets the job code of the user.
      Parameters:
      jStr - the jobCode to set
    • getTitle

      public String getTitle()
      Returns:
      the title
    • setTitle

      public void setTitle(String tStr)
      Parameters:
      tStr - the title to set
    • getEmployeeType

      public String getEmployeeType()
      Returns:
      the employeeType
    • setEmployeeType

      public void setEmployeeType(String eStr)
      Parameters:
      eStr - the employeeType to set
    • getFullName

      public String getFullName()
    • setAccounts

      public void setAccounts(List<Account> accounts)
    • getAccounts

      public List<Account> getAccounts()
    • setNonCertifiableRoles

      public void setNonCertifiableRoles(List<Role> roles)
    • getNonCertifiableRoles

      public List<Role> getNonCertifiableRoles()
    • setRoles

      public void setRoles(List<Role> roles)
    • getRoles

      public List<Role> getRoles()
    • getRoleGrants

      public List<RoleGrant> getRoleGrants()
    • setRoleGrants

      public void setRoleGrants(List<RoleGrant> roleGrants)
    • setHasHighRiskEntitlement

      public void setHasHighRiskEntitlement(Boolean hasHighRiskEntitlement)
    • setHasHighRiskResource

      public void setHasHighRiskResource(Boolean hasHighRiskResource)
    • setHasHighRiskProvMeth

      public void setHasHighRiskProvMeth(Boolean hasHighRiskProvMeth)
    • setHasHighRiskRole

      public void setHasHighRiskRole(Boolean hasHighRiskRole)
    • setHasHighRiskSod

      public void setHasHighRiskSod(Boolean tmpBool)
    • setAccountSummaryRisk

      public void setAccountSummaryRisk(Integer accountSummaryRisk)
    • setEntitlementSummaryRisk

      public void setEntitlementSummaryRisk(Integer entitlementSummaryRisk)
    • setRoleSummaryRisk

      public void setRoleSummaryRisk(Integer roleSummaryRisk)
    • getHasHighRiskEntitlement

      public Boolean getHasHighRiskEntitlement()
    • getHasHighRiskResource

      public Boolean getHasHighRiskResource()
    • getHasHighRiskProvMeth

      public Boolean getHasHighRiskProvMeth()
    • getHasHighRiskRole

      public Boolean getHasHighRiskRole()
    • getHasHighRiskSod

      public Boolean getHasHighRiskSod()
    • getAccountSummaryRisk

      public Integer getAccountSummaryRisk()
    • getEntitlementSummaryRisk

      public Integer getEntitlementSummaryRisk()
    • getRoleSummaryRisk

      public Integer getRoleSummaryRisk()
    • setCommonName

      public void setCommonName(String commonName)
    • getCommonName

      public String getCommonName()
    • setOrganizationId

      public void setOrganizationId(Long organizationId)
    • getOrganizationId

      public Long getOrganizationId()
    • setDepartmentNumber

      public void setDepartmentNumber(String departmentNumber)
    • getDepartmentNumber

      public String getDepartmentNumber()
    • setGenerationQualifier

      public void setGenerationQualifier(String generationQualifier)
    • getGenerationQualifier

      public String getGenerationQualifier()
    • setHireDate

      public void setHireDate(Date startDate)
    • getHireDate

      public Date getHireDate()
    • setUdfMap

      public void setUdfMap(Map<String,Object> udfMap)
    • getUdfMap

      public Map<String,Object> getUdfMap()
    • setAccountLocked

      public void setAccountLocked(Boolean accountLocked)
    • getAccountLocked

      public Boolean getAccountLocked()
    • getCustomProperties

      public List<String> getCustomProperties()
      Gets custom properties (also known as User Defined Fields, or UDFs) Returns a copy. TODO/TBD: Also could return an immutable view of the list: return Collections.unmodifiableList(customProperties);
      Returns:
      a copy of customProperties
    • setCustomProperties

      public void setCustomProperties(List<String> propList)
      Sets custom properties (also known as User Defined Fields, or UDFs) Makes a defensive copy.
      Parameters:
      propList - the list of custom properties to set
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object