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
Accepted answer
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.
Also see other component related API explained here: https://rsjazz.wordpress.com/2013/09/24/managing-workspaces-streams-and-components-using-the-plain-java-client-libraries/
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
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/