Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Access control on actions and views
Access control on actions and views [message #436271] Mon, 05 September 2005 03:41 Go to next message
Eclipse UserFriend
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 #436272 is a reply to message #436271] Mon, 05 September 2005 04:28 Go to previous messageGo to next message
Eclipse UserFriend
Ognen,

There is an ongoing discussion about security and access-control on the
Equinox newsgroup, I recommend you subscribe to it. Also I have begun a
project on SourceForge which may be of use to you, called Eclipse-JAAS.
It's a framework for authenticating the user and controlling their access
to contributions at the plugin level. Currently it's available only
through anonymous CVS checkout - see the project page at
http://sourceforge.net/projects/eclipse-jaas

Kind regards,
Neil Bartlett


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.

> 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
Re: Access control on actions and views [message #436337 is a reply to message #436271] Tue, 06 September 2005 09:09 Go to previous message
Eclipse UserFriend
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
Previous Topic:Opening a specific editor
Next Topic:Update Editor title (again)
Goto Forum:
  


Current Time: Fri Jul 11 22:22:54 EDT 2025

Powered by FUDForum. Page generated in 0.03705 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top