- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
