Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 07:41 Go to next message
Ognen Ivanovski is currently offline Ognen IvanovskiFriend
Messages: 11
Registered: July 2009
Junior Member
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 08:28 Go to previous messageGo to next message
Neil Bartlett is currently offline Neil BartlettFriend
Messages: 93
Registered: July 2009
Member
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 13:09 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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: Sun Dec 08 18:31:25 GMT 2024

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

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

Back to the top