R - the generic type@MappedSuperclass public abstract class BasicUser<R extends org.springframework.security.core.GrantedAuthority> extends AclSid implements org.springframework.security.core.userdetails.UserDetails
@DiscriminatorValue(value = "1")
| Modifier and Type | Class and Description |
|---|---|
static class |
BasicUser.AccountType
The Enum AccountType.
|
active| Constructor and Description |
|---|
BasicUser()
Instantiates a new basic user.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getAccountExpires()
Gets the account expires.
|
BasicUser.AccountType |
getAccountType()
Gets the account type.
|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
String |
getEmail()
Gets the email.
|
String |
getFullName()
Gets the full name.
|
Date |
getLastLogin()
Gets the last login.
|
Date |
getLockedUntil()
Gets the locked until.
|
String |
getPassword() |
Date |
getPasswordExpires()
Gets the password expires.
|
Set<R> |
getRoles()
Gets the roles.
|
String |
getShortName()
Gets the short name.
|
String |
getUsername()
getUsername() must return the name used by UserDetailService in the UserDetailsService.loadUserByUsername(String) |
String |
getUuid()
Gets the uuid.
|
boolean |
isAccountLocked()
Checks if is account locked.
|
boolean |
isAccountNonExpired() |
boolean |
isAccountNonLocked() |
boolean |
isCredentialsNonExpired() |
boolean |
isEnabled() |
void |
setAccountExpires(Date accountExpires)
Sets the account expires.
|
void |
setAccountType(BasicUser.AccountType accountType)
Sets the account type.
|
void |
setEmail(String email)
Sets the email.
|
void |
setFullName(String fullName)
Sets the full name.
|
void |
setLastLogin(Date lastLogin)
Sets the last login.
|
void |
setLockedUntil(Date lockedUntil)
Sets the locked until.
|
void |
setPassword(String password)
Sets the password.
|
void |
setPasswordExpires(Date passwordExpires)
Sets the password expires.
|
void |
setRoles(Set<R> roles)
Sets the roles.
|
void |
setRuntimeAuthorities(Set<String> authorities)
Set additional authorities at runtime.
|
void |
setShortName(String shortName)
Sets the short name.
|
void |
setUuid(String uuid)
Sets the uuid.
|
String |
toString() |
getAclEntries, getObjectIdentities, getSid, isPrincipal, setAclEntries, setObjectIdentities, setPrincipal, setSidgetCreatedBy, getCreatedDate, getLastModifiedBy, getLastModifiedDate, setCreatedBy, setCreatedDate, setLastModifiedBy, setLastModifiedDateequals, getVersion, hashCode, isActive, setActive, setVersiongetId, isPersisted, setIdpublic String getEmail()
public void setEmail(String email)
email - the new emailpublic String getShortName()
public void setShortName(String shortName)
shortName - the new short namepublic String getFullName()
getFullName in class AclSidpublic void setFullName(String fullName)
fullName - the new full namepublic Date getAccountExpires()
public void setAccountExpires(Date accountExpires)
accountExpires - the new account expirespublic Date getLockedUntil()
public void setLockedUntil(Date lockedUntil)
lockedUntil - the new locked untilpublic Date getPasswordExpires()
public void setPasswordExpires(Date passwordExpires)
passwordExpires - the new password expirespublic void setPassword(String password)
password - the new passwordpublic String getUuid()
public void setUuid(String uuid)
uuid - the new uuidpublic String toString()
toString in class VersionedModelpublic Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.core.userdetails.UserDetailspublic String getPassword()
getPassword in interface org.springframework.security.core.userdetails.UserDetailspublic String getUsername()
getUsername() must return the name used by UserDetailService in the UserDetailsService.loadUserByUsername(String)getUsername in interface org.springframework.security.core.userdetails.UserDetailsUserDetails.getUsername()public boolean isAccountNonExpired()
isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonLocked()
isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountLocked()
public boolean isCredentialsNonExpired()
isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isEnabled()
isEnabled in interface org.springframework.security.core.userdetails.UserDetailspublic BasicUser.AccountType getAccountType()
public void setAccountType(BasicUser.AccountType accountType)
accountType - the new account typepublic Date getLastLogin()
public void setLastLogin(Date lastLogin)
lastLogin - the new last loginCopyright © 2020 Global Crop Diversity Trust. All rights reserved.