Package org.exoplatform.services.jcr.dataflow.persistent

Examples of org.exoplatform.services.jcr.dataflow.persistent.PersistedNodeData


      public AtomicInteger getItemDataByIdCalls = new AtomicInteger();

      public ItemData getItemData(String identifier) throws RepositoryException, IllegalStateException
      {
         getItemDataByIdCalls.incrementAndGet();
         return new PersistedNodeData("getItemData", null, null, 0, 1, null, null, null);
      }
View Full Code Here


   @PerfTest(invocations = TOTAL_THREADS, threads = TOTAL_THREADS)
   public void testGetItemDataByNodeDataNQPathEntry() throws Exception
   {
      if (step.compareAndSet(0, 1))
      {
         nodeData = new PersistedNodeData("getItemData", new QPath(new QPathEntry[]{}), null, 0, 1, null, null, null);
      }
      assertEquals(0, con.getItemDataByNodeDataNQPathEntryCalls.get());
      startSignal.await();
      for (int i = 0; i < TIMES; i++)
      {
View Full Code Here

   @PerfTest(invocations = TOTAL_THREADS, threads = TOTAL_THREADS)
   public void testGetChildPropertiesData() throws Exception
   {
      if (step.compareAndSet(0, 1))
      {
         nodeData = new PersistedNodeData("getChildPropertiesData", null, null, 0, 1, null, null, null);
      }
      assertEquals(0, con.getChildPropertiesDataCalls.get());
      startSignal.await();
      for (int i = 0; i < TIMES; i++)
      {
View Full Code Here

   @PerfTest(invocations = TOTAL_THREADS, threads = TOTAL_THREADS)
   public void testListChildPropertiesData() throws Exception
   {
      if (step.compareAndSet(0, 1))
      {
         nodeData = new PersistedNodeData("listChildPropertiesData", null, null, 0, 1, null, null, null);
      }
      assertEquals(0, con.listChildPropertiesDataCalls.get());
      startSignal.await();
      for (int i = 0; i < TIMES; i++)
      {
View Full Code Here

   @PerfTest(invocations = TOTAL_THREADS, threads = TOTAL_THREADS)
   public void testGetChildNodes() throws Exception
   {
      if (step.compareAndSet(0, 1))
      {
         nodeData = new PersistedNodeData("getChildNodes", null, null, 0, 1, null, null, null);
      }
      assertEquals(0, con.getChildNodesDataCalls.get());
      startSignal.await();
      for (int i = 0; i < TIMES; i++)
      {
View Full Code Here

   @PerfTest(invocations = TOTAL_THREADS, threads = TOTAL_THREADS)
   public void testGetChildNodesCount() throws Exception
   {
      if (step.compareAndSet(0, 1))
      {
         nodeData = new PersistedNodeData("getChildNodesCount", null, null, 0, 1, null, null, null);
      }
      assertEquals(0, con.getChildNodesCountCalls.get());
      startSignal.await();
      for (int i = 0; i < TIMES; i++)
      {
View Full Code Here

               // update node

               NodeData prevNode = (NodeData)data;

               NodeData newNode =
                  new PersistedNodeData(prevNode.getIdentifier(), newPath, prevNode.getParentIdentifier(),
                     prevNode.getPersistedVersion(), prevNode.getOrderNumber(), prevNode.getPrimaryTypeName(),
                     prevNode.getMixinTypeNames(), inheritACL ? acl : prevNode.getACL());
               // update this node
               cache.put(makeItemFqn(newNode.getIdentifier()), ITEM_DATA, newNode);
            }
            else
            {
               //update property
View Full Code Here

                  // acl = traverseACL(cpid);
                  acl = null;
               }
            }

            return new PersistedNodeData(getIdentifier(cid), qpath, getIdentifier(parentCid), cversion, cnordernumb,
               ptName, mts, acl);

         }
         catch (IllegalACLException e)
         {
View Full Code Here

            // update node

            NodeData prevNode = (NodeData)data;

            NodeData newNode =
               new PersistedNodeData(prevNode.getIdentifier(), newPath, prevNode.getParentIdentifier(),
                  prevNode.getPersistedVersion(), prevNode.getOrderNumber(), prevNode.getPrimaryTypeName(),
                  prevNode.getMixinTypeNames(), prevNode.getACL());
            // update this node
            cache.putOnly(makeItemFqn(newNode.getIdentifier()), ITEM_DATA, newNode);
         }
         else
         {
            //update property
View Full Code Here

                  // acl = traverseACL(cpid);
                  acl = null;
               }
            }

            return new PersistedNodeData(getIdentifier(cid), qpath, getIdentifier(parentCid), cversion, cnordernumb,
               ptName, mixins.mixinNames(), acl);
         }
         catch (IllegalACLException e)
         {
            throw new RepositoryException("FATAL ERROR Node " + getIdentifier(cid) + " " + qpath.getAsString()
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.dataflow.persistent.PersistedNodeData

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.