com.hack23.cia.service.impl.common
Interface UserSessionService

Package class diagram package UserSessionService
All Superinterfaces:
org.springframework.security.core.userdetails.UserDetailsService
All Known Implementing Classes:
UserSessionServiceImpl

public interface UserSessionService
extends org.springframework.security.core.userdetails.UserDetailsService

The Interface UserSessionService.


Method Summary
Modifier and Type Method and Description
 UserSessionData addActionEvent(ActionEvent actionEvent, UserSessionData userSession)
          Adds the action event.
 UserSessionData createUserSession(AgencyData agency, String sessionId, String headerHost, String serverHost, String acceptLanguageKeys, String userAgent)
          Creates the user session.
 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 interface org.springframework.security.core.userdetails.UserDetailsService
loadUserByUsername
 

Method Detail

addActionEvent

UserSessionData addActionEvent(ActionEvent actionEvent,
                               UserSessionData userSession)
Adds the action event.

Parameters:
actionEvent - the action event
userSession - the user session
Returns:
the user session data

createUserSession

UserSessionData createUserSession(AgencyData agency,
                                  String sessionId,
                                  String headerHost,
                                  String serverHost,
                                  String acceptLanguageKeys,
                                  String userAgent)
Creates the user session.

Parameters:
agency - the agency
sessionId - the session id
headerHost - the header host
serverHost - the server host
acceptLanguageKeys - the accept language keys
userAgent - the user agent
Returns:
the user session data

loadUserSessionById

UserSessionData loadUserSessionById(Long userSessionId)
Load user session by id.

Parameters:
userSessionId - the user session id
Returns:
the user session data

login

UserSessionData login(String name,
                      String encodedPassword,
                      UserSessionData userSession)
Login.

Parameters:
name - the name
encodedPassword - the encoded password
userSession - the user session
Returns:
the user session data

logout

UserSessionData logout(UserSessionData userSession)
Logout.

Parameters:
userSession - the user session
Returns:
the user session data


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