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