hi, i don't know if there is a design pattern for this, but this is the case:
my java application to manage players, coaches, teams and matches.
only one administrator is allowed to add, change of delete players, teams ..
and only users with high permission are allowed to add matches or delete them from the database.
i was thinking about this solution:
add a new table to my DB: tblusers
user_id, user, password, privilege level
but this is a lot of work, to add this control to all classes alle methodes in dataacces layer and business layer, don't u think that?
thx & kr
e
my java application to manage players, coaches, teams and matches.
only one administrator is allowed to add, change of delete players, teams ..
and only users with high permission are allowed to add matches or delete them from the database.
i was thinking about this solution:
add a new table to my DB: tblusers
user_id, user, password, privilege level
Code:
if (user.getPrivilegeLevel == x){ // delete, insert, .. }
thx & kr
e
Comment