Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Login plugin(create an application with plugins based on role)
Login plugin [message #503125] Thu, 10 December 2009 23:46 Go to next message
didi  is currently offline didi Friend
Messages: 2
Registered: December 2009
Junior Member
Hi, my name is Daniel, I am new in this forum!

I have a problem:
I would like to create an application which has a plugin for authentication and authorization. When the user logs in the application, it loads different plug-ins based on the role of the user.

For example:
an application to reserve rooms.
a plugin to reserve, a plugin to manage the rooms, a plugin to login, ...
only the admin can manage the rooms, a user can reserve a room, a user can only view the reservations made, ...
The data (like the role of the user) should be permanent until logout.

Is it possible? Is there anyone who could give me any advice? I think I have to use extension, but I am not sure how and if I need something else...

Thank you!!
Re: Login plugin [message #503615 is a reply to message #503125] Mon, 14 December 2009 23:57 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 423
Registered: July 2009
Senior Member
Hi Daniel,

mmm, this is really a design descision. Putting all individual actions into
separate plugins and then loading and unloading the plugins as you describe
is NOT the way to go. Putting all code into the application and then relying
on this could work but I would not do it (one thing it make you application
too fine grained and secondly anyone could start your bundles).

Either populate menu items based manually on the role or use the
sourceProvider in the org.eclipse.ui.services extension point to do it in the
extension mechanism. As always there are many roads to Rome. You can also
search for "capabilities" which can be (ab)used for role related stuff.

--

Best Regards,
Wim Jongman
-- ... File not found. Should I fake it? (Y/N)
(Eclipse Old Skool Quote Service)

> Hi, my name is Daniel, I am new in this forum!
>
> I have a problem:
> I would like to create an application which has a plugin for authentication
and authorization. When the user logs in the application, it loads different
plug-ins based on the role of the user.
>
> For example:
> an application to reserve rooms.
> a plugin to reserve, a plugin to manage the rooms, a plugin to login, ...
> only the admin can manage the rooms, a user can reserve a room, a user can
only view the reservations made, ...
> The data (like the role of the user) should be permanent until logout.
>
> Is it possible? Is there anyone who could give me any advice? I think I
have to use extension, but I am not sure how and if I need something else...
>
> Thank you!!
Re: Login plugin [message #503737 is a reply to message #503125] Tue, 15 December 2009 15:08 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

I believe this is how the eclipse-jaas project works (log in and then you get certain plugins available). See http://eclipse-jaas.sourceforge.net/

PW


Previous Topic:Application not launching on second launch
Next Topic:Confusing IPrefrenceStore and PreferenceService
Goto Forum:
  


Current Time: Fri Apr 26 19:40:11 GMT 2024

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

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

Back to the top