It's all about the answers!

Ask a question

getting streams from team area


Sonali Sangwan (2144) | asked Jun 07 '10, 7:45 a.m.
Hi,

Can anyone please tell me how can i obtain the available streams in a given team area programmatically?

Like there is a method to create a stream (createStream in IWorkspaceManager), is there another to obtain the all created streams?

Sonali

2 answers



permanent link
Michael Payne (56175) | answered Sep 24 '10, 5:24 p.m.
Hi,

Can anyone please tell me how can i obtain the available streams in a given team area programmatically?

Like there is a method to create a stream (createStream in IWorkspaceManager), is there another to obtain the all created streams?

Sonali


I need to find this out too. Did you figure it out Sonali?

permanent link
Michael Payne (56175) | answered Oct 12 '10, 4:16 p.m.
In case anyone is still trying to figure this out:


		

IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(repository);
IWorkspaceSearchCriteria wsSearchCriteria = IWorkspaceSearchCriteria.FACTORY.newInstance();
wsSearchCriteria.setKind(IWorkspaceSearchCriteria.STREAMS);
wsSearchCriteria.setPartialOwnerNameIgnoreCase([i]nameOfProject[/i]);
List <IWorkspaceHandle> workspaceHandles = wm.findWorkspaces(wsSearchCriteria, Integer.MAX_VALUE, new SysoutProgressMonitor());

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.