public NodeIterator getNodes()

in src/main/java/org/apache/sling/jcr/base/internal/mount/ProxySession.java [277:294]


    public NodeIterator getNodes(String path, NodeIterator childs) throws RepositoryException {
        if (isMountDirectParent(path)) {
            List<Node> buffer = new ArrayList<>();
            while (childs.hasNext()) {
                Node child = childs.nextNode();
                if (!isMount(child.getPath())) {
                    buffer.add(child);
                }
            }
            for (String mountPoint : this.mountPoints) {
                if (PathUtils.getParentPath(mountPoint).equals(path)) {
                    buffer.add(this.mount.getNode(mountPoint));
                }
            }
            childs = new NodeIteratorAdapter(buffer);
        }
        return wrap(childs);
    }