[jboss-cvs] jboss-seam/examples/seamspace/resources/META-INF ...

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


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

  Modified:    examples/seamspace/resources/META-INF  security-rules.drl
  Log:
  added permission checks/security rules for identity management, fixed password hashes
  
  Revision  Changes    Path
  1.21      +40 -0     jboss-seam/examples/seamspace/resources/META-INF/security-rules.drl
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: security-rules.drl
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/resources/META-INF/security-rules.drl,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -b -r1.20 -r1.21
  --- security-rules.drl	3 Jan 2008 07:02:28 -0000	1.20
  +++ security-rules.drl	10 Jan 2008 07:11:15 -0000	1.21
  @@ -84,3 +84,43 @@
   then
     check.grant();
   end
  +
  +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