getting streams from team area
![](http://jazz.net/_images/myphoto/b2a97855245bce76031b72dcb176389f.jpg)
2 answers
![](http://jazz.net/_images/myphoto/b2a97855245bce76031b72dcb176389f.jpg)
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?
![](http://jazz.net/_images/myphoto/b2a97855245bce76031b72dcb176389f.jpg)
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());