Login plugin [message #503125] |
Thu, 10 December 2009 23:46 |
didi 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 |
Wim Jongman 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!!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03628 seconds