|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.services.session.TurbineSession
public abstract class TurbineSession
This is a conveience class provided to allow access to the SessionService through static methods. The SessionService should ALWAYS be accessed through this class.
SessionService
Constructor Summary | |
---|---|
TurbineSession()
|
Method Summary | |
---|---|
static void |
addSession(javax.servlet.http.HttpSession session)
Adds a session to the current list. |
static Collection<javax.servlet.http.HttpSession> |
getActiveSessions()
Gets a list of the active sessions |
static Collection<User> |
getActiveUsers()
Gets a collection of all user objects representing the users currently logged in. |
static javax.servlet.http.HttpSession |
getSession(String sessionId)
Gets the HttpSession by the session identifier |
static Collection<javax.servlet.http.HttpSession> |
getSessionsForUser(User user)
Get a collection of all session on which the given user is logged in. |
static User |
getUserFromSession(javax.servlet.http.HttpSession session)
Gets the User object of the the specified HttpSession. |
static boolean |
isUserLoggedIn(User user)
Determines if a given user is currently logged in. |
static void |
removeSession(javax.servlet.http.HttpSession session)
Removes a session from the current list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TurbineSession()
Method Detail |
---|
public static Collection<javax.servlet.http.HttpSession> getActiveSessions()
public static void addSession(javax.servlet.http.HttpSession session)
session
- Session to addpublic static void removeSession(javax.servlet.http.HttpSession session)
session
- Session to removepublic static boolean isUserLoggedIn(User user)
user
- User to check for
public static Collection<User> getActiveUsers()
public static User getUserFromSession(javax.servlet.http.HttpSession session)
session
-
public static javax.servlet.http.HttpSession getSession(String sessionId)
sessionId
-
public static Collection<javax.servlet.http.HttpSession> getSessionsForUser(User user)
user
- the user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |