It's all about the answers!

Ask a question

How to get all the componens from a Stream using client libraries??


vinitha dsouza (147223136) | asked May 02 '17, 2:00 a.m.

Hello jazz team

Currently i have a stream and under that components as shown below:

Test Stream
  component1.abc
  comonent2.xyz

could you please  tell me what client API we have to use to get the components names from a stream  using client libraries ???

expected components names are :
component1
abc
comonent2
xyz

Thank You

Accepted answer


permanent link
David Lafreniere (4.8k7) | answered Jan 11 '19, 4:22 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
edited Jan 11 '19, 4:23 p.m.
IWorkspaceManager wm = CMPlatform.getWorkspaceManager(repo);
IWorkspaceConnection wc = wm.getWorkspaceConnection(workspaceHandle, monitor);
List componentHandles = wc.getComponents();

// From here you just fetch the IComponents to get the names.



Ralph Schoon selected this answer as the correct answer

Comments
Ralph Schoon commented Jan 13 '19, 5:07 a.m. | edited Jan 13 '19, 5:19 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

David, I had provided that link already, thanks anyway. The person asking seems to sometimes ignore the answers.


David Lafreniere commented Jan 14 '19, 4:17 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Ralph -
Often if I answer with anticipation of my response being marked as the 'accepted' answer, I might throw in snippets from other people's answers when that info would add to / compliment my answer (it often happens to be your blog links)... I think this helps just in case people find this post, and end up reading only the accepted answer and skip the other responses.

Thanks for accepting mine as the accepted one by the way, I try to clean-up (i.e. provide an answer) for the SCM questions from time to time (which as you know is a never ending activity, but every little bit here and there helps).

Ralph Schoon commented Jan 15 '19, 2:21 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 David, 

I appreciate your valuable participation and help here in the forum!

One other answer



permanent link
Ralph Schoon (63.6k33646) | answered May 02 '17, 3:08 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.