@Entity public class Account extends com.jk.core.jpa.BaseEntity implements org.springframework.security.core.userdetails.UserDetails, Serializable
| Constructor and Description |
|---|
Account() |
| Modifier and Type | Method and Description |
|---|---|
static Account |
create()
Creates the.
|
Account |
email(String email)
Email.
|
Account |
firstname(String firstname)
Firstname.
|
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities()
Gets the authorities.
|
String |
getUsername()
Gets the username.
|
boolean |
isAccountNonExpired()
Checks if is account non expired.
|
boolean |
isAccountNonLocked()
Checks if is account non locked.
|
boolean |
isCredentialsNonExpired()
Checks if is credentials non expired.
|
boolean |
isEnabled()
Checks if is enabled.
|
boolean |
isTokenExpired()
Checks if is token expired.
|
Account |
lastname(String lastname)
Lastname.
|
void |
prePersist()
Pre persist.
|
void |
preUpdate()
Pre update.
|
canEqual, equals, getCrtDate, getCrtUser, getDescription, getDisplayName, getModDate, getModUser, getName, getSummary, getTenant, getUid, getVersion, hashCode, postUpdate, setCrtDate, setCrtUser, setDescription, setDisplayName, setModDate, setModUser, setName, setSummary, setTenant, setUid, setVersion, toStringpublic static Account create()
public Account firstname(String firstname)
firstname - the firstnamepublic Account lastname(String lastname)
lastname - the lastnamepublic Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.core.userdetails.UserDetailspublic String getUsername()
getUsername in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonExpired()
isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isAccountNonLocked()
isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isCredentialsNonExpired()
isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isEnabled()
isEnabled in interface org.springframework.security.core.userdetails.UserDetailspublic boolean isTokenExpired()
public void prePersist()
prePersist in class com.jk.core.jpa.BaseEntitypublic void preUpdate()
preUpdate in class com.jk.core.jpa.BaseEntityCopyright © 2023 Smart-Cloud. All rights reserved.