public abstract class TurbineSession extends Object
SessionService
Constructor and Description |
---|
TurbineSession() |
Modifier and Type | Method and Description |
---|---|
static void |
addSession(HttpSession session)
Adds a session to the current list.
|
static Collection<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 HttpSession |
getSession(String sessionId)
Gets the HttpSession by the session identifier
|
static Collection<HttpSession> |
getSessionsForUser(User user)
Get a collection of all session on which the given user
is logged in.
|
static User |
getUserFromSession(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(HttpSession session)
Removes a session from the current list.
|
public TurbineSession()
public static Collection<HttpSession> getActiveSessions()
public static void addSession(HttpSession session)
session
- Session to addpublic static void removeSession(HttpSession session)
session
- Session to removepublic static boolean isUserLoggedIn(User user)
user
- User to check forpublic static Collection<User> getActiveUsers()
public static User getUserFromSession(HttpSession session)
session
- public static HttpSession getSession(String sessionId)
sessionId
- the id of the sessionpublic static Collection<HttpSession> getSessionsForUser(User user)
user
- the userCopyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.