[jboss-cvs] jboss-seam/seam-gen/resources/WEB-INF ...

Shane Bryzak sbryzak at redhat.com
Wed Jan 9 22:33:51 EST 2008


  User: sbryzak2
  Date: 08/01/09 22:33:51

  Modified:    seam-gen/resources/WEB-INF   components.xml pages.xml
  Log:
  added identity management to seam-gen
  
  Revision  Changes    Path
  1.28      +5 -3      jboss-seam/seam-gen/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/seam-gen/resources/WEB-INF/components.xml,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -b -r1.27 -r1.28
  --- components.xml	18 Nov 2007 19:23:08 -0000	1.27
  +++ components.xml	10 Jan 2008 03:33:51 -0000	1.28
  @@ -5,6 +5,7 @@
               xmlns:drools="http://jboss.com/products/seam/drools"
               xmlns:bpm="http://jboss.com/products/seam/bpm"
               xmlns:security="http://jboss.com/products/seam/security"
  +            xmlns:identity-management="http://jboss.com/products/seam/security/management"
               xmlns:mail="http://jboss.com/products/seam/mail"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation=
  @@ -13,6 +14,7 @@
                    http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.0.xsd
                    http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.0.xsd
                    http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
  +                 http://jboss.com/products/seam/security/management http://jboss.com/products/seam/identity-management-2.0.xsd
                    http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.0.xsd
                    http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
   
  @@ -26,15 +28,15 @@
                                        auto-create="true"
                         persistence-unit-jndi-name="java:/@projectName at EntityManagerFactory"/>
   
  +   <identity-management:jpa-identity-store name="identityStore" account-class="@modelPackage at .UserAccount"/>                          
  +
      <drools:rule-base name="securityRules">
          <drools:rule-files>
              <value>/security.drl</value>
          </drools:rule-files>
      </drools:rule-base>
   
  -   <security:identity authenticate-method="#{authenticator.authenticate}"
  -                           security-rules="#{securityRules}"
  -                           remember-me="true"/>
  +   <security:identity security-rules="#{securityRules}" remember-me="true"/>
      
      <event type="org.jboss.seam.security.notLoggedIn">
          <action execute="#{redirect.captureCurrentView}"/>
  
  
  
  1.13      +20 -0     jboss-seam/seam-gen/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/seam-gen/resources/WEB-INF/pages.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- pages.xml	1 Oct 2007 12:16:57 -0000	1.12
  +++ pages.xml	10 Jan 2008 03:33:51 -0000	1.13
  @@ -14,6 +14,26 @@
           </navigation>
       </page>
   
  +    <page view-id="/usermanager.xhtml" action="#{userSearch.loadUsers}">
  +        <restrict>#{s:hasRole('admin')}</restrict>    
  +      
  +        <navigation from-action="#{userAction.createUser}">
  +            <redirect view-id="/userdetail.xhtml"/>
  +        </navigation>
  +      
  +        <navigation from-action="#{userAction.editUser(userSearch.selectedUser)}">
  +            <redirect view-id="/userdetail.xhtml"/>
  +        </navigation>      
  +    </page>
  +    
  +    <page view-id="/userdetail.xhtml">
  +        <navigation from-action="#{userAction.save}">
  +            <rule if-outcome="success">
  +                <redirect view-id="/usermanager.xhtml"/>
  +            </rule>
  +        </navigation>
  +    </page>    
  +
       <exception class="org.jboss.seam.framework.EntityNotFoundException">
           <redirect view-id="/error.xhtml">
               <message>Not found</message>
  
  
  



More information about the jboss-cvs-commits mailing list