It's all about the answers!

Ask a question

How to update a stream using client API

Andrew Freed (21311214) | asked Sep 26 '12, 1:36 p.m.
 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.getFilterByOwnerOptional().addAll( projectArea .getTeamAreas());
List <IWorkspaceHandle> streamHandles = wm.findWorkspaces(wsCriteria, Integer.MAX_VALUE, new SysoutProgressMonitor());

One answer

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

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.