It's all about the answers!

Ask a question

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


sam detweiler (12.5k6195201) | asked Mar 01 '14, 2:40 p.m.
retagged Mar 04 '14, 11:17 a.m. by Sonia Dimitrov (27159)
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?

One answer



permanent link
Sonia Dimitrov (27159) | answered Mar 06 '14, 5:32 p.m.
JAZZ DEVELOPER
edited Mar 06 '14, 5:34 p.m.
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

Comments
sam detweiler commented Mar 06 '14, 6:30 p.m.

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


Yung-Hsiang Chan commented Nov 19 '14, 10:04 p.m.

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

Now I have all the components.

Thanks!


1
sam detweiler commented Nov 19 '14, 11:18 p.m.

I never found the getcomponentowner() function

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

Your answer


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