Java Doc for PortletRendererImpl.java in  » Portal » jetspeed-2.1.3 » org » apache » jetspeed » aggregator » impl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » jetspeed 2.1.3 » org.apache.jetspeed.aggregator.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.jetspeed.aggregator.impl.PortletRendererImpl

PortletRendererImpl
public class PortletRendererImpl implements PortletRenderer(Code)

PortletRendererService
Jetspeed-2 Rendering service.

This service process all portlet rendering requests and interfaces with the portlet container to generate the resulting markup


author:
   Rapha�l Luta
author:
   David Sean Taylor
author:
   Woonsan Ko
version:
   $Id: PortletRendererImpl.java,v 1.30 2005/05/20 14:54:22 ate Exp $


Field Summary
final public static  StringOUT_OF_SERVICE_MESSAGE
    
protected  SecurityAccessControlleraccessController
    
protected  DynamicTitleServiceaddTitleService
    
protected  booleancheckSecurityConstraints
     flag indicating whether to check jetspeed-portlet.xml security constraints before rendering a portlet.
protected  PortletContainercontainer
    
final protected static  Loglog
    
protected  booleanoverrideTitles
    
protected  JetspeedCacheportletContentCache
    
protected  PortletTrackingManagerportletTracking
    
protected  PortalStatisticsstatistics
    
protected  PortletWindowAccessorwindowAccessor
    
protected  WorkerMonitorworkMonitor
    

Constructor Summary
public  PortletRendererImpl(PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics, DynamicTitleService addTitleService, PortletTrackingManager portletTracking, boolean checkSecurityConstraints, SecurityAccessController accessController, JetspeedCache portletContentCache, boolean overrideTitles)
    
public  PortletRendererImpl(PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics, DynamicTitleService addTitleService, PortletTrackingManager portletTracking, boolean checkSecurityConstraints, SecurityAccessController accessController, JetspeedCache portletContentCache)
    
public  PortletRendererImpl(PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics, DynamicTitleService addTitleService)
    
public  PortletRendererImpl(PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics)
    
public  PortletRendererImpl(PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor)
    

Method Summary
public  voidaddTitleToHeader(PortletWindow portletWindow, ContentFragment fragment, HttpServletRequest request, HttpServletResponse response, ContentDispatcherCtrl dispatcher, boolean isCacheTitle)
    
protected  voidaddToCache(PortletContent content)
    
protected  RenderingJobbuildRenderingJob(PortletWindow portletWindow, ContentFragment fragment, RequestContext requestContext, boolean isParallel, PortletDefinitionComposite portletDefinition, PortletContent portletContent, boolean contentIsCached, long timeoutMetadata)
    
protected  RenderingJobbuildRenderingJob(PortletWindow portletWindow, ContentFragment fragment, HttpServletRequest request, HttpServletResponse response, RequestContext requestContext, boolean isParallel, PortletDefinitionComposite portletDefinition, ContentDispatcherCtrl dispatcher, PortletContent portletContent, int expirationCache, boolean contentIsCached, long timeoutMetadata)
    
protected  booleancheckSecurityConstraint(PortletDefinitionComposite portlet, ContentFragment fragment)
    
public  ContentDispatcherCtrlcreateDispatcher(RequestContext request, ContentFragment fragment, int expirationCache)
    
public  RenderingJobcreateRenderingJob(ContentFragment fragment, RequestContext requestContext)
     Create a rendering job for the specified Page fragment.
public  ContentDispatchergetDispatcher(RequestContext request, boolean isParallel)
    
protected  intgetExpirationCache(PortletDefinitionComposite portletDefinition)
    
public  PortletTrackingManagergetPortletTrackingManager()
    
protected  PortletWindowgetPortletWindow(ContentFragment fragment)
    
protected  longgetTimeoutOnJob(PortletDefinitionComposite portletDefinition)
    
public  voidnotifyContentComplete(PortletContent content)
    
