Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



2 answers

Permanent link
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

0 votes


Permanent link
Thank you very much,
it works correctly.

Best Regards,
Michele.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936

Question asked: May 27 '10, 10:33 a.m.

Question was seen: 4,862 times

Last updated: May 27 '10, 10:33 a.m.

Confirmation Cancel Confirm