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

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

. 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

0 votes



One answer

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

1 vote

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
× 10,927
× 51

Question asked: Dec 03 '15, 4:08 a.m.

Question was seen: 3,451 times

Last updated: Dec 03 '15, 4:30 a.m.

Confirmation Cancel Confirm