|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.aggregator.impl.PortletRendererImpl
public class PortletRendererImpl
This service process all portlet rendering requests and interfaces with the portlet container to generate the resulting markup
Field Summary | |
---|---|
protected SecurityAccessController |
accessController
For security constraint checks |
protected DynamicTitleService |
addTitleService
|
protected boolean |
checkSecurityConstraints
flag indicating whether to check jetspeed-portlet.xml security constraints before rendering a portlet. |
protected org.apache.pluto.PortletContainer |
container
|
protected static org.apache.commons.logging.Log |
log
|
static java.lang.String |
OUT_OF_SERVICE_MESSAGE
|
protected boolean |
overrideTitles
OutOfService Cache |
protected JetspeedCache |
portletContentCache
JSR 168 Portlet Content Cache |
protected PortletTrackingManager |
portletTracking
|
protected PortalStatistics |
statistics
|
protected PortletWindowAccessor |
windowAccessor
|
protected WorkerMonitor |
workMonitor
|
Constructor Summary | |
---|---|
PortletRendererImpl(org.apache.pluto.PortletContainer container,
PortletWindowAccessor windowAccessor,
WorkerMonitor workMonitor)
|
|
PortletRendererImpl(org.apache.pluto.PortletContainer container,
PortletWindowAccessor windowAccessor,
WorkerMonitor workMonitor,
PortalStatistics statistics)
|
|
PortletRendererImpl(org.apache.pluto.PortletContainer container,
PortletWindowAccessor windowAccessor,
WorkerMonitor workMonitor,
PortalStatistics statistics,
DynamicTitleService addTitleService)
|
|
PortletRendererImpl(org.apache.pluto.PortletContainer container,
PortletWindowAccessor windowAccessor,
WorkerMonitor workMonitor,
PortalStatistics statistics,
DynamicTitleService addTitleService,
PortletTrackingManager portletTracking,
boolean checkSecurityConstraints,
SecurityAccessController accessController,
JetspeedCache portletContentCache)
|
|
PortletRendererImpl(org.apache.pluto.PortletContainer container,
PortletWindowAccessor windowAccessor,
WorkerMonitor workMonitor,
PortalStatistics statistics,
DynamicTitleService addTitleService,
PortletTrackingManager portletTracking,
boolean checkSecurityConstraints,
SecurityAccessController accessController,
JetspeedCache portletContentCache,
boolean overrideTitles)
|
Method Summary | |
---|---|
void |
addTitleToHeader(org.apache.pluto.om.window.PortletWindow portletWindow,
ContentFragment fragment,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ContentDispatcherCtrl dispatcher,
boolean isCacheTitle)
Set title of portlet window. |
protected void |
addToCache(PortletContent content)
|
protected RenderingJob |
buildRenderingJob(org.apache.pluto.om.window.PortletWindow portletWindow,
ContentFragment fragment,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
RequestContext requestContext,
boolean isParallel,
PortletDefinitionComposite portletDefinition,
ContentDispatcherCtrl dispatcher,
PortletContent portletContent,
int expirationCache,
boolean contentIsCached,
long timeoutMetadata)
|
protected RenderingJob |
buildRenderingJob(org.apache.pluto.om.window.PortletWindow portletWindow,
ContentFragment fragment,
RequestContext requestContext,
boolean isParallel,
PortletDefinitionComposite portletDefinition,
PortletContent portletContent,
boolean contentIsCached,
long timeoutMetadata)
|
protected boolean |
checkSecurityConstraint(PortletDefinitionComposite portlet,
ContentFragment fragment)
|
ContentDispatcherCtrl |
createDispatcher(RequestContext request,
ContentFragment fragment,
int expirationCache)
|
RenderingJob |
createRenderingJob(ContentFragment fragment,
RequestContext requestContext)
Create a rendering job for the specified Page fragment. |
ContentDispatcher |
getDispatcher(RequestContext request,
boolean isParallel)
Retrieve the ContentDispatcher for the specified request |
protected int |
getExpirationCache(PortletDefinitionComposite portletDefinition)
|
PortletTrackingManager |
getPortletTrackingManager()
|
protected org.apache.pluto.om.window.PortletWindow |
getPortletWindow(ContentFragment fragment)
|
protected long |
getTimeoutOnJob(PortletDefinitionComposite portletDefinition)
|
void |
notifyContentComplete(PortletContent content)
Notify that content completed by worker jobs So that renderer can update its state |
void |
processRenderingJob(RenderingJob job)
Render the specified rendering job. |
protected void |
processRenderingJob(RenderingJob job,
boolean parallelOnly)
|
RenderingJob |
render(ContentFragment fragment,
RequestContext requestContext)
Render the specified Page fragment. |
void |
renderNow(ContentFragment fragment,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Render the specified Page fragment. |
void |
renderNow(ContentFragment fragment,
RequestContext requestContext)
Render the specified Page fragment. |
protected boolean |
retrieveCachedContent(RequestContext requestContext,
ContentFragment fragment,
org.apache.pluto.om.window.PortletWindow portletWindow,
int expiration,
PortletDefinitionComposite portletDefinition)
Retrieve cached content, if content retrieved successfully return true, if no content found return false |
protected void |
setTimeoutOnJob(long timeoutMetadata,
RenderingJob rJob)
|
void |
start()
|
void |
stop()
|
void |
waitForRenderingJobs(java.util.List renderingJobs)
Wait for all rendering jobs in the collection to finish successfully or otherwise. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log log
protected WorkerMonitor workMonitor
protected org.apache.pluto.PortletContainer container
protected PortletWindowAccessor windowAccessor
protected PortalStatistics statistics
protected DynamicTitleService addTitleService
protected PortletTrackingManager portletTracking
protected boolean checkSecurityConstraints
protected SecurityAccessController accessController
protected JetspeedCache portletContentCache
protected boolean overrideTitles
public static final java.lang.String OUT_OF_SERVICE_MESSAGE
Constructor Detail |
---|
public PortletRendererImpl(org.apache.pluto.PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics, DynamicTitleService addTitleService, PortletTrackingManager portletTracking, boolean checkSecurityConstraints, SecurityAccessController accessController, JetspeedCache portletContentCache, boolean overrideTitles)
public PortletRendererImpl(org.apache.pluto.PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics, DynamicTitleService addTitleService, PortletTrackingManager portletTracking, boolean checkSecurityConstraints, SecurityAccessController accessController, JetspeedCache portletContentCache)
public PortletRendererImpl(org.apache.pluto.PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics, DynamicTitleService addTitleService)
public PortletRendererImpl(org.apache.pluto.PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics)
public PortletRendererImpl(org.apache.pluto.PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor)
Method Detail |
---|
public void start()
public void stop()
public void renderNow(ContentFragment fragment, RequestContext requestContext)
renderNow
in interface PortletRenderer
FailedToRenderFragmentException
FailedToRetrievePortletWindow
UnknownPortletDefinitionException
public void renderNow(ContentFragment fragment, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
renderNow
in interface PortletRenderer
FailedToRenderFragmentException
FailedToRetrievePortletWindow
UnknownPortletDefinitionException
PortletAccessDeniedException
protected int getExpirationCache(PortletDefinitionComposite portletDefinition)
public RenderingJob render(ContentFragment fragment, RequestContext requestContext)
render
in interface PortletRenderer
public RenderingJob createRenderingJob(ContentFragment fragment, RequestContext requestContext)
createRenderingJob
in interface PortletRenderer
FailedToRetrievePortletWindow
UnknownPortletDefinitionException
PortletAccessDeniedException
public void processRenderingJob(RenderingJob job)
processRenderingJob
in interface PortletRenderer
FailedToRenderFragmentException
protected void processRenderingJob(RenderingJob job, boolean parallelOnly)
public void waitForRenderingJobs(java.util.List renderingJobs)
waitForRenderingJobs
in interface PortletRenderer
renderingJobs
- the Collection of rendering job objects to wait for.protected boolean retrieveCachedContent(RequestContext requestContext, ContentFragment fragment, org.apache.pluto.om.window.PortletWindow portletWindow, int expiration, PortletDefinitionComposite portletDefinition) throws java.lang.Exception
requestContext
- fragment
- portletWindow
-
java.lang.Exception
public ContentDispatcherCtrl createDispatcher(RequestContext request, ContentFragment fragment, int expirationCache)
public ContentDispatcher getDispatcher(RequestContext request, boolean isParallel)
getDispatcher
in interface PortletRenderer
protected org.apache.pluto.om.window.PortletWindow getPortletWindow(ContentFragment fragment) throws FailedToRetrievePortletWindow, PortletEntityNotStoredException
FailedToRetrievePortletWindow
PortletEntityNotStoredException
protected RenderingJob buildRenderingJob(org.apache.pluto.om.window.PortletWindow portletWindow, ContentFragment fragment, RequestContext requestContext, boolean isParallel, PortletDefinitionComposite portletDefinition, PortletContent portletContent, boolean contentIsCached, long timeoutMetadata) throws PortletAccessDeniedException, FailedToRetrievePortletWindow, PortletEntityNotStoredException
PortletAccessDeniedException
FailedToRetrievePortletWindow
PortletEntityNotStoredException
protected RenderingJob buildRenderingJob(org.apache.pluto.om.window.PortletWindow portletWindow, ContentFragment fragment, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, RequestContext requestContext, boolean isParallel, PortletDefinitionComposite portletDefinition, ContentDispatcherCtrl dispatcher, PortletContent portletContent, int expirationCache, boolean contentIsCached, long timeoutMetadata) throws PortletAccessDeniedException, FailedToRetrievePortletWindow, PortletEntityNotStoredException
PortletAccessDeniedException
FailedToRetrievePortletWindow
PortletEntityNotStoredException
protected long getTimeoutOnJob(PortletDefinitionComposite portletDefinition)
protected void setTimeoutOnJob(long timeoutMetadata, RenderingJob rJob)
public void addTitleToHeader(org.apache.pluto.om.window.PortletWindow portletWindow, ContentFragment fragment, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ContentDispatcherCtrl dispatcher, boolean isCacheTitle)
PortletRenderer
addTitleToHeader
in interface PortletRenderer
protected boolean checkSecurityConstraint(PortletDefinitionComposite portlet, ContentFragment fragment)
protected void addToCache(PortletContent content)
public void notifyContentComplete(PortletContent content)
PortletRenderer
notifyContentComplete
in interface PortletRenderer
public PortletTrackingManager getPortletTrackingManager()
getPortletTrackingManager
in interface PortletRenderer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |