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

Show Repository files in the component Option through Java API

Is there any JAVA API equivalent to get the list of files that are available in a component.

0 votes


Accepted answer

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

1 vote

Comments

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 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
× 1,203

Question asked: May 28 '15, 5:18 a.m.

Question was seen: 2,196 times

Last updated: Jun 01 '15, 5:36 a.m.

Confirmation Cancel Confirm