It's all about the answers!

Ask a question

Possibility to find component owner with java plain api


Tobias Burkhardt (1811115) | asked Feb 16 '16, 9:00 a.m.
Hello together,

at the moment I'm writing a tool which should save all components + the owner of the components from an RTC Server in a file.
Until now I got all component names, but I found no possibility to get the owner of a component. 

So my question is there any possibility in java plain api to convert it?

We're working with Java Plain API 5.0.2 and RTC 5.0.2

Thanks & Regards
Tobias

One answer



permanent link
Ralph Schoon (63.3k33646) | answered Feb 17 '16, 2:38 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I haven't tried this out, really, but you could look into

scmService.getComponentOwnerRecord((ComponentHandle)buildComponent.getItemHandle());

Note, this is all internal API. How to get to the ScmService is explained in https://rsjazz.wordpress.com/2016/02/04/setting-custom-attributes-for-scm-versionables/ . This area is under change in 5.0.2 and 6.0.x.

At some time in the past there might have been a method:
 public IAuditableHandle getOwner();

on IComponent, but that is commented out in the 6.0.1 SDK.

There might be other ways to get to that information, I am not aware of.

Comments
Tobias Burkhardt commented Feb 17 '16, 4:11 a.m.

Hello Ralph,

Thanks for your answer.
I will have a look on it and hope it will working.
Regards
Tobias

Your answer


Register or to post 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.