If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Modelling Role Bases Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-09-08, 08:43
MickySmig MickySmig is offline
Registered User
 
Join Date: Mar 2008
Posts: 9
Modelling Role Based Access

Hi All,

I,m currently redesigning a student information management system and need to include RBAC functionality. The roles that have been identified are registrar, student, customer, seller (salesperson), teacher, and management. Some of these will be internal users (who work for the company), such as teacher, seller, and registrar, and, therefore, will not require the recording of addresses and so on, whereas the external users will.

My initial thought was to create a generic users table that contains username and password, and then use specialisation to store the additional attributes for those users that have additional data stored.

I was wondering if anyone could recommend any books or websites that could give me some insight into creating an RBAC system. My only experience with creating databases is from university and we simply did not cover this type of model.


Any help would be greatly appreciated.

Mick

Last edited by MickySmig; 04-10-08 at 09:26.
Reply With Quote
  #2 (permalink)  
Old 04-10-08, 04:40
MickySmig MickySmig is offline
Registered User
 
Join Date: Mar 2008
Posts: 9
Does anyone know if it is possible to create a union view that would allow for the records to be updated. I have a database design where I'm going to have to put the usernames and passwords into various tables e.g. studnts in the student table, teachers in the teachers table etc., but I would also like to have a view that includes all usernames and passwords. It would be ideal if I could also use this view to allow passwords to be changed, but I do not know if this is possible.

Again, any help would be greatly appreciated.

Mick
Reply With Quote
  #3 (permalink)  
Old 04-11-08, 15:19
architect architect is offline
Registered User
 
Join Date: Oct 2007
Location: Chicago, IL
Posts: 82
Quote:
Originally Posted by MickySmig
Does anyone know if it is possible to create a union view that would allow for the records to be updated. I have a database design where I'm going to have to put the usernames and passwords into various tables e.g. studnts in the student table, teachers in the teachers table etc., but I would also like to have a view that includes all usernames and passwords. It would be ideal if I could also use this view to allow passwords to be changed, but I do not know if this is possible.

Again, any help would be greatly appreciated.

Mick
Why not just use a single centralized user/principal table, and just have a usertype column to differentiate between teacher and student?

-A
Reply With Quote
  #4 (permalink)  
Old 04-12-08, 13:39
pootle flump pootle flump is offline
King of Understatement
 
Join Date: Feb 2004
Location: One Flump in One Place
Posts: 14,905
Or supertype\ subtype.

Depnding on the RDBMS you can update UNIONS. In SQL Server you would use an instead of trigger.
__________________
Testimonial:
Quote:
pootle flump
ur codings are working excelent.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On