[jboss-user] [JBoss Seam] - Re: how to use @Roles?

atao do-not-reply at jboss.com
Sat Sep 1 10:01:44 EDT 2007


With @Name and @Role you can define only two components, with the same scope or not:


  | @Name("user")       
  | @Scope(SESSION)  
  | @Role(name="user2", scope=SESSION)
  | 

There is no such limitations with @Roles


  | @Name("user")       
  | @Scope(SESSION)  
  | @Roles({
  |         @Role(name="user2", scope=SESSION),
  |         @Role(name="user3", scope=SESSION),
  |         @Role(name="user4", scope=SESSION),
  |         @Role(name="user5", scope=SESSION),
  |     })
  | 	
  | 

The scopes can be differents.

Then all the "Role" names can be used as the "Name" one.



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

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



More information about the jboss-user mailing list