access to dataset definitions, language definitions, ... through java API based on UUID
Hi,
How can I, based on the UUID, get access to its object when the object is for instance a dataset definition? Here is what I have so far and what seems to work for everything except for the artifacts created in enterprise extensions: IItemHandle handle = IComponent.ITEM_TYPE.createItemHandle(UUID.valueOf(uuid), null); IItem item; |
One answer
Hi Bernd van Oostrum,
You haven't told me the RTC version that you are using, so I assume it's 4.0 or latest. Looking at your current code, it looks like you are doing this from client side using ITeamRepository. Here is an example code to retrieve dataset definition using client side methods. Note: this is not documented method, so it is subject to change.
ISystemDefinitionClient systemDefinitionClient = (ISystemDefinitionClient) repo.getClientLibrary(ISystemDefinitionClient.class); IResourceDefinition dsd = systemDefinitionClient.getResourceDefinition(dsdUuid, monitor);
Hope that helps. Comments
Bernd van Oostrum
commented Aug 01 '13, 11:43 a.m.
Thanks hungvlam.
Hi Bernd,
|
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.