Package org.exoplatform.frameworks.jcr.command.core

Examples of org.exoplatform.frameworks.jcr.command.core.AddNodeCommand


   }

   public void testAddNode() throws Exception
   {

      AddNodeCommand addNode = (AddNodeCommand)cservice.getCatalog().getCommand("addNode");
      System.out.println(" " + addNode);
      ctx.put("currentNode", "/");
      ctx.put(addNode.getPathKey(), "test");
      addNode.execute(ctx);

      System.out.println(">>> " + ctx.get(addNode.getResultKey()));

      SaveCommand save = (SaveCommand)cservice.getCatalog().getCommand("save");
      // ctx.remove(save.getPathKey());
      ctx.put(addNode.getPathKey(), "/");
      save.execute(ctx);

      System.out.println(">>> SAVE >>> ");
   }
View Full Code Here


   }

   public void testAddNode() throws Exception
   {

      AddNodeCommand addNode = (AddNodeCommand)cservice.getCatalog().getCommand("addNode");

      ctx.put("currentNode", "/");
      ctx.put(addNode.getPathKey(), "test");
      addNode.execute(ctx);

      SaveCommand save = (SaveCommand)cservice.getCatalog().getCommand("save");
      // ctx.remove(save.getPathKey());
      ctx.put(addNode.getPathKey(), "/");
      save.execute(ctx);
   }
View Full Code Here

   }

   public void testAddNode() throws Exception
   {

      AddNodeCommand addNode = (AddNodeCommand)cservice.getCatalog().getCommand("addNode");

      ctx.put("currentNode", "/");
      ctx.put(addNode.getPathKey(), "test");
      addNode.execute(ctx);

      SaveCommand save = (SaveCommand)cservice.getCatalog().getCommand("save");
      // ctx.remove(save.getPathKey());
      ctx.put(addNode.getPathKey(), "/");
      save.execute(ctx);
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.frameworks.jcr.command.core.AddNodeCommand

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.