|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcom.hack23.cia.service.impl.common.UserSessionServiceImpl
public class UserSessionServiceImpl extends Object implements UserSessionService
The Class UserSessionServiceImpl.
| Constructor and Description |
|---|
UserSessionServiceImpl(UserDAO userDAO,
UserSessionDAO userSessionDAO,
ApplicationModelFactoryFactory applicationModelFactoryFactory)
Instantiates a new user session service impl. |
| Modifier and Type | Method and Description |
|---|---|
UserSessionData |
addActionEvent(ActionEvent actionEvent,
UserSessionData userSession)
Adds the action event. |
UserSessionData |
createUserSession(AgencyData agency,
String sessionId,
String clientHost,
String serverHost,
String acceptLanguageKeys,
String userAgent)
Creates the user session. |
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String username)
|
UserSessionData |
loadUserSessionById(Long userSessionId)
Load user session by id. |
UserSessionData |
login(String name,
String encodedPassword,
UserSessionData userSession)
Login. |
UserSessionData |
logout(UserSessionData userSession)
Logout. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserSessionServiceImpl(UserDAO userDAO,
UserSessionDAO userSessionDAO,
ApplicationModelFactoryFactory applicationModelFactoryFactory)
userDAO - the user daouserSessionDAO - the user session daoapplicationModelFactoryFactory - the application model factory factory| Method Detail |
|---|
public final UserSessionData addActionEvent(ActionEvent actionEvent,
UserSessionData userSession)
UserSessionService
addActionEvent in interface UserSessionServiceactionEvent - the action eventuserSession - the user session
public final UserSessionData createUserSession(AgencyData agency,
String sessionId,
String clientHost,
String serverHost,
String acceptLanguageKeys,
String userAgent)
UserSessionService
createUserSession in interface UserSessionServiceagency - the agencysessionId - the session idclientHost - the header hostserverHost - the server hostacceptLanguageKeys - the accept language keysuserAgent - the user agent
public final org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username)
throws org.springframework.security.core.userdetails.UsernameNotFoundException,
org.springframework.dao.DataAccessException
loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsServiceorg.springframework.security.core.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionpublic final UserSessionData loadUserSessionById(Long userSessionId)
UserSessionService
loadUserSessionById in interface UserSessionServiceuserSessionId - the user session id
public final UserSessionData login(String name,
String encodedPassword,
UserSessionData userSession)
UserSessionService
login in interface UserSessionServicename - the nameencodedPassword - the encoded passworduserSession - the user sessionpublic final UserSessionData logout(UserSessionData userSession)
UserSessionService
logout in interface UserSessionServiceuserSession - the user session
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||