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!
2 answers
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.
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
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.
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?