This is basically what I have implemented in my system as well. Our user roles are in the DB and I keep a copy on the client so all of the presenters can inspect it to see what the user can do.
I should mention that double-checking the permissions on the server side for all requests is a very good idea. A clients words are not to be trusted. -Ben On Mar 2, 7:31 am, Lukasz <[email protected]> wrote: > I'm doing it by providing a self-implemented UserManager object on the > client. It contains the currently signed in user and provides methods > for access or role checks e.g. canEditUser(). This UserManager object > is an singleton injected via gin into all relevant presenters (as you > see I'm also using the MVP pattern in my app). When the presenter is > rendering the view, it can check which functionality should be enabled > or disabled. > > HTH, > Lukasz > > On 1 Mrz., 18:47, csaffi <[email protected]> wrote: > > > Hi everybody, > > I'm wondering if you could suggest me any way to implement "user > > roles" in GWT applications. I would like to implement a GWT > > application where users log in and are assigned "roles". Based on > > their role, they would be able to see and use different application > > areas. > > > Thank you very much in advance for your help! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
