The SessionService allows thread-safe access to the current
sessions of the current context. The session objects that are
cached by this service are obtained through a listener, which must
be configured via your web application's web.xml
deployement descriptor as follows:
getUserFromSession(HttpSession session) Gets the User object of the the specified HttpSession.
Parameters: session - The session from which to extract a user.
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.
A set of org.apache.turbine.om.security.User objects.
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.