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?
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
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
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
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