|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 factoryMethod Detail |
---|
public final UserSessionData addActionEvent(ActionEvent actionEvent, UserSessionData userSession)
UserSessionService
addActionEvent
in interface UserSessionService
actionEvent
- the action eventuserSession
- the user sessionpublic final UserSessionData createUserSession(AgencyData agency, String sessionId, String clientHost, String serverHost, String acceptLanguageKeys, String userAgent)
UserSessionService
createUserSession
in interface UserSessionService
agency
- the agencysessionId
- the session idclientHost
- the header hostserverHost
- the server hostacceptLanguageKeys
- the accept language keysuserAgent
- the user agentpublic 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.UserDetailsService
org.springframework.security.core.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException
public final UserSessionData loadUserSessionById(Long userSessionId)
UserSessionService
loadUserSessionById
in interface UserSessionService
userSessionId
- the user session idpublic final UserSessionData login(String name, String encodedPassword, UserSessionData userSession)
UserSessionService
login
in interface UserSessionService
name
- the nameencodedPassword
- the encoded passworduserSession
- the user sessionpublic final UserSessionData logout(UserSessionData userSession)
UserSessionService
logout
in interface UserSessionService
userSession
- the user session
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |