EAF 7.6 Implementation

com.lutris.appserver.server.sessionEnhydra
Class SessionUtil

java.lang.Object
  extended by com.lutris.appserver.server.sessionEnhydra.SessionUtil

public class SessionUtil
extends java.lang.Object

Static methods that can be used by applications to manage sessions.

Version:
$Revision: 1.2 $
Author:
Kyle Clark

Method Summary
static void logIn(com.lutris.appserver.server.user.User user, com.lutris.appserver.server.session.Session session, boolean multiple)
          Logs a user in.
static void logOut(com.lutris.appserver.server.session.Session session)
          Dissasociates the user from the session and all references to the session are deleted from the session manager.
static boolean resumeLogIn(com.lutris.appserver.server.user.User user, com.lutris.appserver.server.session.Session session)
          If a user attempts to login but has not logged out from a previous session then this method can be used to copy data from the previous session into this session and to log out the previous session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

logIn

public static void logIn(com.lutris.appserver.server.user.User user,
                         com.lutris.appserver.server.session.Session session,
                         boolean multiple)
                  throws com.lutris.appserver.server.session.SessionException
Logs a user in.

Parameters:
user - the user to log in.
session - the session to associated with the user.
multiple - if true the user can have more than one session associated with him/her. If false, all previous sessions associated with the user will be removed.
Throws:
com.lutris.appserver.server.session.SessionException - if an error occurs.

logOut

public static void logOut(com.lutris.appserver.server.session.Session session)
                   throws com.lutris.appserver.server.session.SessionException
Dissasociates the user from the session and all references to the session are deleted from the session manager.

Parameters:
session - the session associated with the user.
Throws:
com.lutris.appserver.server.session.SessionException - if an error occurs.

resumeLogIn

public static boolean resumeLogIn(com.lutris.appserver.server.user.User user,
                                  com.lutris.appserver.server.session.Session session)
                           throws com.lutris.appserver.server.session.SessionException
If a user attempts to login but has not logged out from a previous session then this method can be used to copy data from the previous session into this session and to log out the previous session.

Parameters:
user - the user
session - the session
Returns:
true if the user was already logged in and the session has been resumed.
Throws:
com.lutris.appserver.server.session.SessionException - if an error occurs.

EAF 7.6 Implementation