如何在 RTC 4.0.4 中获取工作项的创建者和所有者信息

how to get creator and Owner info of Work item in RTC 4.0.4

如何使用普通 java 库获取 Rational Team Concert 4.0.4 中工作项的创建者和所有者信息。IWorkItem 的 getOwner() 方法 returns IContributorHandle 类型的对象,没有任何方法可以从中获取名称。 请帮忙。

IContributor应该更合适。
this thread:

Every handle class has a corresponding Item class where the 'full info' is available (handle is just some sort of pointer).

You can use the IItemManager (ITeamRepository#itemManager()) to resolve a handle to an item (e.g. from IContributorHandle to IContributor).

东西like this:

IContributorHandle wkspOwnerhandle = (IContributorHandle)data.getSourceWorkspace().getOwner();   
IItem contributerHandle = itemService.fetchItem(wkspOwnerhandle, null);
IContributor userid = (IContributor) contributerHandle.getFullState();
String userName = userid.getName();