public class User extends java.lang.Object implements Identity
User
class is a value object class to hold the Identifier, attribute
name-value pair and direct reports of user.Constructor and Description |
---|
User(java.lang.String entityId)
Constructs a user identity object with specified unique Identifier
entityId . |
User(java.lang.String entityId,
java.util.HashMap attrs)
Constructs a user identity object with specified unique Identifier
entityId and a
map of attribute name-value pair. |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getAccountLockedDate()
Provides the date on which the user account was locked.
|
java.lang.String |
getAccountStatus()
Provides the status of the user account.
|
java.lang.Object |
getAttribute(java.lang.String attr)
Get the value of the specified user attribute
name . |
java.util.Set |
getAttributeNames()
Provides a set of all the user attribute names.
|
java.util.HashMap |
getAttributes()
Provides a map of all attribute-value pair of user.
|
java.util.Date |
getAutomaticallyDeleteDate()
Provides the date on which the user account will get deleted automatically.
|
java.lang.String |
getChangePasswordAtNextLogin()
Gets whether the user should be asked to change the password at next login.
|
java.lang.String |
getCommonName()
Provides the common name specified for the user.
|
java.lang.String |
getCountry()
Gets the user country.
|
java.util.Date |
getCreationDate()
Gets the date on which the user was created.
|
java.lang.String |
getDepartmentNumber()
Gets the user departmentNumber.
|
java.util.Date |
getDeprovisionedDate()
Provides the date on which the user was de-provisioned of resources.
|
java.util.Date |
getDeprovisioningDate()
Provides the date set for the user on which its resources would be de-provisioned.
|
java.lang.String |
getDescription()
Deprecated.
|
java.lang.String |
getDisplayName()
Provides a display name specified for the user.
|
java.lang.String |
getEmail()
Provides the email set for the user.
|
java.lang.String |
getEmployeeNumber()
Deprecated.
|
java.lang.String |
getEmployeeType()
Gets the type of employee the user is created as.
|
java.util.Date |
getEndDate()
Provides the date set for the user on which the account ceases to be in effect.
|
java.lang.String |
getEntityId()
Provides GUID of the user.
|
java.lang.String |
getFirstName()
Provides the first name specified for the user.
|
java.lang.String |
getGenerationQualifier()
Gets the generation qualifier of the user created within the LDAP system.
|
java.lang.String |
getId()
Provides the user unique identifier.
|
java.lang.String |
getLastName()
Provides the last name specified for the user.
|
java.util.Locale |
getLocale()
Gets the Locale set for the user.
|
java.lang.String |
getLogin()
Provides the login information of the user.
|
java.lang.String |
getLoginAttemptsCounter()
Gets the number of login attempts made by the user.
|
java.lang.String |
getManagerKey()
Gets the entity id of the user's manager.
|
java.lang.String |
getManuallyLocked()
Gets if the user account is manually locked.
|
java.lang.String |
getMiddleName()
Provides the middle name specified for the user.
|
java.lang.String |
getMobile()
Gets the user MobileNumber.
|
java.lang.String |
getOrganizationKey()
Provides the Key of the organization the user is a member of.
|
java.lang.String |
getPasswordCantChange()
Gets if the user password can be changed.
|
java.util.Date |
getPasswordCreationDate()
Gets the password ccreation date for the user.
|
java.lang.String |
getPasswordExpired()
Gets if the user password has expired.
|
java.util.Date |
getPasswordExpireDate()
Gets the date on which the user password will expire.
|
java.lang.String |
getPasswordGenerated()
Gets whether the user password is auto-generated.
|
java.util.Date |
getPasswordMinimumAge()
Deprecated
TO get password min age date, get applicable password policy of the user
Get min age in days from the policy and add that to password creation date
|
java.lang.String |
getPasswordMustChange()
Gets if the user password must be changed.
|
java.lang.String |
getPasswordNeverExpires()
Gets if the user password can expire.
|
java.lang.String |
getPasswordResetAttemptsCounter()
Gets the number of attempts the user has made to reset the password.
|
java.util.Date |
getPasswordWarnDate()
Gets the date on which the user should be warned about password due for expiration.
|
java.lang.String |
getPasswordWarned()
Gets if the user has been warned about password due for expiration.
|
java.lang.String |
getPolicyUpdateEnabled()
Provides the flag value which tells if the access policies needs to be applied to the user.
|
java.util.Date |
getProvisionedDate()
Provides the date on which the user was provisioned with resources.
|
java.util.Date |
getProvisioningDate()
Provides the date set for the user on which it would be provisioned with resources.
|
java.util.Date |
getStartDate()
Provides the date set for the user on which the account will get into effect.
|
java.lang.String |
getStatus()
Provides the current status of the user.
|
java.util.TimeZone |
getTimezone()
Deprecated.
|
java.lang.String |
getUserDisabled()
Gets whether the user is disabled.
|
java.lang.String |
getUserType()
Provides the 'Xellerate Type' of the user.
|
void |
setAccountStatus(java.lang.String accountStatus)
Sets the status of the user account.
|
void |
setAttribute(java.lang.String attr,
java.lang.Object val)
Adds the attribute
attr and it's value val . |
void |
setCommonName(java.lang.String commonName)
Sets the common name of the user.
|
void |
setCountry(java.lang.String country)
Sets the user country.
|
void |
setDepartmentNumber(java.lang.String departmentNumber)
Sets the user departmentNumber.
|
void |
setDeprovisionedDate(java.util.Date deprovisionedDate)
Sets the date on which the user is de-provisioned of resources.
|
void |
setDeprovisioningDate(java.util.Date deprovisioningDate)
Sets the date for the user on which its resources would be de-provisioned.
|
void |
setDescription(java.lang.String description)
Deprecated.
|
void |
setDisplayName(java.lang.String displayName)
Sets the display name of the user as base value.
|
void |
setEmail(java.lang.String email)
Sets the email of the user.
|
void |
setEmployeeNumber(java.lang.String employeeNumber)
Deprecated.
|
void |
setEmployeeType(java.lang.String employeeType)
Sets the type of employee the user is to be created as.
|
void |
setEndDate(java.util.Date endDate)
Sets the date set for the user on which the account ceases to be in effect.
|
void |
setFirstName(java.lang.String firstName)
Sets the first name of the user.
|
void |
setGenerationQualifier(java.lang.String genQualifier)
Sets the generation qualifier of the user in the LDAP system.
|
void |
setLastName(java.lang.String lastName)
Sets the last name of the user.
|
void |
setLocale(java.util.Locale locale)
Sets the Locale for the user.
|
void |
setLogin(java.lang.String login)
Sets the user login.
|
void |
setManagerKey(java.lang.Long managerKey)
Sets the entity id of the user to be set as the manager.
|
void |
setManagerKey(java.lang.String managerKey)
Sets the entity id of the user to be set as the manager.
|
void |
setMiddleName(java.lang.String middleName)
Sets the middle name of the user.
|
void |
setMobile(java.lang.String mobile)
Sets the user MobileNumber.
|
void |
setOrganizationKey(java.lang.String orgKey)
Sets the Key of the organization the user is a member of.
|
void |
setPasswordWarned(java.lang.String passwordWarned)
Deprecated.
|
void |
setPolicyUpdateEnabled(java.lang.String policyUpdateEnabled)
Sets the flag value which tells if the access policies needs to be applied to the user.
|
void |
setProvisionedDate(java.util.Date provisionedDate)
Sets the date on which the user is provisioned with resources.
|
void |
setProvisioningDate(java.util.Date provisioningDate)
Sets the date for the user on which it would be provisioned with resources.
|
void |
setStartDate(java.util.Date startDate)
Sets the date for the user on which the account will get into effect.
|
void |
setStatus(java.lang.String status)
Sets the current user status.
|
void |
setTimezone(java.util.TimeZone timezone)
Deprecated.
|
void |
setUserDisabled(java.lang.String userDisabled)
Sets whether the user is disabled.
|
void |
setUserType(java.lang.String userType)
Sets the 'Xellerate Type' of the user.
|
java.lang.String |
toString()
Provides the string representation of
User value object. |
public User(java.lang.String entityId)
entityId
.entityId
- The GUID of the user.public User(java.lang.String entityId, java.util.HashMap attrs)
entityId
and a
map
of attribute name-value pair.entityId
- The GUID of the user.attrs
- The Map of attribute name-value pair.
public void setAttribute(java.lang.String attr, java.lang.Object val)
attr
and it's value val
.setAttribute
in interface Identity
attr
- The attribute to be added.val
- The value of the attribute.public java.lang.Object getAttribute(java.lang.String attr)
name
.getAttribute
in interface Identity
attr
- The attribute whose value is to be returned.public java.lang.String getEntityId()
getEntityId
in interface Identity
public java.util.HashMap getAttributes()
getAttributes
in interface Identity
map
of all attribute-value pair of this user.public java.util.Set getAttributeNames()
getAttributeNames
in interface Identity
public java.lang.String getId()
public java.lang.String getLogin()
public void setLogin(java.lang.String login)
login
- The login to be set for the userpublic java.lang.String getOrganizationKey()
public void setOrganizationKey(java.lang.String orgKey)
orgKey
- the Key of the organization the user is a member ofpublic java.lang.String getFirstName()
public void setFirstName(java.lang.String firstName)
firstName
- first name to be specified for the userpublic java.lang.String getLastName()
public void setLastName(java.lang.String lastName)
lastName
- the last name to be specified for the userpublic java.lang.String getMiddleName()
public void setMiddleName(java.lang.String middleName)
middleName
- the middle name to be specified for the userpublic java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
displayName
- the base diaplay name to be specified for the userpublic java.lang.String getCommonName()
public void setCommonName(java.lang.String commonName)
commonName
- the common name to be specified for the userpublic java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
startDate
- the date to be set as the start datepublic java.util.Date getEndDate()
public void setEndDate(java.util.Date endDate)
endDate
- the date to be set as the end datepublic java.util.Date getProvisioningDate()
public void setProvisioningDate(java.util.Date provisioningDate)
provisioningDate
- the provisioning date for the userpublic java.util.Date getDeprovisioningDate()
public void setDeprovisioningDate(java.util.Date deprovisioningDate)
deprovisioningDate
- the de-provisioning date for the userpublic java.util.Date getProvisionedDate()
public void setProvisionedDate(java.util.Date provisionedDate)
provisionedDate
- the provisioned date for the userpublic java.util.Date getDeprovisionedDate()
public void setDeprovisionedDate(java.util.Date deprovisionedDate)
deprovisionedDate
- the de-provisioned date for the userpublic java.lang.String getPolicyUpdateEnabled()
public void setPolicyUpdateEnabled(java.lang.String policyUpdateEnabled)
policyUpdateEnabled
- the policy update flag to be enabled/disabledpublic java.lang.String getStatus()
public void setStatus(java.lang.String status)
status
- user status to be setpublic java.lang.String getAccountStatus()
public void setAccountStatus(java.lang.String accountStatus)
accountStatus
- to set for Lock attributepublic java.lang.String getUserDisabled()
public void setUserDisabled(java.lang.String userDisabled)
userDisabled
- user disabled flag to setpublic java.lang.String getEmail()
public void setEmail(java.lang.String email)
email
- user Emailpublic java.util.Date getAutomaticallyDeleteDate()
public java.util.Date getAccountLockedDate()
public java.lang.String getUserType()
public void setUserType(java.lang.String userType)
userType
- public java.lang.String getPasswordCantChange()
public java.lang.String getPasswordMustChange()
public java.lang.String getPasswordNeverExpires()
public java.util.Date getCreationDate()
public java.lang.String getEmployeeType()
public void setEmployeeType(java.lang.String employeeType)
employeeType
- public java.util.Date getPasswordExpireDate()
public java.util.Date getPasswordWarnDate()
public java.lang.String getManagerKey()
public void setManagerKey(java.lang.String managerKey)
managerKey
- public void setManagerKey(java.lang.Long managerKey)
managerKey
- public java.lang.String getPasswordWarned()
@Deprecated public void setPasswordWarned(java.lang.String passwordWarned)
passwordWarned
- public java.lang.String getPasswordExpired()
public java.lang.String getLoginAttemptsCounter()
public java.lang.String getPasswordResetAttemptsCounter()
public java.lang.String getChangePasswordAtNextLogin()
public java.util.Date getPasswordMinimumAge()
public java.util.Date getPasswordCreationDate()
@Deprecated public java.util.TimeZone getTimezone()
@Deprecated public void setTimezone(java.util.TimeZone timezone)
timezone
- public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
locale
- public java.lang.String getManuallyLocked()
public java.lang.String getCountry()
public void setCountry(java.lang.String country)
country
- public void setDepartmentNumber(java.lang.String departmentNumber)
departmentNumber
- public java.lang.String getDepartmentNumber()
@Deprecated public java.lang.String getDescription()
@Deprecated public void setDescription(java.lang.String description)
description
- @Deprecated public java.lang.String getEmployeeNumber()
@Deprecated public void setEmployeeNumber(java.lang.String employeeNumber)
employeeNumber
- public java.lang.String getGenerationQualifier()
public void setGenerationQualifier(java.lang.String genQualifier)
genQualifier
- generation qualifier to be setpublic java.lang.String getPasswordGenerated()
public void setMobile(java.lang.String mobile)
MobileNumber
- public java.lang.String getMobile()