Lucene query from Java backed webscript question
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2009 08:22 AM
Hi all,
I am building a webscript that takes a nodeRef of a space as parameter and should return a sorted list of the most recent contentitems contained in that space AND als its subspaces.
I have been able to do all this except build the path parameter in the lucene query.
Does anybody know how I can get the QName Path from a NodeRef object? The NodeService class has a getPath(NodeRef) method but this returns another format (containing namespace urls…)
I know that from the Javascript api every nodeRef has a qnamePath property. This is exactly what I need but in Java.
Any help would be greatly appreciated!
Greetings,
Toon
I am building a webscript that takes a nodeRef of a space as parameter and should return a sorted list of the most recent contentitems contained in that space AND als its subspaces.
I have been able to do all this except build the path parameter in the lucene query.
Does anybody know how I can get the QName Path from a NodeRef object? The NodeService class has a getPath(NodeRef) method but this returns another format (containing namespace urls…)
I know that from the Javascript api every nodeRef has a qnamePath property. This is exactly what I need but in Java.
Any help would be greatly appreciated!
Greetings,
Toon
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2009 09:39 AM
Never mind the question, I found the solution:
nodeService.getPath(nodeRef).toPrefixString(namespaceService);
nodeService.getPath(nodeRef).toPrefixString(namespaceService);
