cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene query from Java backed webscript question

tonc
Champ on-the-rise
Champ on-the-rise
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
1 REPLY 1

tonc
Champ on-the-rise
Champ on-the-rise
Never mind the question, I found the solution:
nodeService.getPath(nodeRef).toPrefixString(namespaceService);