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

How to update a stream using client API

 I have an IWorkspaceHandle and IWorkspace for a stream object.  I want to update one of the properties via IWorkspace.getProperties().put(key, value) but I cannot figure out the correct Save operation.  I see a IScmService.setWorkspaceProperty(handle, key, value) but as best I can tell that is a server-side API.

How do I update and save the stream using client API?

My code so far is
ITeamRepository repo = ....
IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(repo);

IWorkspaceSearchCriteria wsCriteria = WorkspaceSearchCriteria.FACTORY.newInstance();
wsCriteria.setKind(IWorkspaceSearchCriteria.STREAMS);
wsCriteria.getFilterByOwnerOptional().addAll(java.util.Collections.singleton(projectArea));
wsCriteria.getFilterByOwnerOptional().addAll( projectArea .getTeamAreas());
List <IWorkspaceHandle> streamHandles = wm.findWorkspaces(wsCriteria, Integer.MAX_VALUE, new SysoutProgressMonitor());

0 votes



One answer

Permanent link
The workspace properties are not considered public API at this point and should not be used.

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,927
× 1,201
× 411
× 233

Question asked: Sep 26 '12, 1:36 p.m.

Question was seen: 6,049 times

Last updated: Oct 12 '12, 3:02 p.m.

Confirmation Cancel Confirm