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

How to use WorkspaceManager in pre-condition development?

 Use Clint Java API ,

I can use the follow code to get the specified baselines,

WorkspaceManager mgr = (WorkspaceManager) SCMPlatform.getWorkspaceManager(repo);
List<IBaselineHandle> baselines = mgr.findBaselines(baselineSearchCriteria,Integer.MAX_VALUE, monitor); 

But how to use WorkspaceManager in pre-condition development?

Thanks a lot!

0 votes



2 answers

Permanent link
You cannot. Because IWorkspaceManager is a PlainAPI class while in precondition you need to use the SDK classes.

You'd better start here: https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/

Anyway, on server side most of the method of workspace manager is similar to the ones contained in IScmService.

Michele.

1 vote

Comments

See https://rsjazz.wordpress.com/2016/02/04/setting-custom-attributes-for-scm-versionables/ and the other posts in the series on how to get the IScmService.

See https://rsjazz.wordpress.com/2016/02/04/setting-custom-attributes-for-scm-versionables/ and the other posts in the series on how to get the IScmService.

 Thank you for your answers.

I want fetch baseline name list of specified component in sever side programming.

Set up your development system as described in  https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ and look at the interface and the methods it provides using the SDK. You can also search for how the methods you are interested in are used in the tests and other parts of the SDK to understand their usage.


Permanent link
This question does not provide any information that would allow to answer it. I would suggest to think about what you want to ask. See:   How should I ask a question in the Forum if I want to receive useful answers?

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

Question asked: Feb 26 '16, 3:57 a.m.

Question was seen: 2,394 times

Last updated: Feb 26 '16, 6:38 a.m.

Confirmation Cancel Confirm