Architecture for Role based Applications
-
hi, In my project, i have some roles like Department manager, Project manager, team leader,etc. Each member inroled in the role have some rights to view the progress of the on going project of the company. i want to assign some rights to each group of users like team leader can only view the progress of part of his project & can take action for all the members in his team(assign work among members), on the other hand, project manager can view all the teams working under his project(can take action to all members working under him), same to the department manager can view all the projects of the department(same actions he can perform). help me making some class hierarchy of my application which would help me. at the time of login and got the role of the incoming user,now how i work over the controls e,g, same grid for all users but if project manager view the form it will only show the info of his project and if depart manager get login it will show all projects of the whole department. i am looking for some "multi layer architecture" for the application. looking for reply. Saboor Ahmed Awan saboorahmedawan@gmail.com
-
hi, In my project, i have some roles like Department manager, Project manager, team leader,etc. Each member inroled in the role have some rights to view the progress of the on going project of the company. i want to assign some rights to each group of users like team leader can only view the progress of part of his project & can take action for all the members in his team(assign work among members), on the other hand, project manager can view all the teams working under his project(can take action to all members working under him), same to the department manager can view all the projects of the department(same actions he can perform). help me making some class hierarchy of my application which would help me. at the time of login and got the role of the incoming user,now how i work over the controls e,g, same grid for all users but if project manager view the form it will only show the info of his project and if depart manager get login it will show all projects of the whole department. i am looking for some "multi layer architecture" for the application. looking for reply. Saboor Ahmed Awan saboorahmedawan@gmail.com
Hi... See class and everything you can design as per your requirement. I am giving answer to your last question.... while binding grid or dropdown each time u have to pass RoleId....& based on this role id only you fetch record from database only.... Hope your DB design will be fine so that u can use this roleid with inner join to other table. but you do everything at db level only... so if different different user will login they can see their related data only.