Skip to content

Instantly share code, notes, and snippets.

@thomashartm
Last active March 12, 2022 15:37
Show Gist options
  • Save thomashartm/b32864ad4971c835d9ed to your computer and use it in GitHub Desktop.
Save thomashartm/b32864ad4971c835d9ed to your computer and use it in GitHub Desktop.
import org.apache.jackrabbit.oak.spi.commit.CommitInfo
import org.apache.jackrabbit.oak.spi.commit.EmptyHook
import org.apache.jackrabbit.oak.spi.state.NodeStore
import org.apache.jackrabbit.oak.commons.PathUtils
def details(def session, String path) {
println "Details about children of ${path}"
NodeStore ns = session.store
def nb = ns.root.builder()
def aBuilder = nb
for(p in PathUtils.elements(path)) {
println "Node ${p}"
}
}
details(session, "/")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment