It's all about the answers!

Ask a question

Stream visibility to api, question, RESOLVED


sam detweiler (12.5k6195201) | asked Jan 09 '14, 2:47 p.m.
edited Jan 09 '14, 4:59 p.m.
 Now I need to clone streams across servers..

list the streams.. hm.. only see some.. 
get all the stream names, only see some.. (at least its the same list!)

there are three groups
owned by project area, visible to project area - no problem
owned by subteam A, visible to project area - do not see
owned by subteam B, visible to project area - do not see. 

both of these only show the streams owned by the base project area. 

I added the user to the subteams, no change. 
but the same user can see them all thru the eclipse UI.
I haven't found the eclipse code that builds the list yet. 

any guidance welcomed.


for(String wrkspacename: (Collection<String>)prodmgr.findAllWorkspaceNames(owning_project, null))
           {
               System.out.println("processing for workspace(s) name="+wrkspacename);
           }
            // loop thru all the workspaces in this project
            for(IWorkspaceConnection prodworkspace:(List<IWorkspaceConnection>)prodmgr.findAllWorkspaces(owning_project, "", null))
            {






One answer



permanent link
sam detweiler (12.5k6195201) | answered Jan 09 '14, 4:58 p.m.
edited Jan 09 '14, 4:59 p.m.
  Never Mind.. use the right functions..

            IWorkspaceSearchCriteria isc = IWorkspaceSearchCriteria.FACTORY.newInstance();
            isc.setKind(IWorkspaceSearchCriteria.STREAMS);
            for (IWorkspaceHandle iwsh : (List<IWorkspaceHandle>) prodmgr.findWorkspaces(isc, 200, null))
            {
                IWorkspaceConnection prodworkspace = prodmgr.getWorkspaceConnection(iwsh, null);


can someone select this as the answer.

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.