[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Changing perspective views based on user authorization

Hi.
Read about the activities concept in eclipse.

As seen on a thread by Nick Edgar:

> Some people have had success using the activities mechanism to do this.
> See https://bugs.eclipse.org/bugs/show_bug.cgi?id=71857



Raj schrieb:
I am trying to implement Authentication and Authorization for an eclipse RCP application using ACEGI. Authentication was straight forward.
I am wondering if anybody dealt with how to deal with Authorization from an RCP application sense.


My example scenario
I have three roles
1) Admin
2) Data entry
3) Manager

I have some views
1) View A
2) View B
3) View C
4) ciew D

Some Menu/Toobar/Coolbar actions

If i want to show certain views/menu actions based on a user role, what can be a good approach.

I thought about having 1 perspective for role, limitation being when i add a role to my system i have to add a perspective to.

Another way would be maintain a mapping of views/actions based on roles and dynamically construct the perspective.

Any info on anyone who tired this before is appreciated

Thanks
Raj