public interface SessionService extends Service(Code)
The SessionService allows access to the current sessions of the current context.
The session objects that are cached by this service are obtained through
a listener. The listener must be configured in your web.xml file.
author: Quinton McCombs since: 2.3 See Also:org.apache.turbine.services.session.SessionListener version: $Id: SessionService.java 534527 2007-05-02 16:10:59Z tv $
getUserFromSession(HttpSession session) Gets the User object of the the specified HttpSession.
Parameters: session - The session from which to extract a user.
boolean
isUserLoggedIn(User user) Determines if a given user is currently logged in.
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
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.