Access control on actions and views [message #436271] |
Mon, 05 September 2005 03:41  |
Eclipse User |
|
|
|
Hello everyone,
In my project I have to implement access control over which actions cdan
be accessed and which views the current user can see based on some
authorization system.
Our actions and views are (naturally) declared in the plugin.xml of
various plugins. We do not want to contribute those through Java code.
My current idea, although I'm not sure if it works, is within the
WorkbenchAdvisor to iterate through all contributions of the
org.eclipse.ui.views and org.eclipse.ui.actionSets (probably also
org.eclipse.ui.commands) and remove all contributions for which the user
does not have a permission.
Does this look feasible to you? And do you have any better idea on how
do achieve this (specailly concerning the views)?
Thanks,
Ognen
--
____________________________________________________________ ____________
Ognen Ivanovski oivanovski@netcetera.com.mk
Netcetera Engineering phone +389 2 30 64 532
1000 Skopje, Macedonia fax +389 2 30 79 495
|
|
|
|
Re: Access control on actions and views [message #436337 is a reply to message #436271] |
Tue, 06 September 2005 09:09  |
Eclipse User |
|
|
|
Ognen Ivanovski wrote:
> Hello everyone,
>
> In my project I have to implement access control over which actions cdan
> be accessed and which views the current user can see based on some
> authorization system.
On top of what Neil mentioned, UI contributions (menu items, views,
perspectives) can be filtered out using activities ... examples show up
in the Windows>Preferences>General>Capabilities.
You might be able to apply some Eclipse JAAS for authorization and
authentication and then enable/disable certain activities.
Later,
PW
|
|
|
Powered by
FUDForum. Page generated in 0.03705 seconds