Multi Level Security via Roles

I'm simulating a small scenario here for Thomas Edwin who left a comment at the end of my blog entry introducing roles yesterday:

Does it support multiple role login i.e. user has several roles? My requirement is that user's manager can assign several roles to a rolegroup.

Here's the user interface I put together in response to the above, explanation below:

Users can be dragged into one or more roles; roles can be dragged into role groups. When a drop is made into a role group, a new role is created (WindowManager.getDefault().setRole("")). All of the above can only be done by an "admin" user, i.e., the three windows above are only available if the current role is "admin". The "admin" user assigns users to roles, roles to role groups, and then window layouts to role groups.

Then, when the user logs in, they log into a particular role. Depending on the role they log into, a different role group is assigned, which maps to a certain "role" in NetBeans Platform terms, i.e., the related level of security is applied and the related windows open.

Comments:

Hi Geertjan,
This is great, we will use this technique in our application.
Thank you,

Posted by SorinS on June 23, 2011 at 11:49 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today