public class User extends MetadataProviderEntity implements IUser, java.io.Serializable
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
static User |
copy(IUser input)
Copy contents from the SPI class.
|
java.util.List<java.lang.String> |
getAuthorities()
Get the list of granted authorities.
|
java.lang.String |
getFirstName()
Get the common name.
|
java.lang.String |
getHashedPassword()
Get the password.
|
java.util.Date |
getLastLogin()
Get the last login date.
|
java.lang.String |
getLastName()
Get the surname.
|
AccountStatus |
getStatus()
Get the account status.
|
java.lang.String |
getUsername()
Get the username.
|
void |
setAuthorities(java.util.List<java.lang.String> authorities) |
void |
setFirstName(java.lang.String firstName) |
void |
setHashedPassword(java.lang.String hashedPassword) |
void |
setLastLogin(java.util.Date lastLogin) |
void |
setLastName(java.lang.String lastName) |
void |
setStatus(AccountStatus status) |
void |
setUsername(java.lang.String username) |
copy, getCreatedBy, getCreatedDate, getUpdatedBy, getUpdatedDate, isDeleted, setCreatedBy, setCreatedDate, setDeleted, setUpdatedBy, setUpdatedDate
addOrReplaceMetadata, clearMetadata, copy, copy, getMetadata, getMetadata, removeMetadata, setMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOrReplaceMetadata, clearMetadata, getMetadata, getMetadata, removeMetadata
getCreatedBy, getCreatedDate, getUpdatedBy, getUpdatedDate, isDeleted
public java.lang.String getUsername()
IUser
getUsername
in interface IUser
public void setUsername(java.lang.String username)
public java.lang.String getHashedPassword()
IUser
getHashedPassword
in interface IUser
public void setHashedPassword(java.lang.String hashedPassword)
public java.lang.String getFirstName()
IUser
getFirstName
in interface IUser
public void setFirstName(java.lang.String firstName)
public java.lang.String getLastName()
IUser
getLastName
in interface IUser
public void setLastName(java.lang.String lastName)
public java.util.Date getLastLogin()
IUser
getLastLogin
in interface IUser
public void setLastLogin(java.util.Date lastLogin)
public AccountStatus getStatus()
IUser
public void setStatus(AccountStatus status)
public java.util.List<java.lang.String> getAuthorities()
IUser
getAuthorities
in interface IUser
public void setAuthorities(java.util.List<java.lang.String> authorities)
public static User copy(IUser input) throws SiteWhereException
input
- SiteWhereException