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

mnrz do-not-reply at jboss.com
Sat Sep 1 11:50:36 EDT 2007


ok, I know about it. Assume that we defined those roles, now, in our session beans how we can use it?

for example, I have an Authenticator Session bean in which a User instance variable is defined as follows:


  | 
  | @Stateless
  | @Name("authenticator")
  | class Authenticator {
  | 
  |     @Out("currentUser", scope=ScopeType.SESSION)
  |     private User user;  
  | 
  |   // rest of the codes....
  | }
  | 
  | 

and in another bean in which I provide a facility to manage other users for administrators as follows:


  | @Name("userManager")
  | @Stateful
  | class UsreManagerAction implements UserManager {
  | 
  |     private User user;
  | 
  |     //rest of the codes....
  | }
  | 

I want to know how do I use those roles in such these beans?

thanks again 
how can I use 

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

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



More information about the jboss-user mailing list