It's all about the answers!

Ask a question

Search for workspace which accepts changes from a specific stream


Martin Dam Pedersen (1352814) | asked Apr 19 '13, 2:14 a.m.
 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 commented Apr 23 '13, 11:40 a.m.
JAZZ DEVELOPER

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 commented May 20 '13, 6:18 p.m.
FORUM ADMINISTRATOR / JAZZ DEVELOPER

@sdimitro Did Martin open a work item? Is there a resolution that can be shared here to answer the question?


Sonia Dimitrov commented May 21 '13, 9:48 a.m.
JAZZ DEVELOPER

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

Be the first one to answer this question!


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.