how to get streams by project area using OSLC API/programatically
akshay p (15●1●19)
| asked Aug 27 '19, 2:36 a.m.
edited Sep 12 '19, 1:12 a.m. by Ralph Schoon (63.4k●3●36●46) how to get streams by project area using OSLC API/programatically |
3 answers
Have you tried with the below Plain Client Java API approach:
. get a handle to project area
. get all team areas from project area projectarea.getTeams
. iteration over each team area handle and call IWorkspaceManager.findAllWorkspaceNames
Now to get detailed information on any of the above obtained names
. create a IWorkspaceSearchCriteria instance
. set its kind as IWorkspaceSearchCriteria.STREAMS
. set its exact name as the above searched name
. call IWorkspaceManager.findWorkspaces to get the details
|
This is how I get all streams in a given project area using plain Java API: IProjectArea projectArea = ...; |
If you're interested in using OSLC/API programmatically I propose the Lyo framework (https://www.eclipse.org/lyo/).
Here you'll find everything required to connect to CLM and un-marshall the RDF/XML into Java Objects. The latest stable release is 2.4.0.
It needs to be mentioned that Lyo doesn't support configurations for the time being, but you can create your own Configuration class and unmarshall the CLM configuration into a Configuration object. Find below a sample how this Configuration class can look like.
public static final String CONFIGUTATION_MANAGEMENT_DOMAIN = "http://open-services.net/ns/config#"; public static final String CONFIGUTATION_MANAGEMENT_PREFIX = "oslc_config";
|
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.