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

how to get the author/creator of a certain IResource?

Hi,

How to get the author/creator of a certain IResource in Jazz? For example, when clicking an element in the package explorer, it displays its corresponding last author/creator.

0 votes



One answer

Permanent link
How to get the author/creator of a certain IResource in Jazz? For
example, when clicking an element in the package explorer, it displays
its corresponding last author/creator.

Try:


IShareable shareable = (IShareable)resource.getAdapter(IShareable.class);
ISharingDescriptor desc = shareable.getShare().getSharingDescriptor();
ITeamRepository repo = RepositoryUtils.getTeamRepository
(desc.getRepositoryUri(), desc.getRepositoryId());

return SCMPlatform.getWorkspaceManager(repo).versionableManager
().fetchCompleteState(shareable.getRemote(), monitor).getModifiedBy();

- Dmitry

0 votes

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
× 10,938

Question asked: Jul 30 '08, 1:08 a.m.

Question was seen: 6,782 times

Last updated: Jul 30 '08, 1:08 a.m.

Confirmation Cancel Confirm