|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.turbine.services.session.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 java.util.Collection |
getActiveSessions()
Gets a list of the active sessions |
static java.util.Collection |
getActiveUsers()
Gets a collection of all user objects representing the users currently logged in. |
static javax.servlet.http.HttpSession |
getSession(java.lang.String sessionId)
Gets the HttpSession by the session identifier |
static java.util.Collection |
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 java.util.Collection 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 java.util.Collection getActiveUsers()
public static User getUserFromSession(javax.servlet.http.HttpSession session)
session -
public static javax.servlet.http.HttpSession getSession(java.lang.String sessionId)
sessionId -
public static java.util.Collection getSessionsForUser(User user)
user - the user
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||