This is a Groovy script that allows to render hidden Oak content structures within the Sling script console on a running Oak/Sling system. This is useful for inspecting the oak:index structures for examples. Hidden nodes in Oak start with ":".
- Install Sling Script Console bundle
- Install Groovy Bundle
- Go to http://localhost:4502/system/console/scriptconsole
- Ensure "Groovy" is selected as language
- Copy & paste oak-browse-tree.groovy from this gist
- Adapt "path" and "depth" to what part of the repository you want to look at
- Hit "Execute"
Note: (...)
after a node name indicates the depth limit stopped here.
/var
- jcr:primaryType = sling:Folder
- jcr:mixinTypes = [rep:AccessControllable]
- jcr:createdBy = admin
- jcr:created = 2013-07-08T13:25:36.725-04:00
+ discovery
- jcr:primaryType = sling:Folder
- jcr:createdBy = admin
- jcr:created = 2015-01-31T04:02:42.262Z
+ oak
- jcr:primaryType = sling:Folder
- jcr:createdBy = admin
- jcr:created = 2016-12-16T13:28:38.239Z
- sling:resourceType = sling:Folder
+ idMap (...)
+ clusterInstances (...)
+ syncTokens (...)
+ impl
- jcr:primaryType = sling:Folder
- jcr:createdBy = admin
- jcr:created = 2015-01-31T04:02:42.263Z
+ establishedView (...)
+ ongoingVotings (...)
+ previousView (...)
+ clusterInstances (...)