As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
import org.apache.chemistry.opencmis.client.api.* session.rootFolder.getDescendants(-1).each { printTree(it, 0) } def printTree(Tree tree, int depth) { for(i in 0..depth) { print " " } println tree.item.name if(tree.children.size > 0) { tree.children.each { printTree(it, depth + 1) } } }