[jboss-cvs] jboss-seam/examples/dvdstore/resources/WEB-INF ...

Shane Bryzak Shane_Bryzak at symantec.com
Wed Feb 14 22:11:16 EST 2007


  User: sbryzak2
  Date: 07/02/14 22:11:16

  Modified:    examples/dvdstore/resources/WEB-INF   components.xml
                        pages.xml
  Log:
  use security api
  
  Revision  Changes    Path
  1.5       +29 -25    jboss-seam/examples/dvdstore/resources/WEB-INF/components.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: components.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/resources/WEB-INF/components.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- components.xml	21 Nov 2006 01:12:55 -0000	1.4
  +++ components.xml	15 Feb 2007 03:11:16 -0000	1.5
  @@ -1,9 +1,11 @@
   <?xml version="1.0" encoding="UTF-8"?>
   <components xmlns="http://jboss.com/products/seam/components"
               xmlns:core="http://jboss.com/products/seam/core"
  +            xmlns:security="http://jboss.com/products/seam/security"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation=
                   "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.1.xsd 
  +                 http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.1.xsd
                    http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.1.xsd">
   
       <core:init debug="true" jndi-pattern="@jndiPattern@"/>
  @@ -23,4 +25,6 @@
   
       <core:ejb installed="@embeddedEjb@"/>
       
  +    <security:identity authenticate-method="#{authenticator.authenticate}"/>
  +    
   </components>
  \ No newline at end of file
  
  
  
  1.9       +18 -16    jboss-seam/examples/dvdstore/resources/WEB-INF/pages.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: pages.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/resources/WEB-INF/pages.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- pages.xml	10 Nov 2006 19:07:55 -0000	1.8
  +++ pages.xml	15 Feb 2007 03:11:16 -0000	1.9
  @@ -11,6 +11,8 @@
               no-conversation-view-id="/admin/admin.xhtml"/>
   
       <!-- this action ensures that only admin users can access anything under /admin" -->
  -    <page view-id="/admin/*" action="#{login.adminCheck}" />
  +    <page view-id="/admin/*">
  +      <restrict>#{s:hasRole('admin')}</restrict>
  +    </page>
       
   </pages>
  
  
  



More information about the jboss-cvs-commits mailing list