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

how to find the component owner (and visibility) from a workspace.?

in my project copy utility, I copy and fixup all the streams and workspaces.
I've noticed on a couple workspaces, that the user has explicitly set the visibility to private.. and I messed that up in the utility.

but I don't see that data on the IComponent object.

I see how to set it, just not get it..

anyone have any clues?

1 vote



One answer

Permanent link
Hello Sam,

I don't see any public API in SCM for this.  If you want to risk the use of internals, there is an interface
com.ibm.team.scm.common.internal.ComponentOwner you could explore, it has getOwner() and getReadScope().

Sonia

2 votes

Comments

thanks!.. I have so many other 'internal's.. I understand the risk.

Hi, how do i get this ComponentOwner object through api?

Now I have all the components.

Thanks!

I never found the getcomponentowner() function

but I did find
SCMPlatform.getWorkspaceManager(repo).findOwnersForComponents(comphandle, monitor);
and
SCMPlatform.getWorkspaceManager(repo).findReadScopeForComponents(comphandle, monitor);

1 vote

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,943
× 1,204

Question asked: Mar 01 '14, 2:40 p.m.

Question was seen: 5,674 times

Last updated: Nov 19 '14, 11:18 p.m.

Confirmation Cancel Confirm