| java.lang.Object org.jasig.portal.UserInstance
All known Subclasses: org.jasig.portal.GuestUserInstance,
UserInstance | public class UserInstance implements HttpSessionBindingListener(Code) | | A class handling holding all user state information. The class is also reponsible for
request processing and orchestrating the entire rendering procedure.
(this is a replacement for the good old LayoutBean class)
author: Peter Kharchenko pkharchenko@interactivebusiness.com" version: $Revision: 42516 $ |
Method Summary | |
public IPerson | getPerson() Gets the person object from the session. | public IUserPreferencesManager | getPreferencesManager() Gets the preferences manager object from the session. | protected boolean | processPortletActionIfNecessary(HttpServletRequest req, HttpServletResponse res) Determines if this request is triggering a portlet's processAction method,
and if so, starts the rendering cycle early which has the effect of
feeding the portlet control structures and channel runtime data to the
portlet adapter so that the portlet's process action
method gets a chance to complete before we continue. | protected boolean | processWorkerDispatch(HttpServletRequest req, HttpServletResponse res, ChannelManager cm) | public void | renderState(HttpServletRequest req, HttpServletResponse res, ChannelManager channelManager, LocaleManager localeManager, IUserPreferencesManager upm, Object rendering_lock) renderState method orchestrates the rendering pipeline. | public void | valueBound(HttpSessionBindingEvent bindingEvent) Notifies UserInstance that it has been bound to a session. | public void | valueUnbound(HttpSessionBindingEvent bindingEvent) This notifies UserInstance that it has been unbound from the session. | public void | writeContent(HttpServletRequest req, HttpServletResponse res) Prepares for and initates the rendering cycle. |
CACHE_ENABLED | final public static boolean CACHE_ENABLED(Code) | | |
CHARACTER_CACHE_ENABLED | final public static boolean CHARACTER_CACHE_ENABLED(Code) | | |
USER_LAYOUT_ROOT_NODE | final public static String USER_LAYOUT_ROOT_NODE(Code) | | |
guestUserId | final public static int guestUserId(Code) | | |
userSessions | final public static AtomicInteger userSessions(Code) | | |
getPerson | public IPerson getPerson()(Code) | | Gets the person object from the session. Null is returned if
no person is logged in
the person object, null if no person is logged in |
getPreferencesManager | public IUserPreferencesManager getPreferencesManager()(Code) | | Gets the preferences manager object from the session.
the UserPreferencesManager object, null if no person is logged in |
processPortletActionIfNecessary | protected boolean processPortletActionIfNecessary(HttpServletRequest req, HttpServletResponse res)(Code) | | Determines if this request is triggering a portlet's processAction method,
and if so, starts the rendering cycle early which has the effect of
feeding the portlet control structures and channel runtime data to the
portlet adapter so that the portlet's process action
method gets a chance to complete before we continue.
This allows portlets to affect things like window states and be able to
redirect to another web page as required by the portlet specification.
Parameters: req - the http servlet request Parameters: res - the http servlet response |
processWorkerDispatch | protected boolean processWorkerDispatch(HttpServletRequest req, HttpServletResponse res, ChannelManager cm) throws PortalException(Code) | | A method will determine if current request is a worker dispatch, and if so process it appropriatly
Parameters: req - the HttpServletRequest Parameters: res - the HttpServletResponse Parameters: cm - the ChannelManager instance a boolean value exception: PortalException - if an error occurs |
valueBound | public void valueBound(HttpSessionBindingEvent bindingEvent)(Code) | | Notifies UserInstance that it has been bound to a session.
Parameters: bindingEvent - a HttpSessionBindingEvent value |
valueUnbound | public void valueUnbound(HttpSessionBindingEvent bindingEvent)(Code) | | This notifies UserInstance that it has been unbound from the session.
Method triggers cleanup in ChannelManager.
Parameters: bindingEvent - an HttpSessionBindingEvent value |
|
|