It's all about the answers!

Ask a question

How to update a stream using client API


Andrew Freed (21311114) | asked Sep 26 '12, 1:36 p.m.
JAZZ DEVELOPER
 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());

One answer



permanent link
Chris McGee (50511017) | answered Oct 12 '12, 3:02 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
The workspace properties are not considered public API at this point and should not be used.

Your answer


Register or to post your answer.