It's all about the answers!

Ask a question

How to get the currently logged in user's IContributorHandle in development of IOperationAdvisor?


DAVID GUO (35413) | asked Oct 12 '15, 3:16 a.m.
 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 commented Oct 12 '15, 8:34 a.m. | edited Oct 12 '15, 8:35 a.m.

It is a method off the AbstractService your class extends

getAuthenticatedContributor()

One answer



permanent link
Ralph Schoon (63.3k33646) | 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


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.