/** * Load the subgraph below this node, and print it to System.out if printing is enabled. * * @param node the root of the subgraph * @throws RepositoryException */ public void printSubgraph( Node node ) throws RepositoryException { printSubgraph(node, Integer.MAX_VALUE); }
/** * Load the subgraph below this node, and print it to System.out if printing is enabled. * * @param node the root of the subgraph * @throws RepositoryException */ public void printSubgraph( Node node ) throws RepositoryException { printSubgraph(node, Integer.MAX_VALUE); }
/** * Load the subgraph below this node, and print it to System.out if printing is enabled. * * @param node the root of the subgraph * @param maxDepth the maximum depth of the subgraph that should be printed * @throws RepositoryException */ public void printSubgraph( Node node, int maxDepth ) throws RepositoryException { printSubgraph(node, " ", node.getDepth(), maxDepth); }
/** * Load the subgraph below this node, and print it to System.out if printing is enabled. * * @param node the root of the subgraph * @param maxDepth the maximum depth of the subgraph that should be printed * @throws RepositoryException */ public void printSubgraph( Node node, int maxDepth ) throws RepositoryException { printSubgraph(node, " ", node.getDepth(), maxDepth); }
/** * Print this node and its properties to System.out if printing is enabled. * * @param node the node to be printed * @throws RepositoryException */ public void printNode( Node node ) throws RepositoryException { printSubgraph(node, " ", node.getDepth(), 1); }
/** * Print this node and its properties to System.out if printing is enabled. * * @param node the node to be printed * @throws RepositoryException */ public void printNode( Node node ) throws RepositoryException { printSubgraph(node, " ", node.getDepth(), 1); }
public void printSubgraph(Session session, String absPath) { try { Node node = session.getNode(absPath); super.printSubgraph(node); out.flush(); } catch (RepositoryException e) { e.printStackTrace(this.out); } } }
protected void printSubgraph( Node node ) throws RepositoryException { if (print) { JcrTools tools = new JcrTools(); tools.printSubgraph(node); } }
protected void printWorkspace( String workspaceName, boolean includeSystem, int maxDepthToPrint ) throws Exception { if (!print) return; Session session = repository.login(workspaceName); try { printMessage("Content of workspace '" + workspaceName + "'"); NodeIterator iter = session.getRootNode().getNodes(); while (iter.hasNext()) { Node node = iter.nextNode(); if (!includeSystem && node.getName().equals("jcr:system")) continue; tools.printSubgraph(node, " ", 1, maxDepthToPrint); } } finally { session.logout(); } }
for (NodeIterator iter = node.getNodes(); iter.hasNext();) { Node child = iter.nextNode(); printSubgraph(child, lead, depthOfSubgraph, maxDepthOfSubgraph);
for (NodeIterator iter = node.getNodes(); iter.hasNext();) { Node child = iter.nextNode(); printSubgraph(child, lead, depthOfSubgraph, maxDepthOfSubgraph);
if (print) tools.printSubgraph(png); if (print) tools.printSubgraph(sampleMp3); if (print) tools.printSubgraph(javaClass); if (print) tools.printSubgraph(textFile);
tools.printSubgraph(artifactA); tools.printSubgraph(artifactB); tools.printSubgraph(artifactC);
tools.printSubgraph(artifactA); tools.printSubgraph(artifactB); tools.printSubgraph(artifactC);
new JcrTools().printSubgraph(sessA.getNode(root));