How to get component names of a particular Stream?
I have 2 questions here.
1.Is it possible to get all components of a Stream? by giving StreamName as input, I need to list all components of a particular Stream.
2.With the Componentname i need to get all filenames of that component.
I tried myself with different ideas but couldn't make it.
kindly post your suggestion on this.
Thanks in advance.
2 answers
Or this https://rsjazz.wordpress.com/2013/09/24/managing-workspaces-streams-and-components-using-the-plain-java-client-libraries/ and check the related posts and links provided.
Comments
Hi Ralph,
Thanks for your post. In the link its retrieving all components, but i need to get only the components of a single stream(i.e by giving Stream name as argument).
Kindly correct me if i'm wrong.
Thank you.
Have you looked into the code in https://jazz.net/forum/questions/202289/on-delivery-of-changeset-how-to-retrieve-component-list-under-a-stream-via-changeset? That explains how to get it for a stream. It uses server API, but I would assume the client API has also a call like
getComponentsForWorkspace()
Ralph, with the above code i got all UUID's of a stream, still I need to get component names also. With the below code, cant find the component names
IComponent[] components = (IComponent[]) this.getRepositoryItemServiceForScm().fetchItems(componentHandles,
IRepositoryItemService.COMPLETE);
Can u help me out in this situation.
Thank you.
Ralph, with the above code i got all UUID's of a stream, still I need to get component names also. With the below code, cant find the component names
IComponent[] components = (IComponent[]) this.getRepositoryItemServiceForScm().fetchItems(componentHandles,
IRepositoryItemService.COMPLETE);
Can u help me out in this situation.
Thank you.