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!
Comments
sam detweiler
Oct 12 '15, 8:35 a.m.It is a method off the AbstractService your class extends
getAuthenticatedContributor()