在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
使用:
现在,当我搜索component1
即Article1
组件时,我应该会显示以下结果:
Article1 Component - Article Development Stream 1
Article1 Component - Article Development Stream 2
Article1 Component - Article Development Stream 3
谢谢, 维杰。
答案 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
中报告文章的创建