RTC Java API: How to get the component Owned by Name
![]()
I'm new to RTC API. i have IComponent object, How can i get the OwnedBy name from the IComponent .Thanks in advance.
|
One answer
![]()
Ralph Schoon (62.3k●3●36●43)
| answered Oct 28 '16, 6:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Try com.ibm.team.scm.common.IScmService.getComponentOwnerRecord(ComponentHandle)
How to get the service and for client code see https://rsjazz.wordpress.com/2016/02/03/setting-access-control-permissions-for-scm-versionables/ Comments HI Ralaph,
It is all internal API from com.ibm.team.filesystem.service.internal.FilesystemWorkItemService.protectProjectMove(IRepositoryItemService, IChangeSetHandle...)
forget to add the last Line. I got IAuditableHandle but struggling to get the name of Ownedby for component from IAuditableHandle [ not sure if this is correct way to proceed]. it may be Project, team or any member who owns the Component.
It should be an IContributor and you can search for code to resolve that here: https://rsjazz.wordpress.com/
|