Package org.exoplatform.services.jcr.dataflow

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


               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

         cLog.addAll(items);
         clear();
      }
      else
      {
         cLog.addAll(getDescendantsChanges(rootPath));
         remove(rootPath);
      }

      return cLog;
   }
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

            true, values);

      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

         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

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.