|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hack23.cia.model.common.impl.BaseEntity com.hack23.cia.model.application.impl.common.User
@Entity public class User
The Class User.
Nested Class Summary | |
---|---|
static class |
User.UserRole
The Enum UserRole. |
Constructor Summary | |
---|---|
User()
Instantiates a new user. |
Method Summary | |
---|---|
Actor |
getActor()
Gets the actor. |
Collection<org.springframework.security.core.GrantedAuthority> |
getAuthorities()
|
Date |
getCreatedDate()
Gets the created date. |
Human |
getHuman()
Gets the human. |
Long |
getId()
Gets the id. |
String |
getPassword()
|
String |
getUsername()
|
User.UserRole |
getUserRole()
Gets the user role. |
List<UserSession> |
getUserSessions()
Gets the user sessions. |
Long |
getVersion()
Gets the version. |
boolean |
isAccountNonExpired()
|
boolean |
isAccountNonLocked()
|
boolean |
isCredentialsNonExpired()
|
boolean |
isEnabled()
|
void |
setActor(Actor actor)
Sets the actor. |
void |
setCreatedDate(Date createdDate)
Sets the created date. |
void |
setHuman(Human human)
Sets the human. |
void |
setId(Long id)
Sets the id. |
void |
setPassword(String password)
Sets the password. |
void |
setUsername(String username)
Sets the username. |
void |
setUserRole(User.UserRole userRole)
Sets the user role. |
void |
setUserSessions(List<UserSession> userSessions)
Sets the user sessions. |
void |
setVersion(Long version)
Sets the version. |
Methods inherited from class com.hack23.cia.model.common.impl.BaseEntity |
---|
equals, hashCode, isNew |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hack23.cia.model.common.api.PersistedModelObject |
---|
isNew |
Constructor Detail |
---|
public User()
Method Detail |
---|
public Actor getActor()
Role
getActor
in interface Role
public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities
in interface org.springframework.security.core.userdetails.UserDetails
public Date getCreatedDate()
public Human getHuman()
public Long getId()
BaseEntity
getId
in interface PersistedModelObject
getId
in class BaseEntity
public String getPassword()
getPassword
in interface org.springframework.security.core.userdetails.UserDetails
public String getUsername()
getUsername
in interface org.springframework.security.core.userdetails.UserDetails
public User.UserRole getUserRole()
public List<UserSession> getUserSessions()
public Long getVersion()
BaseEntity
getVersion
in interface PersistedModelObject
getVersion
in class BaseEntity
public boolean isAccountNonExpired()
isAccountNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isAccountNonLocked()
isAccountNonLocked
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isCredentialsNonExpired()
isCredentialsNonExpired
in interface org.springframework.security.core.userdetails.UserDetails
public boolean isEnabled()
isEnabled
in interface org.springframework.security.core.userdetails.UserDetails
public void setActor(Actor actor)
Role
setActor
in interface Role
actor
- the new actorpublic void setCreatedDate(Date createdDate)
createdDate
- the new created datepublic void setHuman(Human human)
human
- the new humanpublic void setId(Long id)
PersistedModelObject
setId
in interface PersistedModelObject
id
- the new idpublic void setPassword(String password)
password
- the new passwordpublic void setUsername(String username)
username
- the new usernamepublic void setUserRole(User.UserRole userRole)
userRole
- the new user rolepublic void setUserSessions(List<UserSession> userSessions)
userSessions
- the new user sessionspublic void setVersion(Long version)
PersistedModelObject
setVersion
in interface PersistedModelObject
version
- the new version
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |