portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pau...@apache.org
Subject cvs commit: jakarta-jetspeed/webapp/WEB-INF/psml/group/Jetspeed/html security_example.psml
Date Sun, 14 Jul 2002 02:44:19 GMT
paulsp      2002/07/13 19:44:19

  Modified:    docs/site changes.html
               webapp/WEB-INF/conf demo-portlets.xreg security.xreg
               xdocs    changes.xml
  Added:       webapp/WEB-INF/psml/group/Jetspeed/html
                        security_example.psml
  Log:
  Add example of security on portlet and tabs in a place the is accessable by
  all users, logged or not.
  
  Revision  Changes    Path
  1.24      +3 -0      jakarta-jetspeed/docs/site/changes.html
  
  Index: changes.html
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/docs/site/changes.html,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- changes.html	13 Jul 2002 09:14:11 -0000	1.23
  +++ changes.html	14 Jul 2002 02:44:19 -0000	1.24
  @@ -378,6 +378,9 @@
   <li>
     Add - 2002/07/11 - Support for Klondike WAP browser - Thanks to Scott Weaver (PS)
   </li>
  +<li>
  +  Add - 2002/07/13 - Added Security example page, http://localhost:8080/jetspeed/portal/group/Jetspeed/page/security_example
(PS)
  +</li>
   </ul>
                               </blockquote>
           </p>
  
  
  
  1.17      +13 -0     jakarta-jetspeed/webapp/WEB-INF/conf/demo-portlets.xreg
  
  Index: demo-portlets.xreg
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/demo-portlets.xreg,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- demo-portlets.xreg	9 Jul 2002 16:35:05 -0000	1.16
  +++ demo-portlets.xreg	14 Jul 2002 02:44:19 -0000	1.17
  @@ -102,6 +102,7 @@
       </portlet-entry>
       <portlet-entry name="LoggedInWelcome" hidden="false" type="ref"
           parent="HTML" application="false">
  +        <security-ref parent="user-view_admin-all"/>
           <meta-info>
               <title>Welcome to Logged in user</title>
               <description>Example of a portlet with not Titlebar</description>
  @@ -229,5 +230,17 @@
           <meta-info>
               <title>Instance Attribute Example</title>
           </meta-info>
  +    </portlet-entry>
  +    <portlet-entry name="SecurityExample" hidden="false" type="ref"
  +        parent="Velocity" application="false">
  +        <security-ref parent="user-view_admin-all"/>
  +        <meta-info>
  +            <title>SecurityExample</title>
  +            <description>Simple Security Example</description>
  +        </meta-info>
  +        <parameter name="template" value="SecurityExample" hidden="false"/>
  +        <media-type ref="html"/>
  +        <category>demo</category>
  +        <category>velocity.demo</category>
       </portlet-entry>
   </registry>
  
  
  
  1.3       +12 -0     jakarta-jetspeed/webapp/WEB-INF/conf/security.xreg
  
  Index: security.xreg
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/webapp/WEB-INF/conf/security.xreg,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- security.xreg	28 Jun 2002 05:37:37 -0000	1.2
  +++ security.xreg	14 Jul 2002 02:44:19 -0000	1.3
  @@ -30,4 +30,16 @@
               <allow-if role="guest"/>
           </access>
       </security-entry>
  +    <security-entry name="user-view_admin-all">
  +        <meta-info>
  +            <title>Users+V and Admin+C</title>
  +            <description>Users can view and Admin have full access.</description>
  +        </meta-info>
  +        <access action="*">
  +            <allow-if role="admin"/>
  +        </access>
  +        <access action="view">
  +            <allow-if role="user"/>
  +        </access>
  +    </security-entry>
   </registry>
  
  
  
  1.44      +4 -1      jakarta-jetspeed/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/xdocs/changes.xml,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- changes.xml	13 Jul 2002 09:14:11 -0000	1.43
  +++ changes.xml	14 Jul 2002 02:44:19 -0000	1.44
  @@ -274,6 +274,9 @@
   <li>
     Add - 2002/07/11 - Support for Klondike WAP browser - Thanks to Scott Weaver (PS)
   </li>
  +<li>
  +  Add - 2002/07/13 - Added Security example page, http://localhost:8080/jetspeed/portal/group/Jetspeed/page/security_example
(PS)
  +</li>
   </ul>
   </section>
   </body>
  
  
  
  1.1                  jakarta-jetspeed/webapp/WEB-INF/psml/group/Jetspeed/html/security_example.psml
  
  Index: security_example.psml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <portlets>
      <security-ref parent="admin-only"/>
      <skin name="orange-red"/>
      <metainfo>
          <title>Security Example</title>
      </metainfo>
      <control name="TabControl"/>
      <controller name="TabController"/>
      <portlets >
          <security-ref parent="user-only"/>
          <metainfo>
              <title>User group can Customize</title>
          </metainfo>
          <controller name="TwoColumns"/>
          <entry parent="LoggedInWelcome"/>
          <entry parent="SecurityExample"/>
          <entry parent="Search"/>
      </portlets>
      <portlets>
          <security-ref parent="admin-only"/>
          <metainfo>
              <title>Admin group can Customize</title>
          </metainfo>
          <controller name="TwoColumns"/>
          <entry parent="LoggedInWelcome"/>
          <entry parent="SecurityExample"/>
          <entry parent="Search"/>
      </portlets>
  </portlets>
  
  
  

--
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