Package org.exoplatform.services.jcr.dataflow

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


                           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

               new ItemDataMoveVisitor((NodeData) destParentNode.getData(), destNodePath.getName().getInternalName(),
                        nodeTypeManager, session.getTransientNodesManager(), true);
      srcNode.getData().accept(initializer);

      PlainChangesLog changes = new PlainChangesLogImpl(session.getId());
      changes.addAll(initializer.getAllStates());

      session.getTransientNodesManager().getTransactManager().save(changes);
   }

   /**
 
View Full Code Here

      dataManager.save(new TransactionChangesLog(changesLog));

      nsPersister.initStorage(jcrSystem, addACL, NamespaceRegistryImpl.DEF_NAMESPACES);
      // nodeTypes save
      changesLog = new PlainChangesLogImpl();
      changesLog.addAll(ntPersister.initNodetypesRoot(jcrSystem, addACL).getAllStates());
      changesLog.addAll(ntPersister.initStorage(nodeTypeDataManager.getAllNodeTypes()).getAllStates());
      ntPersister.saveChanges(changesLog);

      return jcrSystem;
   }
View Full Code Here

      nsPersister.initStorage(jcrSystem, addACL, NamespaceRegistryImpl.DEF_NAMESPACES);
      // nodeTypes save
      changesLog = new PlainChangesLogImpl();
      changesLog.addAll(ntPersister.initNodetypesRoot(jcrSystem, addACL).getAllStates());
      changesLog.addAll(ntPersister.initStorage(nodeTypeDataManager.getAllNodeTypes()).getAllStates());
      ntPersister.saveChanges(changesLog);

      return jcrSystem;
   }
View Full Code Here

      }

      PlainChangesLog changesLog = new PlainChangesLogImpl();
      RemoveVisitor rv = new RemoveVisitor();
      rv.visit((NodeData) ((NodeImpl) versionableNode.getVersionHistory()).getData());
      changesLog.addAll(rv.getRemovedStates());
      changesLog.add(ItemState.createAddedState(vh));
      changesLog.add(ItemState.createAddedState(bv));
      changesLog.add(ItemState.createAddedState(pd));
      // remove version properties to avoid referential integrety check
      PlainChangesLog changesLogDeltete = new PlainChangesLogImpl();
View Full Code Here

            ((NodeImpl)root).getInternalIdentifier(), ((NodeImpl)root).getACL());

      list.add(new ItemState(newNode, ItemState.ADDED, false, parent.getQPath()));

      PlainChangesLog log = new PlainChangesLogImpl();
      log.addAll(list);

      TransactionChangesLog tlog = new TransactionChangesLog();
      tlog.addLog(log);

      WorkspaceContainerFacade wsc = repository.getWorkspaceContainer(workspace.getName());
View Full Code Here

   {
      PlainChangesLog cLog = new PlainChangesLogImpl(sessionId);

      if (rootPath.equals(Constants.ROOT_PATH))
      {
         cLog.addAll(items);
         clear();
      }
      else
      {
         cLog.addAll(getDescendantsChanges(rootPath));
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.