Examples of TesterItemsPersistenceListener


Examples of org.exoplatform.services.jcr.impl.dataflow.serialization.TesterItemsPersistenceListener

      Node testRename2 = root.addNode("rename2");
      session.save();
      long testRename1Size = wsQuotaManager.getNodeDataSizeDirectly(testRename1.getPath());
      long testRename2Size = wsQuotaManager.getNodeDataSizeDirectly(testRename2.getPath());

      TesterItemsPersistenceListener pListener = new TesterItemsPersistenceListener(session);

      testRoot.addNode("node");
      root.getNode("testRoot/node").setProperty("prop1", "012345");
      root.getNode("testRoot/node").setProperty("prop1", "0123456789");
      session.move("/testRoot/node", "/rename1/node");

      root.getNode("rename1/node").setProperty("prop2", "012345");
      root.getNode("rename1/node").setProperty("prop2", "0123456789");
      session.move("/rename1/node", "/rename2/node");
      session.save();

      List<TransactionChangesLog> logs = pListener.pushChanges();

      long expectedDelta = wsQuotaManager.getNodeDataSizeDirectly(testRoot.getPath()) - testRootSize;
      long measuredDelta = calcChangedSize(logs, testRoot.getPath());

      assertEquals(expectedDelta, measuredDelta);
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.dataflow.serialization.TesterItemsPersistenceListener

   {
      PrivilegedExceptionAction<Object> action = new PrivilegedExceptionAction<Object>()
      {
         public Object run() throws Exception
         {
            repository.addItemPersistenceListener(workspace.getName(), new TesterItemsPersistenceListener(session));
            return null;
         }

      };
      try
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.dataflow.serialization.TesterItemsPersistenceListener

   {
      PrivilegedExceptionAction<Object> action = new PrivilegedExceptionAction<Object>()
      {
         public Object run() throws Exception
         {
            repository.addItemPersistenceListener(workspace.getName(), new TesterItemsPersistenceListener(session));
            return null;
         }

      };
      try
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.