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
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/