Access Stream class via server side RTC3.0 java packages
Is there a way to query the system on existing SCM streams using server side java packages through the RTC3.0 API.
We are trying to put in an Operation advisor that queries ta stream name passed in and checks if such a stream exists and is associated with the named project area.
We are able to get the project area name without any issues via the process.common package, but the Stream class appears to only be accessible via the client java packages; scm.client etc and he validation methods I see require the JazzProvider object which is also only available via client side code (would have expected similar functionality in scm.common but unable to find it).
Any help would be much appreciated.
Thanks,
Kelly
We are trying to put in an Operation advisor that queries ta stream name passed in and checks if such a stream exists and is associated with the named project area.
We are able to get the project area name without any issues via the process.common package, but the Stream class appears to only be accessible via the client java packages; scm.client etc and he validation methods I see require the JazzProvider object which is also only available via client side code (would have expected similar functionality in scm.common but unable to find it).
Any help would be much appreciated.
Thanks,
Kelly
5 answers
Is there a way to query the system on existing SCM streams using server side java packages through the RTC3.0 API.
We are trying to put in an Operation advisor that queries ta stream name passed in and checks if such a stream exists and is associated with the named project area.
We are able to get the project area name without any issues via the process.common package, but the Stream class appears to only be accessible via the client java packages; scm.client etc and he validation methods I see require the JazzProvider object which is also only available via client side code (would have expected similar functionality in scm.common but unable to find it).
Any help would be much appreciated.
Thanks,
Kelly
I have the same question...................
Hi,
you have to perform a query using IScmQueryService which is an internal service.
You can use IWorkspaceSearchCriteria in order to set the stream name and then run the query.
Once you have the IWorkspace you can easily obtain the owner (Team or Project area).
Best Regards,
Michele.
you have to perform a query using IScmQueryService which is an internal service.
You can use IWorkspaceSearchCriteria in order to set the stream name and then run the query.
Once you have the IWorkspace you can easily obtain the owner (Team or Project area).
Best Regards,
Michele.
Is there a way to query the system on existing SCM streams using server side java packages through the RTC3.0 API.
We are trying to put in an Operation advisor that queries ta stream name passed in and checks if such a stream exists and is associated with the named project area.
We are able to get the project area name without any issues via the process.common package, but the Stream class appears to only be accessible via the client java packages; scm.client etc and he validation methods I see require the JazzProvider object which is also only available via client side code (would have expected similar functionality in scm.common but unable to find it).
Any help would be much appreciated.
Thanks,
Kelly
Hi,
you have to perform a query using IScmQueryService which is an internal service.
You can use IWorkspaceSearchCriteria in order to set the stream name and then run the query.
Once you have the IWorkspace you can easily obtain the owner (Team or Project area).
Best Regards,
Michele.
Is there a way to query the system on existing SCM streams using server side java packages through the RTC3.0 API.
We are trying to put in an Operation advisor that queries ta stream name passed in and checks if such a stream exists and is associated with the named project area.
We are able to get the project area name without any issues via the process.common package, but the Stream class appears to only be accessible via the client java packages; scm.client etc and he validation methods I see require the JazzProvider object which is also only available via client side code (would have expected similar functionality in scm.common but unable to find it).
Any help would be much appreciated.
Thanks,
Kelly
the following code if I get a result but as I can filter by project area?
IWorkspaceManager wm = SCMPlatform.getWorkspaceManager(teamRepository);
IWorkspaceSearchCriteria wsSearchCriteria = IWorkspaceSearchCriteria.FACTORY.newInstance();
wsSearchCriteria.setKind(IWorkspaceSearchCriteria.STREAMS);
List <IWorkspaceHandle> workspaceHandles = wm.findWorkspaces(wsSearchCriteria, Integer.MAX_VALUE, null);