Using RTC API how to get Stream name from Component and Repository name
Hi,
I am using RTC -Eclipse Client 3.0.1 and PlainJavaAPI 3.0.1.
I have RTC Component name and RTC Repository name for a project.
Now I need to get the Stream name of that project.
Can you provide me details on RTC APIs used to get Stream name from Component and Repository names.
Thanks
Suri
One answer
You want
This searches for all workspace/streams that contain the component. Something like this:
IWorkspaceManager.findWorkspacesContainingComponent
This searches for all workspace/streams that contain the component. Something like this:
IWorkspaceSearchCriteria criteria = IWorkspaceSearchCriteria.FACTORY.newInstance(); criteria.setKind(IWorkspaceSearchCriteria.STREAMS); IWorkspaceManager manager = SCMPlatform.getWorkspaceManager(repository); List< IWorkspaceHandle > workspaces = manager.findWorkspacesContainingComponent(component, criteria, Integer.MAX_VALUE);