Jresearch Software Blog

Role Templates, Roles and Users

Feb 17, 2009 by Ekaterina Gorshkova

In this section I will explain the concepts of roles, role templates and also discuss how roles are associated with users.


Suppose we have three type of clients in our bank: student, standard and VIP.  Each manager only works with clients of a certain type. In our security model this means that we have a role template Manager, which is associated with ClientPermission. ClientPermission has one attribute clientType, which represents the type of the client.

 role template

Users are associated with roles, which are created from role templates. To create a role from a role template, we give values to all the attributes of the associated permissions. Let's create three roles from the Manager role template: StudentManager, StandardManager and VIPManager:




These roles can now be associated with users. For example, Jane is VIP manager:


user and role association


Attributes of role templates can be used in constraints. In our model we compare the attribute of the protected object Loan with the attribute of the ClientPermission. If the values of the attributes are equal, then access is granted:





Post a Comment:
Comments are closed for this entry.
 
corner-header-left-top corner-header-right-top

« March 2010
SunMonTueWedThuFriSat
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
   
       
Today


Links


Feeds


Navigation

 
© 2008-2009 Jresearch Software s.r.o.