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 (2335) | 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 (55.4k23642) | 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.