[jboss-cvs] jboss-seam/examples/seamspace/view ...

Shane Bryzak sbryzak at redhat.com
Thu Jan 10 02:11:23 EST 2008


  User: sbryzak2
  Date: 08/01/10 02:11:23

  Modified:    examples/seamspace/view   template.xhtml usermanager.xhtml
  Log:
  added permission checks/security rules for identity management, fixed password hashes
  
  Revision  Changes    Path
  1.13      +1 -1      jboss-seam/examples/seamspace/view/template.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: template.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/template.xhtml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- template.xhtml	3 Jan 2008 07:02:36 -0000	1.12
  +++ template.xhtml	10 Jan 2008 07:11:23 -0000	1.13
  @@ -40,7 +40,7 @@
       <s:link view="/home.xhtml" value="Home" propagation="none"/>|
       <s:link value="Browse" onclick="javascript:alert('This feature coming soon!');return false"/>|
       <s:link value="Blog" onclick="javascript:alert('This feature coming soon!');return false"/>|
  -    <s:link value="Music" onclick="javascript:alert('This feature coming soon!');return false"/><s:fragment rendered="#{s:hasRole('admin')}">|
  +    <s:link value="Music" onclick="javascript:alert('This feature coming soon!');return false"/><s:fragment rendered="#{s:hasPermission('seam.account', 'read', null)}">|
       <s:link view="/usermanager.xhtml" value="User Manager" propagation="none"/></s:fragment>
     </div>
   
  
  
  
  1.5       +7 -3      jboss-seam/examples/seamspace/view/usermanager.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: usermanager.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/usermanager.xhtml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- usermanager.xhtml	9 Jan 2008 10:05:30 -0000	1.4
  +++ usermanager.xhtml	10 Jan 2008 07:11:23 -0000	1.5
  @@ -21,7 +21,7 @@
   
     	    <h2>User Manager</h2>  
     	    
  -        <s:button action="#{userAction.createUser}" styleClass="newuser"/>
  +        <s:button action="#{userAction.createUser}" styleClass="newuser" rendered="#{s:hasPermission('seam.account', 'create', null)}"/>
     	    
           <rich:dataTable 
               id="threads"
  @@ -55,8 +55,12 @@
               <div class="#{identityManager.isEnabled(user) ? 'checkmark' : 'cross'}"/>
             </rich:column>
             <rich:column>
  +            <s:fragment rendered="#{s:hasPermission('seam.account', 'update', null)}">
               <s:link value="Edit" action="#{userAction.editUser(userSearch.selectedUser)}"/><span> | </span>
  -            <s:link value="Delete" action="#{identityManager.deleteAccount(userSearch.selectedUser)}" onclick="return confirmDelete()"/>
  +            </s:fragment>
  +            <s:link value="Delete" action="#{identityManager.deleteAccount(userSearch.selectedUser)}" 
  +                    rendered="#{s:hasPermission('seam.account', 'delete', null)}"
  +                    onclick="return confirmDelete()"/>
             </rich:column>
     	    </rich:dataTable>
   	    </div>
  
  
  



More information about the jboss-cvs-commits mailing list