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

Shane Bryzak sbryzak at redhat.com
Thu Jan 10 02:38:39 EST 2008


  User: sbryzak2
  Date: 08/01/10 02:38:39

  Modified:    seam-gen/resources  security.drl
  Log:
  identity management permission checks
  
  Revision  Changes    Path
  1.2       +41 -1     jboss-seam/seam-gen/resources/security.drl
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: security.drl
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/seam-gen/resources/security.drl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- security.drl	31 Jan 2007 04:07:26 -0000	1.1
  +++ security.drl	10 Jan 2008 07:38:39 -0000	1.2
  @@ -4,3 +4,43 @@
   
   import org.jboss.seam.security.PermissionCheck;
   import org.jboss.seam.security.Role;
  \ No newline at end of file
  +
  +rule CreateAccount
  +  no-loop
  +  activation-group "permissions"
  +when
  +  check: PermissionCheck(name == "seam.account", action == "create", granted == false)
  +  Role(name == "admin")
  +then
  +  check.grant();
  +end
  +
  +rule ReadAccount
  +  no-loop
  +  activation-group "permissions"
  +when
  +  check: PermissionCheck(name == "seam.account", action == "read", granted == false)
  +  Role(name == "admin")
  +then
  +  check.grant();
  +end
  +
  +rule UpdateAccount
  +  no-loop
  +  activation-group "permissions"
  +when
  +  check: PermissionCheck(name == "seam.account", action == "update", granted == false)
  +  Role(name == "admin")
  +then
  +  check.grant();
  +end
  +
  +rule DeleteAccount
  +  no-loop
  +  activation-group "permissions"
  +when
  +  check: PermissionCheck(name == "seam.account", action == "delete", granted == false)
  +  Role(name == "admin")
  +then
  +  check.grant();
  +end
  \ No newline at end of file
  
  
  



More information about the jboss-cvs-commits mailing list