[jboss-user] [JBoss Seam] - Re: security-config.xml equivalent in 2.0?

shane.bryzak@jboss.com do-not-reply at jboss.com
Tue Oct 2 20:13:27 EDT 2007


Seam hasn't had a security-config.xml file since version 1.1.1.  If you wish to define a hierarchical relationship between roles, you can write security rules for this.  In fact, the seamspace example does exactly this - here's an example:

rule AdminIsAUser
  |   salience 10
  |   no-loop
  | when
  |   Role(name == "admin")
  |   not Role(name == "user")
  | then
  |   insert(new Role("user"));
  | end



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

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



More information about the jboss-user mailing list