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.
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
On Thu, 27 May 2010 14:38:02 +0000, mikyjpeg wrote:
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
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