Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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

0 votes


Accepted answer

Permanent link
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

0 votes

Comments

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

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).

 David, 

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


One other answer

Permanent link

 Some component related API is explained here: https://rsjazz.wordpress.com/2013/09/24/managing-workspaces-streams-and-components-using-the-plain-java-client-libraries/

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,922

Question asked: May 02 '17, 2:00 a.m.

Question was seen: 2,245 times

Last updated: Jan 15 '19, 2:21 a.m.

Confirmation Cancel Confirm