[jboss-cvs] jboss-seam/examples/hibernate2/resources ...

Shane Bryzak sbryzak at redhat.com
Mon Feb 19 03:37:31 EST 2007


  User: sbryzak2
  Date: 07/02/19 03:37:31

  Modified:    examples/hibernate2/resources   components.xml pages.xml
  Log:
  use security api
  
  Revision  Changes    Path
  1.5       +22 -39    jboss-seam/examples/hibernate2/resources/components.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: components.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate2/resources/components.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- components.xml	27 Jan 2007 19:28:22 -0000	1.4
  +++ components.xml	19 Feb 2007 08:37:31 -0000	1.5
  @@ -1,6 +1,7 @@
   <?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 
  @@ -18,23 +19,5 @@
       <core:managed-hibernate-session name="bookingDatabase"
                                       auto-create="true"/>
       
  +    <security:identity authenticate-method="#{authenticator.authenticate}"/>
   </components>
  -
  -<!--
  -<components>
  -
  -    <component name="org.jboss.seam.core.init">
  -        <property name="debug">true</property>
  -    </component>
  -
  -    <component name="org.jboss.seam.core.manager">
  -        <property name="conversationTimeout">120000</property>
  -    </component>
  -    
  -    <component name="bookingDatabase" 
  -              class="org.jboss.seam.core.ManagedHibernateSession"/>
  -    <component name="hibernateSessionFactory"
  -              class="org.jboss.seam.core.HibernateSessionFactory"/> 
  -    
  -</components>
  --->
  
  
  
  1.4       +92 -100   jboss-seam/examples/hibernate2/resources/pages.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: pages.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate2/resources/pages.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- pages.xml	10 Jan 2007 01:11:31 -0000	1.3
  +++ pages.xml	19 Feb 2007 08:37:31 -0000	1.4
  @@ -2,7 +2,7 @@
             "-//JBoss/Seam Pages Configuration DTD 1.1//EN"
             "http://jboss.com/products/seam/pages-1.1.dtd">
   
  -<pages no-conversation-view-id="/main.xhtml">
  +<pages no-conversation-view-id="/main.xhtml" login-view-id="/home.xhtml">
   
       <page view-id="/register.xhtml">
       
  @@ -20,7 +20,7 @@
       <page view-id="/home.xhtml">
       
           <navigation>
  -            <rule if="#{login.loggedIn}">
  +            <rule if="#{identity.loggedIn}">
                   <redirect view-id="/main.xhtml"/>
               </rule>
           </navigation>
  @@ -37,15 +37,7 @@
           
       </page>
   
  -    <page view-id="/main.xhtml">
  -    
  -        <action execute="#{login.validateLogin}"/>
  -        
  -        <navigation from-action="#{login.validateLogin}">
  -            <rule if="#{not login.loggedIn}">
  -                <redirect view-id="/home.xhtml"/>
  -            </rule>
  -        </navigation>
  +    <page view-id="/main.xhtml" login-required="true">
           
           <navigation from-action="#{hotelBooking.selectHotel(hot)}">
               <redirect view-id="/hotel.xhtml"/>
  @@ -88,7 +80,7 @@
       
       <page view-id="*">
       
  -        <navigation from-action="#{login.logout}">
  +        <navigation from-action="#{identity.logout}">
               <redirect view-id="/home.xhtml"/>
           </navigation>
   
  
  
  



More information about the jboss-cvs-commits mailing list