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

JAVA API: how to retrieve owner name of repository workspace

Hi,

I have an IWorkspaceConnection that represents a repository workspace. How to get its owner name?

I have tried to cast workspaceConnection.getOwner() to IContributor but I get a class cast exception.
I also tried workspaceConnection.getOwner().getAdapter(IContributor.class) but the result is null.

0 votes


Accepted answer

Permanent link
IContributor represents the complete object of a user. The #getOwner() call returns a handle to the object. It either returns a ITeamAreaHandle or IContributorHandle.

You may want to look at Ralph Schoon's blog post about using the plain Java client API.
Oscar Picasso selected this answer as the correct answer

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,948

Question asked: Jan 24 '14, 11:20 a.m.

Question was seen: 3,591 times

Last updated: Jan 24 '14, 12:01 p.m.

Confirmation Cancel Confirm