portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raph...@apache.org
Subject cvs commit: jakarta-jetspeed/webapp/WEB-INF/xsl ocs.xsl
Date Thu, 31 May 2001 17:14:11 GMT
raphael     01/05/31 10:14:11

  Modified:    webapp/WEB-INF/conf admin.xreg portlets.xreg registry.xml
               webapp/WEB-INF/xsl ocs.xsl
  Log:
  add a generic PortletCustomizer that can customize any portlet properties
  based on the regsitry parameter descriptions.
  
  - extend the registry parameter syntax to allow meta-info and security
    extensions
  
  - update partially the admin and portet regsitries
  
  - fix a maximization bug that prevented correct maximization of portlets
   in nested portlet sets.
  
  Revision  Changes    Path
  1.4       +6 -2      jakarta-jetspeed/webapp/WEB-INF/conf/admin.xreg
  
  Index: admin.xreg
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/admin.xreg,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- admin.xreg	2001/05/29 23:17:28	1.3
  +++ admin.xreg	2001/05/31 17:14:00	1.4
  @@ -9,8 +9,12 @@
   
     <portlet-entry type="instance" name="PortletCustomizer" hidden="true">
       <security role="user"/>
  -    <classname>org.apache.jetspeed.portal.portlets.customize.PortletCustomizePortlet</classname>
  -    <parameter name="template" value="customize.vm"/>
  +    <classname>org.apache.jetspeed.portal.portlets.VelocityPortlet</classname>
  +    <parameter name="template" value="customizer-portlet"/>
  +    <parameter name="action" value="portlets.CustomizeAction"/>
  +    <meta-info>
  +      <title>Customizing portlet</title>
  +    </meta-info>
     </portlet-entry>
   
     <portlet-entry type="instance" name="HomepageCustomizer" hidden="true">
  
  
  
  1.4       +32 -4     jakarta-jetspeed/webapp/WEB-INF/conf/portlets.xreg
  
  Index: portlets.xreg
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/portlets.xreg,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- portlets.xreg	2001/05/29 23:17:30	1.3
  +++ portlets.xreg	2001/05/31 17:14:01	1.4
  @@ -8,9 +8,33 @@
   
     <portlet-entry type="abstract" name="RSS">
       <classname>org.apache.jetspeed.portal.portlets.NewRSSPortlet</classname>
  -    <parameter name="itemdisplayed" value="10"/>
  -    <parameter name="stylesheet.text/html" value="/WEB-INF/xsl/rss.xsl"/>
  -    <parameter name="stylesheet.text/vnd.wap.wml" value="/WEB-INF/xsl/rss-wml.xsl"/>
  +    <parameter name="stylesheet" value="/WEB-INF/xsl/rss.xsl">
  +      <security role="admin" />
  +    </parameter>
  +    <parameter name="stylesheet.text/html" value="/WEB-INF/xsl/rss.xsl">
  +      <security role="admin" />
  +    </parameter>
  +    <parameter name="stylesheet.text/vnd.wap.wml" value="/WEB-INF/xsl/rss-wml.xsl">
  +      <security role="admin" />    
  +    </parameter>
  +    <parameter name="itemdisplayed" value="15">
  +      <meta-info>
  +        <title>Number of items</title>
  +        <description>This parameter controls how many items may be shown in this

  +          portlet. If the information channel has more items, only the first will
  +          be displayed
  +        </description>
  +      </meta-info>
  +    </parameter>
  +    <parameter name="showdescription" value="true" type="boolean">
  +      <meta-info>
  +        <title>Show description ?</title>
  +        <description>
  +          This parameters specify whether the item descriptions should be 
  +          displayed in this portlet, or only the headlines
  +        </description>
  +      </meta-info>
  +    </parameter>
       <media-type ref="html"/>
       <media-type ref="wml"/>
     </portlet-entry>
  @@ -24,6 +48,10 @@
       <classname>org.apache.jetspeed.portal.portlets.VelocityPortlet</classname>
     </portlet-entry>
   
  +  <portlet-entry type="abstract" name="CustomizerVelocity">
  +    <classname>org.apache.jetspeed.portal.portlets.CustomizerVelocityPortlet</classname>
  +  </portlet-entry>
  +
     <portlet-entry type="abstract" name="HTML">
       <classname>org.apache.jetspeed.portal.portlets.FileServerPortlet</classname>
       <media-type ref="html"/>
  @@ -46,7 +74,7 @@
       <media-type ref="html"/>
     </portlet-entry>
   
  -  <portlet-entry type="ref" parent="Velocity" name="HelloVelocity">
  +  <portlet-entry type="ref" parent="CustomizerVelocity" name="HelloVelocity">
       <parameter name="template" value="hello" />
       <parameter name="action" value="portlets.HelloAction" />
       <meta-info>
  
  
  
  1.5       +14 -0     jakarta-jetspeed/webapp/WEB-INF/conf/registry.xml
  
  Index: registry.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/registry.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- registry.xml	2001/05/27 15:35:41	1.4
  +++ registry.xml	2001/05/31 17:14:02	1.5
  @@ -270,6 +270,20 @@
         <bind-xml name="type" node="attribute"/>
       </field>
   
  +    <field name="hidden" type="boolean">
  +      <bind-xml name="hidden" node="attribute"/>
  +    </field>
  +
  +    <field name="baseSecurity"
  +           type="org.apache.jetspeed.om.newregistry.base.BaseSecurity">
  +      <bind-xml name="security"/>
  +    </field>
  +
  +    <field name="metaInfo"
  +           type="org.apache.jetspeed.om.newregistry.base.BaseMetaInfo">
  +      <bind-xml name="meta-info"/>
  +    </field>
  +
     </class>
   
   </mapping>
  
  
  
  1.4       +6 -8      jakarta-jetspeed/webapp/WEB-INF/xsl/ocs.xsl
  
  Index: ocs.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/xsl/ocs.xsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ocs.xsl	2001/05/02 10:52:38	1.3
  +++ ocs.xsl	2001/05/31 17:14:09	1.4
  @@ -46,20 +46,19 @@
                   ">
               <portlet-entry type="ref" parent="RSS" name="{$url}">
                   <url><xsl:value-of select="$url"/></url>
  -                <parameter name="stylesheet" value="/content/xsl/rss.xsl"/>
  -<!-- uncomment to take metainfo from the ocs description
  -            <metainfo>
  +            <meta-info>
                   <xsl:if test="$tit != ''">
                     <title><xsl:value-of select="$tit"/></title>
                   </xsl:if>
                   <xsl:if test="$desc != ''">
                     <description><xsl:value-of select="$desc"/></description>
                   </xsl:if>
  +<!-- we don't support this yet
                   <xsl:if test="updatePeriod != ''">
                     <updatePeriod><xsl:value-of select="updatePeriod"/></updatePeriod>
                   </xsl:if>
  -            </metainfo>
   -->
  +            </meta-info>
               </portlet-entry>
           </xsl:if>
   
  @@ -69,20 +68,19 @@
   ">
               <portlet-entry type="ref" parent="RSS" name="{$url}">
                   <url><xsl:value-of select="$url"/></url>
  -                <parameter name="stylesheet" value="/content/xsl/rss.xsl"/>
  -<!-- uncomment to take metainfo from the ocs description
  -            <metainfo>
  +            <meta-info>
                   <xsl:if test="$tit != ''">
                     <title><xsl:value-of select="$tit"/></title>
                   </xsl:if>
                   <xsl:if test="$desc != ''">
                     <description><xsl:value-of select="$desc"/></description>
                   </xsl:if>
  +<!-- we don't support this yet
                   <xsl:if test="updatePeriod != ''">
                     <updatePeriod><xsl:value-of select="updatePeriod"/></updatePeriod>
                   </xsl:if>
  -            </metainfo>
   -->
  +            </meta-info>
               </portlet-entry>
           </xsl:if>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message