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

Getting Baselines from a component.

I have IComponentHandle and IComponent class for a component.

I can get the initial baseline using IComponent getInitialBaseline().

How do I retrieve the rest of the baselines?

If the compenents are in streams I have no problem
I use:

List stream = wm.findWorkspaces(crit, 1, MONITOR);
Iterator it = stream.iterator();
IWorkspaceHandle element = (IWorkspaceHandle) it.next();
IWorkspaceConnection wc = wm.getWorkspaceConnection(element, null);
wc.getBaselinesInHistory()

0 votes



2 answers

Permanent link
Found it

IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(repo);
List baselines = wm.findAllBaselines(component,"",MONITOR);

0 votes


Permanent link
wm.findAllBaselines is deprecated

Using:

IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(repo);

IBaselineSearchCriteria crit1 = IBaselineSearchCriteria.FACTORY.newInstance();

crit1.setComponentRequired(component);
List baselines = wm.findBaseline(crit1,
Integer.MAX_VALUE,MONITOR);

0 votes

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,938

Question asked: Apr 20 '10, 3:39 p.m.

Question was seen: 7,022 times

Last updated: Apr 20 '10, 3:39 p.m.

Confirmation Cancel Confirm