09-13-2012 11:15 AM
09-14-2012 03:10 AM
04-05-2017 12:35 AM
I just tried the XPath NodeLocatorService solution, it leads to race conditions:
Nodes that have been created recently are sometimes not found (about 30% of calls fail, in my tests).
So I switched to using serviceRegistry.getNodeLocatorService().getNode("xpath", null, params); to get the NodeRef of the folders that I know always exist (such as /app:company_home/app:shared), and then use serviceRegistry.getFileFolderService().resolveNamePath for everything below these nodes.
I would use resolveNamePath all the time if I could, but unfortunately it would fail on a Alfresco installed in Japanese, for instance, because "Shared" becomes "共有フォルダ" in a Japanese Alfresco (yes, the path is different).
If anyone has any better idea I would be glad to hear about it 🙂
Cheers!
Nicolas Raoul
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.