Hello,
I have the following XPath as String which was previously converted as:
String xpath= this.nodeService.getPath(nodeRef).toPrefixString(namespaceService);
xpath is = > /app:company_home/st:sites/cm:test-site/cm:documentLibrary/cm:test.pdf
How I can convert the above Xpath to NodeRef?
Thank you in advance.
Solved! Go to Solution.
Afaik there is no method that does this kind of 'conversion' -> My best guess is to use the xpath in a searchService query similar to what was posted here: SearchService.selectNodes(...) example
Afaik there is no method that does this kind of 'conversion' -> My best guess is to use the xpath in a searchService query similar to what was posted here: SearchService.selectNodes(...) example
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.