How to retrieve user who perform action from advisor plugin
![]()
Hi,
I'm developing an operationAdvisor on server side for delivery operation. I would like to retrieve the user who perform the delivery in order to perform more detailed controls (instead of create two different plugin with different behaviour related to roles). How can I do it? I can't find any method from AdvisableOperation neither from DeliverOperationData classes. Thanks, Michele. |
2 answers
![]()
Jared Burns (4.5k●2●9)
| answered May 27 '10, 5:15 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Thu, 27 May 2010 14:38:02 +0000, mikyjpeg wrote:
Hi, Your advisor should extend AbstractService (see the Javadoc at the top of IOperationAdvisor for details on this). When you are a service, you'll be able to call getAuthenticatedContributor() to determine who is executing the advisor. - Jared ---------------------- Jazz Team Process |
![]()
Thank you very much,
it works correctly. Best Regards, Michele. |