It's all about the answers!

Ask a question

How to retrieve user who perform action from advisor plugin


Michele Pegoraro (1.8k14119103) | asked May 27 '10, 10:33 a.m.
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



permanent link
Jared Burns (4.5k29) | 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,
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.

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

permanent link
Michele Pegoraro (1.8k14119103) | answered May 28 '10, 7:53 a.m.
Thank you very much,
it works correctly.

Best Regards,
Michele.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.