It's all about the answers!

Ask a question

Show Repository files in the component Option through Java API


Vijay Reddy Gaddam (562841) | asked May 28 '15, 5:18 a.m.
edited May 28 '15, 9:50 a.m. by DJ Houghton (2663)
Is there any JAVA API equivalent to get the list of files that are available in a component.

Accepted answer


permanent link
DJ Houghton (2663) | answered May 28 '15, 9:49 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
You can walk the hierarchy through the configuration object which can be obtained from your connection.

See:
   IFlowNodeConnection#configuration(IComponentHandle)
   IConfiguration#childEntries

Vijay Reddy Gaddam selected this answer as the correct answer

Comments
Vijay Reddy Gaddam commented Jun 01 '15, 5:36 a.m.

Snippet:

IConfiguration compConfig = workspaceConn.configuration(compHandle);
System.out.println("Componet UUid:" + compConfig.component().getItemId());
Map projectFolders = compConfig.childEntriesForRoot(null);
for (Object folder1 : projectFolders.keySet()) {
System.out.println(folder1.toString());
}

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.