It's all about the answers!

Ask a question

How efficenly look for component in workspace or snapshot (IBaselineSet)


Boaz Nahum (1336) | asked Dec 03 '15, 4:08 a.m.
. Search for component by name in Workspace

 

Give a component name and IWorkspaceConnection

 We would like to find it in Workspace. Currently we iterate over all workspace components but it is not so efficient.

Also we can’t use com.ibm.team.scm.client.IWorkspaceManager#findComponents



               

 

2. Search for component by handle in workspace

 

Give a component handle, How can I efficiently  check if this component belong to workspace.

 

3. Same as 2, but search in snapshot (IBaselineSet)

 

4. Same as 3, but search in snapshot (IBaselineSet)


Thanks

Boaz

One answer



permanent link
Ralph Schoon (63.1k33645) | answered Dec 03 '15, 4:30 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Boaz,

I can only provide what I have done so far with the SCM API. This is shown in Managing Workspaces, Streams and Components Using the Plain Java Client Libraries and the related posts. You can also find some examples in this blog: http://thescmlounge.blogspot.de/ . Another interesting blog is http://www.joshuabambrick.com/get-component-by-id/

I also search the SDK to search for content and examples - typically looking for specific interfaces or methods on interfaces and how they are used.
 

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.