0 Replies Latest reply on Jan 10, 2012 10:03 AM by mpashworth

    RuleBasedPermissionResolver sample security.drl

    mpashworth

      Good day,


      Could the Seam Security development team please indicate if the RuleBasedPermissionResolver is ready to be used in a production application and the version of Drools to use.


      I took the following security.drl from the Seam 2 documentation, is the script still valid?


      package MyApplicationPermissions;
        
        import org.jboss.seam.security.permission.PermissionCheck;
        import org.jboss.seam.security.Role;
        
        rule CanUserDeleteCustomers
        when
          c: PermissionCheck(target == "customer", action == "delete")
          Role(name == "admin")
        then
          c.grant();
        end



      Regards,
      Mark P Ashworth