Use of IScmQueryService.findWorkspaces on RTC server
We're using IScmQueryService.findWorkspaces on the RTC server to obtain an IWorkspace from a given stream name:
public static IWorkspace findStream( String streamName, This work code works fine. However, IScmQueryService is an "internal" class, and its use results in numerous warnings similar to Discouraged access: The type IScmQueryService is not accessible due to restriction on required library C:\RTC-SDK-3.0.1.2\plugins\com.ibm.team.scm.common_3.0.3.v20111123_0653.jar Is it OK for us to use IScmQueryService to find streams on the RTC server? Or is there a "public" interface that we should be using instead. I searched the forums and didn't find an alternative for finding streams on the RTC server. Thanks, Geoff Alexander |
5 answers
As far as I know from reading posts here, none of the serverside classes are officially supported and/or public. The reasoning behind this is that the serverside classes are still subject to change. API is still work in progress, so no guarantees about continuity are made.
|
These are correct in that they are not supported API. That being said, they are fairly frozen due to our need to maintain backwards compatibility to older clients. So some people use them anyway. It really comes down to the level of risk/support you are comfortable with.
|
These are correct in that they are not supported API. That being said, they are fairly frozen due to our need to maintain backwards compatibility to older clients. So some people use them anyway. It really comes down to the level of risk/support you are comfortable with. Ok, but there is another option to find streams instead of IScmQueryService? |
In my experience this is the only way. There are a lot of internal classes that can't be substituted and are necessary in order to implement controls and operations. So I have to use them despite restrictions.
These are correct in that they are not supported API. That being said, they are fairly frozen due to our need to maintain backwards compatibility to older clients. So some people use them anyway. It really comes down to the level of risk/support you are comfortable with. Ok, but there is another option to find streams instead of IScmQueryService? |
Hi All,
When i try this code given by geoff, I face 2 main problems:
|
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.