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

how to get a list of authors of a IResource

hi,

I would like to get the authoring history of a IResource. I am using something like:

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();

I guess this is getting the authorhsip corresponding to the local version (the file in the local workspace), since it gets the local IVersionableHandle by using shareable.getRemote() then asking for the author of this version.

I would like to one step forward...How could I get a list of authors of this file, the authors should be ones that make changes before current authors (as described above, including current author)? Looks pretty much like "show in->history".

Thanks in advance,
Owen

0 votes



One answer

Permanent link
use


public List getHistoryFor(IVersionableHandle versionableHandle, int limit,
boolean examineEras, IProgressMonitor monitor) throws TeamRepositoryException;


Jean-Michel
Jazz Source Control Team

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,943

Question asked: Aug 12 '08, 8:58 p.m.

Question was seen: 6,442 times

Last updated: Aug 12 '08, 8:58 p.m.

Confirmation Cancel Confirm