3 Replies Latest reply on Mar 16, 2007 8:59 AM by Gavin King

    adding permissions to user

    Ale Fred Newbie

      how can i assign permissions to an an identity?
      Is there a way other than using drools rules to implement permission checks?
      Should i extend the Identity class? how can i have the Identity.instance() method to return my class? Is there a way to have more the one identity component? I'd like to use both RuleBasedIdentity and my custom Identity.
      With two identities, how can i choose at runtime the one to check permissions with?

      @Name("org.jboss.seam.security.identity")
      @Scope(SESSION)
      @Intercept(NEVER)
      @Startup
      public class MyIdentity extends Identity{
      ....
      }


      Is this the correct way to extend Identiy and have its instace returned at runtime?

      Thanks.