How to get the currently logged in user's IContributorHandle in development of IOperationAdvisor?
How to get the currently logged in user's IContributorHandle in development of IOperationAdvisor?
@Override
public void run(AdvisableOperation operation,
IProcessConfigurationElement advisorConfiguration,
IAdvisorInfoCollector collector, IProgressMonitor monitor)
throws TeamRepositoryException {
Object operationData = operation.getOperationData();
if (!(operationData instanceof DeliverOperationData)) {
return;
}
// get the currently logged in user's IContributorHandle
??????
}
Thanks a lot!
|
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Oct 12 '15, 4:40 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
See https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/
|
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.
Comments
It is a method off the AbstractService your class extends
getAuthenticatedContributor()