2 Replies Latest reply on Jul 27, 2011 8:06 AM by maxanis

    Seam Security: permission chaching?

    armahdi

      Hello All,


      I tried to find the question that I had but i didnt find any answers so I am asking here.


      we are using Seam Security for our authorization implementation with object based permissions. Is there a way to cache these permission. we are trying to use instance level permissions or object based permissions for each user. and considering the number of instance created, and then the users, I think that the level of traffic would be very high if the seam stores these permissions in a JPA identity store then it would query the db for every action or button that the user presses. Dont you think its will slow sown the application. I had turned on the hibernate show sql property and its hitin the db for every action.


      I would like to know if there is a way to cache these permissions. SEAM is so powerful in some regards, its so easy to code in seam and very undestandable. I just tried like seam for three days and I already have an app up n runnning with seam security with object based permisssions on the UI xhtmls. I would really hope to see the caching become possible. I am sure gavin king must have forseen this and must have done something about it.
      I will really appreciate a reply.


      Thanks
      Syed...

        • 1. Re: Seam Security: permission chaching?
          matkapx

          We have the same situation. With using JpaPermission Store, when @Restrict the method or page with s:hasPermission('brandHome','update',brandHome.instace), each time seam queries the database to see if the granted role or user has that permission. As syed said , it would make lots of trancastion foreach user to check permission store.
          Any solutions for that ?

          • 2. Re: Seam Security: permission chaching?
            maxanis

            Hello,
            I still blocked with the same problem.
            Have you found any solution for that?