It's all about the answers!

Ask a question

How to use WorkspaceManager in pre-condition development?


DAVID GUO (3539) | asked Feb 26 '16, 3:57 a.m.
 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!

2 answers



permanent link
Michele Pegoraro (1.8k12114101) | answered Feb 26 '16, 4:56 a.m.
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.

Comments
Ralph Schoon commented Feb 26 '16, 5:13 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.


Ralph Schoon commented Feb 26 '16, 5:17 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.


DAVID GUO commented Feb 26 '16, 6:32 a.m. | edited Feb 26 '16, 6:36 a.m.

 Thank you for your answers.

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


Ralph Schoon commented Feb 26 '16, 6:38 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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
Ralph Schoon (59.4k23642) | answered Feb 26 '16, 4:06 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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?

Your answer


Register or to post your answer.