5 Replies Latest reply on Sep 4, 2007 4:48 AM by Mohammad Norouzi

    how to use @Roles?

    Mohammad Norouzi Novice

      Hello

      I've read something in Seam reference about @Roles which you can define many roles for an entity, a User stated as an example as follows:

      @Roles({
       @Role(name="user", scope=ScopeType.CONVERSATION),
       @Role(name="currentUser", scope=ScopeType.SESSION)
       })
      


      it seems to me very useful but I can't comprehend its concepts and the benefits and also I don't know how to use? unfortunately I couldn't find any sample in which this feature is utilized.

      can anyone explain this annotation and tell me how to use it?

      thanks