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());
|
One answer
The workspace properties are not considered public API at this point and should not be used.
|
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.