how to use getCreator()??
Hi all,
I need ur help, how to get creator by RTC API?
The output is.. CREATOR:com.ibm.team.repository.common.model.impl.ContributorHandleImpl@5cef5cef (stateId: , itemId: , origin: <unset>, immutable: <unset>) any idea? |
8 answers
.getCreator returns an IAuditableHandle. It could be an instance of IContributorHandle, ITeamAreaHandle or IProjectAreaHandle (it depends on what you're looking for).
Once you have it, you can use IRepositoryItemService.fetchItem in order to get the Item from an Handle. When you got the Item (i suppose you want an IContributor) than you can get the property you need (name, email etc...). Best Regards, Michele. |
see com.ibm.team.workitem.common.IAuditableCommon.resolveAuditable(IAuditableHandle, ItemProfile<T>, IProgressMonitor) still confuse.. can you explain to me how to get the stuff?? anyone can help me? |
see com.ibm.team.workitem.common.IAuditableCommon.resolveAuditable(IAuditableHandle, ItemProfile<T>, IProgressMonitor) still confuse.. can you explain to me how to get the stuff?? |
see com.ibm.team.workitem.common.IAuditableCommon.resolveAuditable(IAuditableHandle, ItemProfile<T>, IProgressMonitor)
you have to look thru the classes to find this stuff. |
This is my code:
how to implement your code?? because my code not extends AbstractService. Thanks. |
in one of my server plugins (which extends AbstractService) I use
basically you need to 'load' the object from the repository, using its handle. note that in my case I am loading the COMPLETE object. (thanks for making me took at this, I only need a small portion of the data and could help the system out by reducing the size of the object load, as it will be discarded almost immediately). |
RTC stores links to other objects as 'handles' which is a persistant linkage to the object in question. as it will be loaded into memory in many different locations over its lifetime by many parts of the system. Hi Sam, How to convert the handle to an object? sample code please.. |
RTC stores links to other objects as 'handles' which is a persistant linkage to the object in question. as it will be loaded into memory in many different locations over its lifetime by many parts of the system.
So, People (users) are 'contrubutors', and reference to a user is a ContributorHandle. you must use some function to convert the handle to an object. Sam |
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.