It's all about the answers!

Ask a question

can we get component names and stateid by giving UUID?

Surya Raj (17116) | asked Jul 31 '15, 6:28 a.m.
Hello All,

I'm getting only UUID by using this code:

List<IWorkspaceHandle> findWorkspaces1 = workspaceManager.findWorkspaces(cri1, Integer.MAX_VALUE, monitor);
                IWorkspaceHandle workspaceHandle3 = findWorkspaces1.get(0);
                 IScmService scmService = (IScmService) ((IClientLibraryContext) teamRepository).getServiceInterface(IScmService.class);
                 IComponentHandle[] components = scmService.getComponentsForWorkspace(workspaceHandle3, null);

How to get component name and StateID by giving UUID as input?

Kindly help me out. Thanks in advance.

Accepted answer

permanent link
Ralph Schoon (62.7k33643) | answered Jul 31 '15, 7:03 a.m.
Try search for UUID. You can get an Item Handle from a UUID as described there if you know the Item Type. E.g.
IItemHandle handle = [itemtype].ITEM_TYPE.createItemHandle(UUID.valueOf(uuid_string), null);
Surya Raj selected this answer as the correct answer

Surya Raj commented Jul 31 '15, 7:55 a.m.

Thank you Ralph for your support.

Your answer

Register or to post your answer.