[jboss-user] [JBoss Seam] - generalize a rule in security.drl file

mhissen do-not-reply at jboss.com
Wed Nov 7 08:23:01 EST 2007


I use restrictions to control access to my pages.

In my security.drl file, I have :

rule RestrictAccessClientEdit
  | 	when
  | 		check: PermissionCheck(name == "/ClientEdit.xhtml", action == "render")
  |   		Role(name == "admin")
  | 	then
  | 		check.grant();
  | 
  | rule RestrictAccessOrderEdit
  | 	when
  | 		check: PermissionCheck(name == "/OrderEdit.xhtml", action == "render")
  |   		Role(name == "admin")
  | 	then
  | 		check.grant();
  | end;

I want to generalize this restriction so to apply it to all pages publishing: *Edit.xhtml

I tried like that :

 check: PermissionCheck(name == "/*Edit.xhtml", action == "render")
  | 

Any help would be very welcome,
Thanks.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102530#4102530

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102530



More information about the jboss-user mailing list