Package org.exoplatform.services.jcr.dataflow

Examples of org.exoplatform.services.jcr.dataflow.PlainChangesLogImpl.addAll()


         }
      }
      else
      {
         internalRegister(nodeType, volatileNodeTypes);
         changesLog.addAll(persistNodeTypeData(nodeType, true).getAllStates());

      }
      return changesLog;
   }
View Full Code Here


      }

      // child nodes
      NodeDefinitionComparator nodeDefinitionComparator =
               new NodeDefinitionComparator(volatileNodeTypeDataManager, persister.getDataManager());
      changesLog.addAll(nodeDefinitionComparator.compare(recipientDefinition,
               getAllChildNodeDefinitions(ancestorDefinition, new HashMap<InternalQName, NodeTypeData>()),
               getAllChildNodeDefinitions(recipientDefinition, volatileNodeTypes)).getAllStates());

      // properties defs
      PropertyDefinitionComparator propertyDefinitionComparator =
View Full Code Here

      // properties defs
      PropertyDefinitionComparator propertyDefinitionComparator =
               new PropertyDefinitionComparator(volatileNodeTypeDataManager, persister.getDataManager(),
                        locationFactory);
      changesLog.addAll(propertyDefinitionComparator.compare(recipientDefinition,
               getAllPropertyDefinitions(ancestorDefinition, new HashMap<InternalQName, NodeTypeData>()),
               getAllPropertyDefinitions(recipientDefinition, volatileNodeTypes))

      .getAllStates());
View Full Code Here

            throw new ConstraintViolationException(buffer.toString());
         }
      }

      internalUnregister(ancestorDefinition.getName(), ancestorDefinition);
      changesLog.addAll(removePersistedNodeType(ancestorDefinition));

      internalRegister(recipientDefinition, volatileNodeTypes);
      changesLog.addAll(persistNodeTypeData(recipientDefinition, false).getAllStates());

      return changesLog;
View Full Code Here

      internalUnregister(ancestorDefinition.getName(), ancestorDefinition);
      changesLog.addAll(removePersistedNodeType(ancestorDefinition));

      internalRegister(recipientDefinition, volatileNodeTypes);
      changesLog.addAll(persistNodeTypeData(recipientDefinition, false).getAllStates());

      return changesLog;
   }
}
View Full Code Here

                           false);
         cpPrimaryType.setValue(new TransientValueData(childProps.getPrimaryTypeName()));

         changesLog.add(ItemState.createAddedState(childProps)).add(ItemState.createAddedState(cpPrimaryType));

         changesLog.addAll(initPropertyDefProps(childProps, nodeType.getDeclaredPropertyDefinitions()[i]));
      }

      for (int i = 0; i < nodeType.getDeclaredChildNodeDefinitions().length; i++)
      {
         NodeData childNodes =
View Full Code Here

                           false);
         cnPrimaryType.setValue(new TransientValueData(childNodes.getPrimaryTypeName()));

         changesLog.add(ItemState.createAddedState(childNodes)).add(ItemState.createAddedState(cnPrimaryType));

         changesLog.addAll(initNodeDefProps(childNodes, nodeType.getDeclaredChildNodeDefinitions()[i]));
      }

      return changesLog;
   }
View Full Code Here

      long ntStart = System.currentTimeMillis();
      for (NodeTypeData nt : nodetypes)
      {
         try
         {
            changesLog.addAll(addNodeType(nt).getAllStates());
            if (LOG.isDebugEnabled())
               LOG.debug("Node type " + nt.getName() + " is initialized. ");
         }
         catch (ItemExistsException e)
         {
View Full Code Here

         throw new RepositoryException("Get successor " + version.getPath() + " error " + e, e);
      }

      ItemDataRemoveVisitor removeVisitor = new ItemDataRemoveVisitor(dataManager.getTransactManager(), null);
      version.getData().accept(removeVisitor);
      changes.addAll(removeVisitor.getRemovedStates());

      dataManager.getTransactManager().save(changes);

      version.invalidate();
   }
View Full Code Here

    * @return ItemDataChangesLog
    */
   public PlainChangesLog pushLog(QPath rootPath)
   {
      PlainChangesLog cLog = new PlainChangesLogImpl(sessionId);
      cLog.addAll(getDescendantsChanges(rootPath));
      remove(rootPath);
      return cLog;
   }

   /**
 
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.