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

Package class diagram package User
java.lang.Object
  extended by com.hack23.cia.model.impl.common.BaseEntity
      extended by com.hack23.cia.model.impl.application.administration.User
All Implemented Interfaces:
UserData, 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, UserData

The Class User.

See Also:
Serialized Form

Constructor Summary
Constructor and Description
User()
          Instantiates a new user.
 
Method Summary
Modifier and Type Method and Description
 Actor getActor()
          Gets the actor.
protected  TypeContext getApplicationTypeContext()
          Gets the application type context.
 Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
           
 Date getCreatedDate()
          Gets the created date.
 Person getHuman()
          Gets the human.
 Long getId()
          Gets the id.
 String getPassword()
           
 String getUsername()
           
 UserRoleType 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(Person person)
          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(UserRoleType 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.impl.common.BaseEntity
equals, getTypeContext, 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.api.common.PersistedModelObject
getTypeContext, 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

getApplicationTypeContext

protected TypeContext getApplicationTypeContext()
Description copied from class: BaseEntity
Gets the application type context.

Specified by:
getApplicationTypeContext in class BaseEntity
Returns:
the application type context

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 Person 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 UserRoleType getUserRole()
Description copied from interface: UserData
Gets the user role.

Specified by:
getUserRole in interface UserData
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)
Description copied from interface: UserData
Sets the created date.

Specified by:
setCreatedDate in interface UserData
Parameters:
createdDate - the new created date

setHuman

public void setHuman(Person person)
Sets the human.

Parameters:
person - 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)
Description copied from interface: UserData
Sets the username.

Specified by:
setUsername in interface UserData
Parameters:
username - the new username

setUserRole

public void setUserRole(UserRoleType userRole)
Description copied from interface: UserData
Sets the user role.

Specified by:
setUserRole in interface UserData
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-2010 www.hack23.com. All Rights Reserved.