I'm using Apache Sling and its Jackrabbit JCR 2.0. With the latest libs.
Now I'm trying to get references to my node as following groovy code shows
node.getWeakReferences("track").toList().size()
returns 1
but
node.getWeakReferences().toList().size()
returns 0
According to the JCR API docs node.getWeakReferences()
should return all weak references:
getWeakReferences() - This method returns all WEAKREFERENCE properties that refer to this node and that are accessible through the current Session.
What could I do to get all references without knowing their reference name?