It's all about the answers!

Ask a question

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


Jingwen Ou (5610) | asked Sep 25 '08, 12:58 a.m.
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

One answer



permanent link
Dmitry Karasik (1.8k11) | answered Sep 25 '08, 3:47 a.m.
JAZZ DEVELOPER
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

Your answer


Register or 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.