Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Possibility to find component owner with java plain api

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

0 votes



One answer

Permanent link
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.

0 votes

Comments

Hello Ralph,

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

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 169

Question asked: Feb 16 '16, 9:00 a.m.

Question was seen: 2,897 times

Last updated: Feb 17 '16, 4:11 a.m.

Confirmation Cancel Confirm