Last active
March 12, 2022 15:37
-
-
Save thomashartm/b32864ad4971c835d9ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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