public  voidprocessRenderingJob(RenderingJob job)
     Render the specified rendering job.
protected  voidprocessRenderingJob(RenderingJob job, boolean parallelOnly)
    
public  RenderingJobrender(ContentFragment fragment, RequestContext requestContext)
     Render the specified Page fragment.
public  voidrenderNow(ContentFragment fragment, RequestContext requestContext)
     Render the specified Page fragment.
public  voidrenderNow(ContentFragment fragment, HttpServletRequest request, HttpServletResponse response)
     Render the specified Page fragment.
protected  booleanretrieveCachedContent(RequestContext requestContext, ContentFragment fragment, PortletWindow portletWindow, int expiration, PortletDefinitionComposite portletDefinition)
    
protected  voidsetTimeoutOnJob(long timeoutMetadata, RenderingJob rJob)
    
public  voidstart()
    
public  voidstop()
    
public  voidwaitForRenderingJobs(List renderingJobs)
     Wait for all rendering jobs in the collection to finish successfully or otherwise.

Field Detail
OUT_OF_SERVICE_MESSAGE
final public static String OUT_OF_SERVICE_MESSAGE(Code)



accessController
protected SecurityAccessController accessController(Code)
For security constraint checks



addTitleService
protected DynamicTitleService addTitleService(Code)



checkSecurityConstraints
protected boolean checkSecurityConstraints(Code)
flag indicating whether to check jetspeed-portlet.xml security constraints before rendering a portlet. If security check fails, do not display portlet content



container
protected PortletContainer container(Code)



log
final protected static Log log(Code)



overrideTitles
protected boolean overrideTitles(Code)
OutOfService Cache



portletContentCache
protected JetspeedCache portletContentCache(Code)
JSR 168 Portlet Content Cache



portletTracking
protected PortletTrackingManager portletTracking(Code)



statistics
protected PortalStatistics statistics(Code)



windowAccessor
protected PortletWindowAccessor windowAccessor(Code)



workMonitor
protected WorkerMonitor workMonitor(Code)




Constructor Detail
PortletRendererImpl
public PortletRendererImpl(PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics, DynamicTitleService addTitleService, PortletTrackingManager portletTracking, boolean checkSecurityConstraints, SecurityAccessController accessController, JetspeedCache portletContentCache, boolean overrideTitles)(Code)



PortletRendererImpl
public PortletRendererImpl(PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics, DynamicTitleService addTitleService, PortletTrackingManager portletTracking, boolean checkSecurityConstraints, SecurityAccessController accessController, JetspeedCache portletContentCache)(Code)



PortletRendererImpl
public PortletRendererImpl(PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics, DynamicTitleService addTitleService)(Code)



PortletRendererImpl
public PortletRendererImpl(PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor, PortalStatistics statistics)(Code)



PortletRendererImpl
public PortletRendererImpl(PortletContainer container, PortletWindowAccessor windowAccessor, WorkerMonitor workMonitor)(Code)




Method Detail
addTitleToHeader
public void addTitleToHeader(PortletWindow portletWindow, ContentFragment fragment, HttpServletRequest request, HttpServletResponse response, ContentDispatcherCtrl dispatcher, boolean isCacheTitle)(Code)



addToCache
protected void addToCache(PortletContent content)(Code)



buildRenderingJob
protected RenderingJob buildRenderingJob(PortletWindow portletWindow, ContentFragment fragment, RequestContext requestContext, boolean isParallel, PortletDefinitionComposite portletDefinition, PortletContent portletContent, boolean contentIsCached, long timeoutMetadata) throws PortletAccessDeniedException, FailedToRetrievePortletWindow, PortletEntityNotStoredException(Code)



