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

getting streams from team area

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

0 votes



2 answers

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

0 votes


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

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
× 10,948

Question asked: Jun 07 '10, 7:45 a.m.

Question was seen: 4,995 times

Last updated: Jun 07 '10, 7:45 a.m.

Confirmation Cancel Confirm