| java.lang.Object com.lutris.appserver.server.sessionEnhydra.SessionUtil
SessionUtil | public class SessionUtil (Code) | | Static methods that can be used by applications to manage sessions.
version: $Revision: 1.2 $ author: Kyle Clark |
Method Summary | |
public static void | logIn(User user, Session session, boolean multiple) Logs a user in.
Parameters: user - the user to log in. Parameters: session - the session to associated with the user. Parameters: multiple - if true the user can have more than one sessionassociated with him/her. | public static void | logOut(Session session) Dissasociates the user from the session and all
references to the session are deleted from the
session manager. | public static boolean | resumeLogIn(User user, 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. |
logIn | public static void logIn(User user, Session session, boolean multiple) throws SessionException(Code) | | Logs a user in.
Parameters: user - the user to log in. Parameters: session - the session to associated with the user. Parameters: multiple - if true the user can have more than one sessionassociated with him/her. If false, all previous sessionsassociated with the user will be removed. exception: SessionException - if an error occurs. |
logOut | public static void logOut(Session session) throws SessionException(Code) | | 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. exception: SessionException - if an error occurs. |
resumeLogIn | public static boolean resumeLogIn(User user, Session session) throws SessionException(Code) | | 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 Parameters: session - the session true if the user was already logged in and the sessionhas been resumed. exception: SessionException - if an error occurs. |
|
|