Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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!

0 votes

Comments

It is a method off the AbstractService your class extends

getAuthenticatedContributor()



One answer

Permanent link
See https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Oct 12 '15, 3:16 a.m.

Question was seen: 2,680 times

Last updated: Oct 12 '15, 8:35 a.m.

Confirmation Cancel Confirm