buildRenderingJob
protected RenderingJob buildRenderingJob(PortletWindow portletWindow, ContentFragment fragment, HttpServletRequest request, HttpServletResponse response, RequestContext requestContext, boolean isParallel, PortletDefinitionComposite portletDefinition, ContentDispatcherCtrl dispatcher, PortletContent portletContent, int expirationCache, boolean contentIsCached, long timeoutMetadata) throws PortletAccessDeniedException, FailedToRetrievePortletWindow, PortletEntityNotStoredException(Code)



checkSecurityConstraint
protected boolean checkSecurityConstraint(PortletDefinitionComposite portlet, ContentFragment fragment)(Code)



createDispatcher
public ContentDispatcherCtrl createDispatcher(RequestContext request, ContentFragment fragment, int expirationCache)(Code)



createRenderingJob
public RenderingJob createRenderingJob(ContentFragment fragment, RequestContext requestContext)(Code)
Create a rendering job for the specified Page fragment. The method returns a rendering job which should be passed to 'processRenderingJob(RenderingJob job)' method. portlet rendering job to pass to render(RenderingJob job) method
throws:
  FailedToRetrievePortletWindow -
throws:
  UnknownPortletDefinitionException -
throws:
  PortletAccessDeniedException -



getDispatcher
public ContentDispatcher getDispatcher(RequestContext request, boolean isParallel)(Code)
Retrieve the ContentDispatcher for the specified request



getExpirationCache
protected int getExpirationCache(PortletDefinitionComposite portletDefinition)(Code)



getPortletTrackingManager
public PortletTrackingManager getPortletTrackingManager()(Code)



getPortletWindow
protected PortletWindow getPortletWindow(ContentFragment fragment) throws FailedToRetrievePortletWindow, PortletEntityNotStoredException(Code)



getTimeoutOnJob
protected long getTimeoutOnJob(PortletDefinitionComposite portletDefinition)(Code)



notifyContentComplete
public void notifyContentComplete(PortletContent content)(Code)



processRenderingJob
public void processRenderingJob(RenderingJob job)(Code)
Render the specified rendering job. The method returns before rendering is complete when the job is processed in parallel mode. When it is not parallel mode, it returns after rendering is complete.
throws:
  FailedToRenderFragmentException -



processRenderingJob
protected void processRenderingJob(RenderingJob job, boolean parallelOnly)(Code)



render
public RenderingJob render(ContentFragment fragment, RequestContext requestContext)(Code)
Render the specified Page fragment. The method returns before rendering is complete, rendered content can be accessed through the Content Dispatcher the asynchronous portlet rendering job to synchronize



renderNow
public void renderNow(ContentFragment fragment, RequestContext requestContext)(Code)
Render the specified Page fragment. Result is returned in the PortletResponse.
throws:
  FailedToRenderFragmentException -
throws:
  FailedToRetrievePortletWindow -
throws:
  UnknownPortletDefinitionException -



renderNow
public void renderNow(ContentFragment fragment, HttpServletRequest request, HttpServletResponse response)(Code)
Render the specified Page fragment. Result is returned in the PortletResponse.
throws:
  FailedToRenderFragmentException -
throws:
  FailedToRetrievePortletWindow -
throws:
  UnknownPortletDefinitionException -
throws:
  PortletAccessDeniedException -



retrieveCachedContent
protected boolean retrieveCachedContent(RequestContext requestContext, ContentFragment fragment, PortletWindow portletWindow, int expiration, PortletDefinitionComposite portletDefinition) throws Exception(Code)
Retrieve cached content, if content retrieved successfully return true, if no content found return false
Parameters:
  requestContext -
Parameters:
  fragment -
Parameters:
  portletWindow - true when content found, otherwise false



setTimeoutOnJob
protected void setTimeoutOnJob(long timeoutMetadata, RenderingJob rJob)(Code)



start
public void start()(Code)



stop
public void stop()(Code)



waitForRenderingJobs
public void waitForRenderingJobs(List renderingJobs)(Code)
Wait for all rendering jobs in the collection to finish successfully or otherwise.
Parameters:
  renderingJobs - the Collection of rendering job objects to wait for.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.