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

Examples of org.exoplatform.services.jcr.impl.tools.tree.generator.RandomValueNodeGenerator


   public void _testExport() throws Exception
   {
      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);
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.tools.tree.generator.RandomValueNodeGenerator

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.