如何查找在RTC中使用相同组件的流的数量?

时间:2013-10-25 17:08:09

标签: java stream rtc ibm-rad

在RTC源代码控制中,我有一个名为“Article Component”的组件 我在多个流中使用此组件。

现在,当我搜索组件时,如何找到与组件“Article Component”关联的所有流?

我在RTC中有任何选择可以找到它吗?

例如:

Component 1: Article1 Component
Component 2: Article2 Component

Stream 1: Article Development Stream 1
Stream 2: Article Development Stream 2
Stream 3: Article Development Stream 3
Stream 4: Article Development Stream 4

使用:

  • 流1使用组件-1和组件-2,
  • 流2仅使用组件-1
  • 流3仅使用组件-1,
  • Stream 4仅使用component-2。

现在,当我搜索component1Article1组件时,我应该会显示以下结果:

Article1 Component - Article Development Stream 1
Article1 Component - Article Development Stream 2
Article1 Component - Article Development Stream 3

谢谢, 维杰。

2 个答案:

答案 0 :(得分:0)

正如this thread中提到的,有一种方法可以通过API执行此操作,但不能通过客户端执行此操作。

通过Java API for instance(请参阅this article获取),使用IWorkspaceManager.findWorkspacesContainingComponent
这将搜索包含该组件的所有工作空间/流。像这样:

IWorkspaceSearchCriteria criteria = IWorkspaceSearchCriteria.FACTORY.newInstance();
criteria.setKind(IWorkspaceSearchCriteria.STREAMS);
IWorkspaceManager manager = SCMPlatform.getWorkspaceManager(repository);
List< IWorkspaceHandle > workspaces = manager.findWorkspacesContainingComponent(component, criteria,  Integer.MAX_VALUE);

答案 1 :(得分:0)

比使用rtc api更好的是创建一个birt报告来找到它。为此,您可以参考jazz.net

中报告文章的创建