This is a conveience class provided to allow access to the SessionService
through static methods. The SessionService should ALWAYS be accessed
through this class.
author: Quinton McCombs version: $Id: TurbineSession.java 534527 2007-05-02 16:10:59Z tv $ See Also:org.apache.turbine.services.session.SessionService
Gets a collection of all user objects representing the users currently
logged in. This will exclude any instances of anonymous user that
Turbine will use before the user actually logs on.
collection of org.apache.turbine.om.security.User objects
Gets the User object of the the specified HttpSession.
Parameters: session -
isUserLoggedIn
public static boolean isUserLoggedIn(User user)(Code)
Determines if a given user is currently logged in. The actual
implementation of the User object must implement the equals()
method. By default, Torque based objects (liek TurbineUser)
have an implementation of equals() that will compare the
result of getPrimaryKey().
Parameters: user - User to check for true if the user is logged in on one of theactive sessions.