public interface IUser extends ISecurityPrincipal
Modifier and Type | Method and Description |
---|---|
boolean |
canChangePassword()
Verifies if password can be changed.
|
void |
changePassword(java.lang.String newPassword)
Changes the user password to the one specified as an argument.
|
int |
getAdminLevel()
Returns the administration level associated to this user.
|
java.lang.String |
getDescription()
Returns description information about the account.
|
java.lang.String |
getDisplayName()
Returns the display name according to application text information com.display.name.format
|
java.lang.String |
getDisplayName(java.util.Locale locale)
Returns the display name according to application text information com.display.name.format on the specified locale
|
java.lang.String |
getEmailAddress()
Returns the email address associated with a user.
|
java.lang.String |
getFirstName()
Returns the first name of the user.
|
java.util.List<Id> |
getGroupIds()
Returns a list of group Ids that the user belongs to.
|
java.util.Iterator<IGroup> |
getGroups()
Returns all the groups the user belongs to.
|
Id |
getId()
Returns OpenPages system Id of the user.
|
java.lang.String |
getLastName()
Returns the last name of the user.
|
java.lang.String |
getMiddleName()
Returns the middle name of the user.
|
java.util.Date |
getPasswordCreationDate()
Returns creation date for user password.
|
java.util.Iterator<IRoleAssignment> |
getRoleAssignments()
Returns all role assignments for a user.
|
java.util.Iterator<IRoleTemplate> |
getRoleTemplates()
Returns all roles for a user.
|
boolean |
isLocked()
Returns lock status.
|
boolean |
isMember(IGroup group)
Verifies membership to the specified group.
|
boolean |
isPasswordChangeFromAdmin()
Verifies if the last password change was performed by an administrator.
|
boolean |
isSecurityAdministrator()
Verifies if the user is a security administrator.
|
boolean |
isTemporaryPassword()
Verifies if password is temporary.
|
void |
lock()
Locks user-level security information.
|
java.util.Date |
passwordCreatedOn()
Returns the creation date for a password.
|
int |
passwordExpiresInDays()
Returns password duration in days.
|
void |
setCanChangePassword(java.lang.Boolean canChangePassword)
Sets whether a password can be changed
|
void |
setDescription(java.lang.String description)
Sets description information about the account.
|
void |
setEmailAddress(java.lang.String emailAddress)
Sets the email address associated with a user.
|
void |
setFirstName(java.lang.String firstName)
Sets the first name of the user.
|
void |
setIsTemporaryPassword(java.lang.Boolean isTemporaryPassword)
Sets whether a password is temporary
|
void |
setLastName(java.lang.String lastName)
Sets the last name of the user.
|
void |
setLocale(java.util.Locale locale)
Sets locale information associated with the user.
|
void |
setMiddleName(java.lang.String middleName)
Sets the middle name of the user.
|
void |
setPasswordExpiresInDays(java.lang.Integer days)
Sets password duration in days.
|
void |
unlock()
Unlocks user-level security information.
|
void |
update()
Updates user information in the OpenPages database.
|
disable, enable, getAdminPermissions, getCreatedOn, getLocale, getName, getPermissionIds, getPermissions, isDeleted, isEditable, isEnabled, isHidden, revokeAdminPermissions, setName
void changePassword(java.lang.String newPassword)
newPassword
- new assigned passwordboolean isMember(IGroup group)
group
- void update()
boolean isSecurityAdministrator()
java.lang.String getFirstName()
void setFirstName(java.lang.String firstName)
firstName
- user's first namejava.lang.String getLastName()
void setLastName(java.lang.String lastName)
lastName
- user's last namejava.lang.String getMiddleName()
void setMiddleName(java.lang.String middleName)
middleName
- user's middle namejava.util.Date passwordCreatedOn()
int passwordExpiresInDays()
void setPasswordExpiresInDays(java.lang.Integer days)
an
- integer representing the number of days remaining before password expirationboolean canChangePassword()
void setCanChangePassword(java.lang.Boolean canChangePassword)
canChangePassword
- boolean isTemporaryPassword()
void setIsTemporaryPassword(java.lang.Boolean isTemporaryPassword)
isTemporaryPassword
- boolean isPasswordChangeFromAdmin()
void lock()
void unlock()
void setLocale(java.util.Locale locale)
locale
- java.util.Iterator<IRoleAssignment> getRoleAssignments()
java.util.Iterator<IRoleTemplate> getRoleTemplates()
java.lang.String getEmailAddress()
void setEmailAddress(java.lang.String emailAddress)
emailAddress
- java.lang.String getDescription()
void setDescription(java.lang.String description)
description
- int getAdminLevel()
Id getId()
getId
in interface ISecurityPrincipal
boolean isLocked()
java.util.Date getPasswordCreationDate()
java.util.Iterator<IGroup> getGroups()
java.util.List<Id> getGroupIds()
java.lang.String getDisplayName()
java.lang.String getDisplayName(java.util.Locale locale)
Licensed Materials - Property of IBM
© Copyright IBM Corp. 2013, 2018. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.