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

Get current logged in user in advsor

Could some one point me to code sample(s) that shows how to get current user in an advisor (Server side extension).

0 votes



One answer

Permanent link
if your extension extends AbstractAdvisor then getAuthenticatedContributor() should do it..

in eclipse, inside the advisor, on a blank line, hit ctrl-spacebar for the content assist feature.. it will show you all the known methods available in that context.

1 vote

Comments

Usually a server extension needs to extend AbstractService or AbstractSCMService which provide the getAuthenticatedContributor().

Note, that gives you all the user information available in the Jazz Environment, except the password. The latter is not accessible, as far as I can tell.

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: Jul 28 '14, 1:30 p.m.

Question was seen: 4,185 times

Last updated: Jul 29 '14, 4:51 a.m.

Confirmation Cancel Confirm