Search for workspace which accepts changes from a specific stream
Hi,
In a client application I'am trying find all workspaces which accepts from a specific stream.
I have tried this code but it just finds all workspaces in the repository, and not only the ones which accepts from aStream.
Is there a problem with the search criteria setFlowFilter, or am I just using it the wrong way ?
Any help would be appreciated :-)
IWorkspaceSearchCriteria wsSearchCriteria = IWorkspaceSearchCriteria.FACTORY.newInstance();
wsSearchCriteria.setKind(IWorkspaceSearchCriteria.WORKSPACES);
IWorkspaceHandle aStream = getStream();
wsSearchCriteria.setFlowFilter(aStream , FlowFlags.ACCEPT);
IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(repository);
List<IWorkspaceHandle> workspaceHandles = wm.findWorkspaces(
wsSearchCriteria, Integer.MAX_VALUE, null);
Comments
Sonia Dimitrov
JAZZ DEVELOPER Apr 23 '13, 11:40 a.m.Hello Martin,
could you open a work item so we can investigate further? It is possible this type of filtering is not working as expected.
Millard Ellingsworth
FORUM ADMINISTRATOR / JAZZ DEVELOPER May 20 '13, 6:18 p.m.@sdimitro Did Martin open a work item? Is there a resolution that can be shared here to answer the question?
Sonia Dimitrov
JAZZ DEVELOPER May 21 '13, 9:48 a.m.Hi Millard,
I am not aware of a new workitem opened by Martin related to this, no resolution to share. Martin, if you have opened a workitem, please provide a link back to it here.
Sonia