Package org.exoplatform.services.jcr.impl.tools.tree

Examples of org.exoplatform.services.jcr.impl.tools.tree.TreeGenerator


   {
      super.setUp();
      testGetItemNode = root.addNode("testGetItemNode");
      root.save();
      // geneteting tree maxDepth = 5 and maxWidth = 12
      nGen = new TreeGenerator(testGetItemNode, new WeightNodeGenerator(5, 5));
      nGen.genereteTree();
      validNames = NameTraversingVisitor.getValidNames(testGetItemNode, NameTraversingVisitor.SCOPE_ALL);

      validUuids = NameTraversingVisitor.getValidUuids(testGetItemNode, NameTraversingVisitor.SCOPE_ALL);
   }
View Full Code Here


      Node testNode = root.addNode("testNode");
      File checkSummValue = new File(System.getProperty("java.io.tmpdir"), "repo.ssh1");
      BufferedOutputStream sshStrream = new BufferedOutputStream(new FileOutputStream(checkSummValue));
      RandomValueNodeGenerator nodeGenerator =
         new RandomValueNodeGenerator(session.getValueFactory(), 6, 5, 8, 5, 1024 * 1024);
      TreeGenerator generator = new TreeGenerator(testNode, nodeGenerator);
      generator.genereteTree();
      root.save();
      ValueSsh1Generator ssh1Generator = new ValueSsh1Generator(session.getTransientNodesManager(), sshStrream);
      ((NodeImpl)testNode).getData().accept(ssh1Generator);
      sshStrream.close();
      File exportFile = new File(System.getProperty("java.io.tmpdir"), "testExport.xml");
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.tools.tree.TreeGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.