From do-not-reply at jboss.org Mon Sep 12 23:41:43 2011 Content-Type: multipart/mixed; boundary="===============7140809770181305802==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: gatein-commits at lists.jboss.org Subject: [gatein-commits] gatein SVN: r7366 - in epp/docs/branches/5.2/Reference_Guide: en-US/modules and 1 other directories. Date: Mon, 12 Sep 2011 23:41:43 -0400 Message-ID: <201109130341.p8D3fhM9009358@svn01.web.mwc.hst.phx2.redhat.com> --===============7140809770181305802== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: smumford Date: 2011-09-12 23:41:42 -0400 (Mon, 12 Sep 2011) New Revision: 7366 Added: epp/docs/branches/5.2/Reference_Guide/en-US/modules/PortletDevelopment/G= lobal_Portlet.xml Modified: epp/docs/branches/5.2/Reference_Guide/en-US/modules/PortletDevelopment.x= ml epp/docs/branches/5.2/Reference_Guide/publican.cfg Log: JBEPP-1159: Incorporated changes from GTNPORTAL-1906 Added: epp/docs/branches/5.2/Reference_Guide/en-US/modules/PortletDevelopme= nt/Global_Portlet.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- epp/docs/branches/5.2/Reference_Guide/en-US/modules/PortletDevelopment/= Global_Portlet.xml (rev 0) +++ epp/docs/branches/5.2/Reference_Guide/en-US/modules/PortletDevelopment/= Global_Portlet.xml 2011-09-13 03:41:42 UTC (rev 7366) @@ -0,0 +1,118 @@ + + +%BOOK_ENTITIES; +]> + + Global Portlet Data +
+ The Global Data File + + The Java Portlet Specification introduces PortletFilter= as a standard approach to extend the behaviors of portlet object= s. For example, a filter can transform the content of portlet requests and = portlet responses. + + + According to the Portlet Specification, there are normally three s= teps in setting up a portlet filter: + + + + Implement a PortletFilter object. + + + Define the filter in portlet application deployment de= scriptor. + + + Define the filter mapping in portlet definitions. + + + + While the first two steps are quite straightforward, the third r= equires developers or administrators to replicate the filter mapping in man= y portlet definitions. This can be tedious and opens the potential for inpu= t errors. The global portlet feature is designed to mitigate these concerns. + +
+
+ Global Metadata + + Global portlet metadata is declared in the portlet.xml file and conforms with the Portlet 2.0 XSD. + + + + +]]> + +
+ Location + + The path to the global portlet.xml is the v= alue of gatein.portlet.config in the configura= tion.properties.xml file (this can vary depending on the hosting= application server). + + + For JBoss: The file path is <= filename><JBOSS_HOME>/server/default/conf/= gatein/portlet.xml. + +
+ = +
+ Global Metadata Elements + + The global portlet.xml file conforms, with = some restrictions, to the portlet deployment descriptor schema defined in t= he Portlet Specification. In this file, the following elements are supporte= d: + + + + Portlet Filter + + + Portlet Mode + + + Window State + + + = +
+ Portlet Filter + + Portlet filter mappings declared in the global portl= et.xml file are applied across portlet applications. + + + With the XML configuration below, the filter Applicat= ionMonitoringFilter involves in request handling on any deployed = portlet. + + +org.exoplatform.portal.application.ApplicationMonitoringFilte= r +org.exoplatform.portal.application.ApplicationMonitoringFilt= er + ACTION_PHASE + RENDER_PHASE + EVENT_PHASE + RESOURCE_PHASE + +]]> + + Application Monitoring Filter supports four lifecycle phases in the order below: = + + + + + ACTION_PHASE + + + + + EVENT_PHASE + + + + + RENDER_PHASE + + + + + RESOURCE_PHASE + + + + + It also records statistic information on deployed portlets= . The filter alternates the actual monitoring mechanism in WebUI Framework. + +
+
+
+
Modified: epp/docs/branches/5.2/Reference_Guide/en-US/modules/PortletDevelo= pment.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- epp/docs/branches/5.2/Reference_Guide/en-US/modules/PortletDevelopment.= xml 2011-09-13 00:35:38 UTC (rev 7365) +++ epp/docs/branches/5.2/Reference_Guide/en-US/modules/PortletDevelopment.= xml 2011-09-13 03:41:42 UTC (rev 7366) @@ -4,7 +4,8 @@ %BOOK_ENTITIES; ]> - Portlet development - - + Portlet development + + + Modified: epp/docs/branches/5.2/Reference_Guide/publican.cfg =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- epp/docs/branches/5.2/Reference_Guide/publican.cfg 2011-09-13 00:35:38 = UTC (rev 7365) +++ epp/docs/branches/5.2/Reference_Guide/publican.cfg 2011-09-13 03:41:42 = UTC (rev 7366) @@ -8,4 +8,4 @@ #show_remarks: 1 cvs_branch: DOCS-RHEL-6 cvs_root: :ext:cvs.devel.redhat.com:/cvs/dist -cvs_pkg: JBoss_Enterprise_Portal_Platform-Reference_Guide-5.1-web-__LANG__ \ No newline at end of file +cvs_pkg: JBoss_Enterprise_Portal_Platform-Reference_Guide-5.2-web-__LANG__ \ No newline at end of file --===============7140809770181305802==--