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

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

0 votes



One answer

Permanent link
You want 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);

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

Question asked: Sep 13 '13, 12:48 a.m.

Question was seen: 6,148 times

Last updated: Sep 17 '13, 11:57 a.m.

Confirmation Cancel Confirm