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

Is it possible to get the full path name of a IFileItem

I have a IFileItem instance and want to get its full path, but IFileItem.getName() only returns its file name. Another constraint is that I don't have the corresponding files in local workspace (can't use ISharingManager.findShareables(IFileItem.getParent()...) to get its parent's path then add the two). Also IFileItem.getParent().getStateId()==null and can not use IItemManager.fetchCompleteState(..) either. Can't use IItemManger.fetchCompleteItem(..) either since IFolderHandle (IFileItem.getParent()) is not a subclass of IManagedItemHandle.

So...is it possible to get the full path name only by asking the repository for it (Some of them may not exist in the latest stream anymore). It seems pretty obvious to me that I can do that but I couldn't figure it out how.

Thanks in advance,
Owen

0 votes



One answer

Permanent link
So...is it possible to get the full path name only by asking the
repository for it (Some of them may not exist in the latest stream
anymore). It seems pretty obvious to me that I can do that but I
couldn't figure it out how.


Yes.

IWorkspaceConnection.configuration(component).determineAncestorsInHistory
(file)


- Dmitry

1 vote

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

Question asked: Sep 25 '08, 12:58 a.m.

Question was seen: 7,267 times

Last updated: Sep 25 '08, 12:58 a.m.

Confirmation Cancel Confirm