|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.UserInstance
public class UserInstance
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)
Constructor Summary | |
---|---|
UserInstance(IPerson person)
|
Method Summary | |
---|---|
private java.lang.String |
constructCacheKey(IPerson person,
java.lang.String rootNodeId)
|
private IAggregatedUserLayoutManager |
getAggregatedLayoutManager(IUserLayoutManager ulm)
|
IPerson |
getPerson()
Gets the person object from the session. |
protected boolean |
processPortletActionIfNecessary(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.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. |
private void |
processUserLayoutParameters(javax.servlet.http.HttpServletRequest req,
ChannelManager channelManager)
Process layout action events. |
protected boolean |
processWorkerDispatch(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
ChannelManager cm)
A method will determine if current request is a worker dispatch, and if so process it appropriatly |
void |
renderState(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
ChannelManager channelManager,
LocaleManager localeManager,
IUserPreferencesManager upm,
java.lang.Object rendering_lock)
renderState method orchestrates the rendering pipeline. |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent bindingEvent)
Notifies UserInstance that it has been bound to a session. |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent bindingEvent)
This notifies UserInstance that it has been unbound from the session. |
void |
writeContent(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Prepares for and initates the rendering cycle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
public static final int guestUserId
private static final boolean logXMLBeforeStructureTransformation
private static final boolean logXMLBeforeThemeTransformation
private IUserPreferencesManager uPreferencesManager
private ChannelManager channelManager
private LocaleManager localeManager
private static final MediaManager MEDIAMANAGER
private StandaloneChannelRenderer p_browserMapper
private java.lang.Object p_rendering_lock
public static final boolean CACHE_ENABLED
private static final int SYSTEM_XSLT_CACHE_MIN_SIZE
private static final int SYSTEM_CHARACTER_BLOCK_CACHE_MIN_SIZE
public static final boolean CHARACTER_CACHE_ENABLED
public static final java.lang.String USER_LAYOUT_ROOT_NODE
private static final java.lang.String WORKER_PROPERTIES_FILE_NAME
private static java.util.Properties workerProperties
private static final java.lang.String CHARACTER_SET
final SoftHashMap systemCache
final SoftHashMap systemCharacterCache
protected IPerson person
private IUserLayoutNodeDescription newNodeDescription
Constructor Detail |
---|
public UserInstance(IPerson person)
Method Detail |
---|
public void writeContent(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws PortalException
req
- the servlet request objectres
- the servlet response object
PortalException
protected boolean processPortletActionIfNecessary(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
req
- the http servlet requestres
- the http servlet responsepublic void renderState(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, ChannelManager channelManager, LocaleManager localeManager, IUserPreferencesManager upm, java.lang.Object rendering_lock) throws PortalException
renderState
method orchestrates the rendering pipeline.
req
- the HttpServletRequest
res
- the HttpServletResponse
channelManager
- the ChannelManager
instanceupm
- the IUserPreferencesManager
instancerendering_lock
- a lock for rendering on a single user
PortalException
- if an error occursprivate java.lang.String constructCacheKey(IPerson person, java.lang.String rootNodeId) throws PortalException
PortalException
public IPerson getPerson()
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent bindingEvent)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
bindingEvent
- an HttpSessionBindingEvent
valuepublic void valueBound(javax.servlet.http.HttpSessionBindingEvent bindingEvent)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
bindingEvent
- a HttpSessionBindingEvent
valueprivate void processUserLayoutParameters(javax.servlet.http.HttpServletRequest req, ChannelManager channelManager) throws PortalException
req
- a HttpServletRequest
valuechannelManager
- a ChannelManager
value
PortalException
- if an error occursprivate IAggregatedUserLayoutManager getAggregatedLayoutManager(IUserLayoutManager ulm) throws PortalException
PortalException
protected boolean processWorkerDispatch(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, ChannelManager cm) throws PortalException
req
- the HttpServletRequest
res
- the HttpServletResponse
cm
- the ChannelManager
instance
boolean
value
PortalException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |