portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed/webapp/WEB-INF/psml/test testcase.psml testsecurity.psml
Date Fri, 22 Mar 2002 18:31:15 GMT
taylor      02/03/22 10:31:15

  Modified:    webapp/WEB-INF/conf JetspeedResources.properties
  Added:       webapp/WEB-INF/conf psml-mapping.xml
               webapp/WEB-INF/psml/test testcase.psml testsecurity.psml
  Log:
    Log:
    o Add - PSML unit test files
    o Add - PSML Castor-mapping file
    o Edit - JR.p for default PSML Castor-mapping file
  
  Revision  Changes    Path
  1.68      +2 -1      jakarta-jetspeed/webapp/WEB-INF/conf/JetspeedResources.properties
  
  Index: JetspeedResources.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/JetspeedResources.properties,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- JetspeedResources.properties	15 Mar 2002 19:01:30 -0000	1.67
  +++ JetspeedResources.properties	22 Mar 2002 18:31:14 -0000	1.68
  @@ -1,7 +1,7 @@
   ################################################################################
   # Jetspeed Configuration                             
   # Author: Kevin A. Burton (burton@apache.org)
  -# $Id: JetspeedResources.properties,v 1.67 2002/03/15 19:01:30 paulsp Exp $
  +# $Id: JetspeedResources.properties,v 1.68 2002/03/22 18:31:14 taylor Exp $
   ################################################################################
   # This is the main file you will need to configuration Jetspeed.  If there are 
   # any secondary files they will be pointed to from this file.
  @@ -352,6 +352,7 @@
   
   services.PsmlManager.root=/WEB-INF/psml
   services.PsmlManager.ext=.psml
  +services.PsmlManager.mapping=${webappRoot}/WEB-INF/conf/psml-mapping.xml
   #services.PsmlManager.default-resource=default.psml
   #services.PsmlManager.media-types=html:wml
   #services.PsmlManager.admin=admin
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/conf/psml-mapping.xml
  
  Index: psml-mapping.xml
  ===================================================================
  <?xml version="1.0"?>
  <mapping>
    <class name="org.apache.jetspeed.om.profile.psml.PsmlPortlets">
      <map-to xml="portlets"/>
  
      <field name="id" type="java.lang.String">
        <bind-xml name="id" node="attribute"/>
      </field>
  
      <field name="name" type="java.lang.String">
        <bind-xml name="name" node="attribute"/>
      </field>
  
      <field name="metaInfo"
             type="org.apache.jetspeed.om.profile.psml.PsmlMetaInfo">
        <bind-xml name="metainfo"/>
      </field>
  
      <field name="skin"
             type="org.apache.jetspeed.om.profile.psml.PsmlSkin">
        <bind-xml name="skin"/>
      </field>
  
      <field name="layout"
             type="org.apache.jetspeed.om.profile.psml.PsmlLayout">
        <bind-xml name="layout"/>
      </field>
  
      <field name="control"
             type="org.apache.jetspeed.om.profile.psml.PsmlControl">
        <bind-xml name="control"/>
      </field>
  
      <field name="controller"
             type="org.apache.jetspeed.om.profile.psml.PsmlController">
        <bind-xml name="controller"/>
      </field>
  
      <field name="parameters"
             type="org.apache.jetspeed.om.profile.psml.PsmlParameter" 
  			  collection="vector">
        <bind-xml name="parameter"/>
      </field>
  
      <field name="entries"
             type="org.apache.jetspeed.om.profile.psml.PsmlEntry" 
  			  collection="vector">
        <bind-xml name="entry"/>
      </field>
  
      <field name="portlets"
             type="org.apache.jetspeed.om.profile.psml.PsmlPortlets" 
  			  collection="vector">
        <bind-xml name="portlets"/>
      </field>
                                     
    </class>
  
  
    <class name="org.apache.jetspeed.om.profile.psml.PsmlEntry">
      <map-to xml="entry"/>
  
      <field name="id" type="java.lang.String">
        <bind-xml name="id" node="attribute"/>
      </field>
  
      <field name="name" type="java.lang.String">
        <bind-xml name="name" node="attribute"/>
      </field>
  
      <field name="parent" type="java.lang.String">
        <bind-xml name="parent" node="attribute"/>
      </field>
  
      <field name="metaInfo"
             type="org.apache.jetspeed.om.profile.psml.PsmlMetaInfo">
        <bind-xml name="metainfo"/>
      </field>
  
      <field name="skin"
             type="org.apache.jetspeed.om.profile.psml.PsmlSkin">
        <bind-xml name="skin"/>
      </field>
  
      <field name="layout"
             type="org.apache.jetspeed.om.profile.psml.PsmlLayout">
        <bind-xml name="layout"/>
      </field>
  
      <field name="control"
             type="org.apache.jetspeed.om.profile.psml.PsmlControl">
        <bind-xml name="control"/>
      </field>
  
      <field name="parameters"
             type="org.apache.jetspeed.om.profile.psml.PsmlParameter" 
  			  collection="vector">
        <bind-xml name="parameter"/>
      </field>
                                     
    </class>
  
  
  
    <class name="org.apache.jetspeed.om.profile.psml.PsmlSecurity">
      <map-to xml="security"/>
  
      <field name="roles"
             type="org.apache.jetspeed.om.profile.psml.PsmlRole" 
  			  collection="vector">
        <bind-xml name="role"/>
      </field>
   </class>
  
    <class name="org.apache.jetspeed.om.profile.psml.PsmlParameter">
      <map-to xml="parameter"/>
  
      <field name="name" type="java.lang.String">
        <bind-xml name="name" node="attribute"/>
      </field>
  
      <field name="value" type="java.lang.String">
        <bind-xml name="value" node="attribute"/>
      </field>
   </class>
  
    <class name="org.apache.jetspeed.om.profile.psml.PsmlSkin">
      <map-to xml="skin"/>
  
      <field name="name" type="java.lang.String">
        <bind-xml name="name" node="attribute"/>
      </field>
  
      <field name="state" type="java.lang.String">
        <bind-xml name="state" node="attribute"/>
      </field>
  
      <field name="parameters"
             type="org.apache.jetspeed.om.profile.psml.PsmlParameter" 
  			  collection="vector">
        <bind-xml name="property"/>
      </field>
  
   </class>
  
    <class name="org.apache.jetspeed.om.profile.psml.PsmlLayout">
      <map-to xml="layout"/>
  
      <field name="name" type="java.lang.String">
        <bind-xml name="name" node="attribute"/>
      </field>
  
      <field name="position" type="long">
        <bind-xml name="position" node="attribute"/>
      </field>
  
      <field name="size" type="long">
        <bind-xml name="size" node="attribute"/>
      </field>
  
      <field name="parameters"
             type="org.apache.jetspeed.om.profile.psml.PsmlParameter" 
  			  collection="vector">
        <bind-xml name="property"/>
      </field>
  
   </class>
  
    <class name="org.apache.jetspeed.om.profile.psml.PsmlControl">
      <map-to xml="control"/>
  
      <field name="name" type="java.lang.String">
        <bind-xml name="name" node="attribute"/>
      </field>
  
      <field name="parameters"
             type="org.apache.jetspeed.om.profile.psml.PsmlParameter" 
  			  collection="vector">
        <bind-xml name="property"/>
      </field>
  
   </class>
  
    <class name="org.apache.jetspeed.om.profile.psml.PsmlController">
      <map-to xml="controller"/>
  
      <field name="name" type="java.lang.String">
        <bind-xml name="name" node="attribute"/>
      </field>
  
      <field name="parameters"
             type="org.apache.jetspeed.om.profile.psml.PsmlParameter" 
  			  collection="vector">
        <bind-xml name="property"/>
      </field>
  
   </class>
  
  </mapping>
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/psml/test/testcase.psml
  
  Index: testcase.psml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <portlets id="01" name="theRootSet">
  
      <metainfo>
        <title>Jetspeed</title>
        <description>This is the default page for me</description>
        <image>me.png</image>
      </metainfo> 
  
      <parameter name="city" value="Atlanta" />
      <parameter name="state" value="Georgia" />
      <parameter name="country" value="USA" />
  
      <skin name="skinny" state="DETACHED">
          <property name="a" value="1"/>
          <property name="b" value="2"/>
      </skin>
  
      <layout name="layout1" size="1" position="3">
          <property name="a" value="1"/>
          <property name="b" value="2"/>
      </layout>
  
      <control name="TabControl">
          <property name="a" value="1"/>
          <property name="b" value="2"/>
      </control>
  
      <controller name="TabController">
          <property name="a" value="1"/>
          <property name="b" value="2"/>
      </controller>
  
      <entry id="03" parent="LoggedInWelcome">
          <layout>
              <property name="column" value="9"/>
              <property name="row" value="7"/>
          </layout>
          <metainfo>
              <title>Home</title>
          </metainfo>
          <control name="TabControl"/>
      </entry>
      
      <portlets id="02">
          <controller name="TwoColumns"/>
          <metainfo>
              <title>Home</title>
          </metainfo>
          <entry id="99" parent="HelloWhatever">
              <layout>
                  <property name="column" value="0"/>
                  <property name="row" value="0"/>
              </layout>
          </entry>
          <entry id="100" parent="HelloVelocity">
              <layout>
                  <property name="column" value="1"/>
                  <property name="row" value="0"/>
              </layout>
          </entry>
          <entry parent="HelloCleveland">
              <layout>
                  <property name="column" value="1"/>
                  <property name="row" value="0"/>
              </layout>
          </entry>
  
      </portlets>
  
  </portlets>
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/psml/test/testsecurity.psml
  
  Index: testsecurity.psml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <security>
      <role name="admin"/>
      <role name="user"/>
      <role name="manager"/>
  </security>
  
  

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


Mime
View raw message