com.hack23.cia.model.application.impl.common
Class User

Package class diagram package User
java.lang.Object
  extended by com.hack23.cia.model.common.impl.BaseEntity
      extended by com.hack23.cia.model.application.impl.common.User
All Implemented Interfaces:
UserRole, ModelObject, PersistedModelObject, Role, Serializable, org.springframework.security.core.userdetails.UserDetails
Direct Known Subclasses:
RegisteredUser

@Entity
public class User
extends BaseEntity
implements org.springframework.security.core.userdetails.UserDetails, UserRole

The Class User.

See Also:
Serialized Form

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

User

public User()
Instantiates a new user.

Method Detail

getActor

public Actor getActor()
Description copied from interface: Role
Gets the actor.

Specified by:
getActor in interface Role
Returns:
the actor

getAuthorities

public Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
Specified by:
getAuthorities in interface org.springframework.security.core.userdetails.UserDetails

getCreatedDate

public Date getCreatedDate()
Gets the created date.

Returns:
the created date

getHuman

public Human getHuman()
Gets the human.

Returns:
the human

getId

public Long getId()
Description copied from class: BaseEntity
Gets the id.

Specified by:
getId in interface PersistedModelObject
Specified by:
getId in class BaseEntity
Returns:
the id

getPassword

public String getPassword()
Specified by:
getPassword in interface org.springframework.security.core.userdetails.UserDetails

getUsername

public String getUsername()
Specified by:
getUsername in interface org.springframework.security.core.userdetails.UserDetails

getUserRole

public User.UserRole getUserRole()
Gets the user role.

Returns:
the user role

getUserSessions

public List<UserSession> getUserSessions()
Gets the user sessions.

Returns:
the user sessions

getVersion

public Long getVersion()
Description copied from class: BaseEntity
Gets the version.

Specified by:
getVersion in interface PersistedModelObject
Specified by:
getVersion in class BaseEntity
Returns:
the version

isAccountNonExpired

public boolean isAccountNonExpired()
Specified by:
isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetails

isAccountNonLocked

public boolean isAccountNonLocked()
Specified by:
isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetails

isCredentialsNonExpired

public boolean isCredentialsNonExpired()
Specified by:
isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetails

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface org.springframework.security.core.userdetails.UserDetails

setActor

public void setActor(Actor actor)
Description copied from interface: Role
Sets the actor.

Specified by:
setActor in interface Role
Parameters:
actor - the new actor

setCreatedDate

public void setCreatedDate(Date createdDate)
Sets the created date.

Parameters:
createdDate - the new created date

setHuman

public void setHuman(Human human)
Sets the human.

Parameters:
human - the new human

setId

public void setId(Long id)
Description copied from interface: PersistedModelObject
Sets the id.

Specified by:
setId in interface PersistedModelObject
Parameters:
id - the new id

setPassword

public void setPassword(String password)
Sets the password.

Parameters:
password - the new password

setUsername

public void setUsername(String username)
Sets the username.

Parameters:
username - the new username

setUserRole

public void setUserRole(User.UserRole userRole)
Sets the user role.

Parameters:
userRole - the new user role

setUserSessions

public void setUserSessions(List<UserSession> userSessions)
Sets the user sessions.

Parameters:
userSessions - the new user sessions

setVersion

public void setVersion(Long version)
Description copied from interface: PersistedModelObject
Sets the version.

Specified by:
setVersion in interface PersistedModelObject
Parameters:
version - the new version


Copyright © 2008-2009 www.hack23.com. All Rights Reserved.