|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lutris.appserver.server.sessionEnhydra.SessionUtil
public class SessionUtil
Static methods that can be used by applications to manage sessions.
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 |
---|
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
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.
com.lutris.appserver.server.session.SessionException
- if an error occurs.public static void logOut(com.lutris.appserver.server.session.Session session) throws com.lutris.appserver.server.session.SessionException
session
- the session associated with the user.
com.lutris.appserver.server.session.SessionException
- if an error occurs.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
user
- the usersession
- the session
com.lutris.appserver.server.session.SessionException
- if an error occurs.
|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |