@UserDataType public class User extends UserBase implements LocalStringId
Modifier and Type | Field and Description |
---|---|
static java.lang.Integer |
SORT_BY_ID
Sort by the Id propety
|
static java.lang.Integer |
SORT_BY_PASSWORD
Sort by password
|
static java.lang.Integer |
SORT_BY_USERNAME
Sort by the Username property
|
static java.lang.Integer |
USER_ROLE_ADMINISTRATOR
Administrator user role for a group
|
static java.lang.Integer |
USER_ROLE_CREATOR
Creator user role for a group
|
static java.lang.Integer |
USER_ROLE_MEMBER
Member user role for a group
|
static java.lang.Integer |
USER_ROLE_VIEWER
Viewer user role for a group
|
SORT_BY_DISPLAYNAME, SORT_BY_EMAIL, SORT_BY_FIRSTNAME, SORT_BY_LASTNAME, SORT_BY_MIDDLENAME, SORT_BY_SOCIALSECURITYNUMBER, STATUS_ACTIVE, STATUS_DEACTIVATED
Constructor and Description |
---|
User()
Default constructor.
|
User(java.lang.String username)
Contructs a User object with the given username.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getId() |
java.lang.String |
getIdentifier()
Alias for the the User's uuid
{
getUuid() |
java.lang.String |
getIdentity() |
java.lang.String |
getPassword()
Deprecated.
Since 6.0.2, use
getUserPassword() |
java.sql.Timestamp |
getPasswordModified()
Returns the timestamp when the user's password was modified last.
|
java.lang.String |
getStringId()
Returns this object's local identifier,
null if the object
was not identified locally using a String Id. |
static java.lang.String[] |
getUsernames(User[] users)
Get the usernames (as a String array) from an array of User objects.
|
byte[] |
getUserPassword()
"UTF-8"
Charset can be used to decode the byte[] password into a String or char[]. |
java.lang.String |
getUuid()
The User's Universal Unique Identifier
|
boolean |
isTemporaryPassword()
Returns true if the user's password is temporary else false; see
UserService#changeUserPassword(String, char[], boolean) . |
boolean |
isUserLocked()
Returns true if the user is locked due to multiple unsuccessful login attempts else false; see
UserService.loginAttempt(String,boolean) and UserService.unlockUser(String) |
void |
setId(java.lang.Long id) |
void |
setPassword(java.lang.String password)
Deprecated.
Since 6.0.2, use
setUserPassword(byte[]) |
void |
setPasswordModified(java.sql.Timestamp passwordModified)
This field cannot be set explicitly using this setter.
|
void |
setStringId(java.lang.String id)
Sets this object's local identifier.
|
void |
setTemporaryPassword(boolean temporaryPassword)
This field cannot be set explicitly using this setter; see
UserService#changeUserPassword(String, char[], boolean) . |
void |
setUserLocked(boolean userLocked)
This field cannot be set explicitly using this setter; see
UserService.loginAttempt(String,boolean) and UserService.unlockUser(String) |
void |
setUserPassword(byte[] password)
"UTF-8"
Charset must be used to encode a String or char[] password into a byte[]. |
void |
setUuid(java.lang.String uuid)
Sets the User's uuid to the given uuid.
|
getDisplayName, getEmail, getFavorite, getFirstName, getLastName, getMiddleName, getSocialSecurityNumber, getStatus, getUsername, setDisplayName, setEmail, setFavorite, setFirstName, setLastName, setMiddleName, setSocialSecurityNumber, setStatus, setUsername
public static final java.lang.Integer SORT_BY_USERNAME
public static final java.lang.Integer SORT_BY_ID
public static final java.lang.Integer SORT_BY_PASSWORD
public static final java.lang.Integer USER_ROLE_CREATOR
public static final java.lang.Integer USER_ROLE_ADMINISTRATOR
public static final java.lang.Integer USER_ROLE_MEMBER
public static final java.lang.Integer USER_ROLE_VIEWER
public User()
public User(java.lang.String username)
username
- the usernamepublic java.lang.String getIdentity()
getIdentity
in interface com.appiancorp.asl3.servicefw.connect.ASLIdentity
getIdentity
in class UserBase
public void setStringId(java.lang.String id)
LocalStringId
setStringId
in interface LocalStringId
id
- ID to setLocalStringId.getStringId()
public java.lang.String getStringId()
LocalStringId
null
if the object
was not identified locally using a String
Id.getStringId
in interface LocalStringId
LocalStringId.setStringId(String)
@Deprecated public void setPassword(java.lang.String password)
setUserPassword(byte[])
@Deprecated @Transient public java.lang.String getPassword()
getUserPassword()
public void setUserPassword(byte[] password)
Charset
must be used to encode a String or char[] password into a byte[].
Note: it is recommended to use char[] to store password and flush the array after the use.
See
this reference guide.password
- password as byte arraypublic byte[] getUserPassword()
Charset
can be used to decode the byte[] password into a String or char[].
Note: it is recommended to use char[] to store password and flush the array after the use.
See
this reference guide.
return password as byte arraypublic java.lang.Long getId()
public void setId(java.lang.Long id)
@ConvertWith(value=com.appiancorp.kougar.mapper.parameters.UuidParameterConverter.class) public java.lang.String getUuid()
public void setUuid(java.lang.String uuid)
uuid
- the@Transient @ConvertWith(value=com.appiancorp.kougar.mapper.parameters.UuidParameterConverter.class) public java.lang.String getIdentifier()
getUuid()
public static java.lang.String[] getUsernames(User[] users)
users
- an array of Userspublic java.sql.Timestamp getPasswordModified()
public void setPasswordModified(java.sql.Timestamp passwordModified)
public boolean isTemporaryPassword()
UserService#changeUserPassword(String, char[], boolean)
.public void setTemporaryPassword(boolean temporaryPassword)
UserService#changeUserPassword(String, char[], boolean)
.public boolean isUserLocked()
UserService.loginAttempt(String,boolean)
and UserService.unlockUser(String)
public void setUserLocked(boolean userLocked)
UserService.loginAttempt(String,boolean)
and UserService.unlockUser(String)
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.