01-24-2017 07:57 AM
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.
01-24-2017 08:07 AM
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
01-24-2017 08:07 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.