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
One answer
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.
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.