Package org.exoplatform.services.jcr.impl.xml.importing

Examples of org.exoplatform.services.jcr.impl.xml.importing.StreamImporter


      if (!node.checkLocking())
      {
         throw new LockException("Node " + node.getPath() + " is locked ");
      }

      StreamImporter importer =
         new ExportImportFactory().getStreamImporter(((NodeData)node.getData()), uuidBehavior, session
            .getTransientNodesManager().getTransactManager(), session.getTransientNodesManager().getTransactManager(),
            nodeTypeManager, session.getLocationFactory(), session.getValueFactory(), getNamespaceRegistry(), session
               .getAccessManager(), session.getUserState(), context, (RepositoryImpl)session.getRepository(), name);
      importer.importStream(in);

   }
View Full Code Here


         NodeData rootData = ((NodeData)((NodeImpl)sysSession.getRootNode()).getData());
         TransactionableDataManager dataManager = sysSession.getTransientNodesManager().getTransactManager();
         ExportImportFactory eiFactory = new ExportImportFactory();

         StreamImporter importer =
            eiFactory.getWorkspaceImporter(rootData, ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW, dataManager,
               dataManager, sysSession.getWorkspace().getNodeTypesHolder(), sysSession.getLocationFactory(), sysSession
                  .getValueFactory(), getNamespaceRegistry(), sysSession.getAccessManager(), sysSession.getUserState(),
               context, this, wsName);
         importer.importStream(xmlStream);
      }
      finally
      {
         sysSession.logout();
      }
View Full Code Here

            ValueFactoryImpl valueFactory, NamespaceRegistry namespaceRegistry, AccessManager accessManager,
            ConversationState userState, Map<String, Object> context, RepositoryImpl repository,
            String currentWorkspaceName)
   {

      return new StreamImporter(parent, uuidBehavior, dataKeeper, dataConsumer, ntManager, locationFactory,
               valueFactory, namespaceRegistry, accessManager, userState, context, repository, currentWorkspaceName);
   }
View Full Code Here

         NodeData rootData = ((NodeData) ((NodeImpl) sysSession.getRootNode()).getData());
         TransactionableDataManager dataManager = sysSession.getTransientNodesManager().getTransactManager();
         ExportImportFactory eiFactory = new ExportImportFactory();

         StreamImporter importer =
                  eiFactory.getWorkspaceImporter(rootData, ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW, dataManager,
                           dataManager, sysSession.getWorkspace().getNodeTypesHolder(),
                           sysSession.getLocationFactory(), sysSession.getValueFactory(), getNamespaceRegistry(),
                           sysSession.getAccessManager(), sysSession.getUserState(), context, this, wsName);
         importer.importStream(xmlStream);
      }
      finally
      {
         sysSession.logout();
      }
View Full Code Here

      if (!node.checkLocking())
      {
         throw new LockException("Node " + node.getPath() + " is locked ");
      }

      StreamImporter importer =
               new ExportImportFactory().getStreamImporter(((NodeData) node.getData()), uuidBehavior, session
                        .getTransientNodesManager().getTransactManager(), session.getTransientNodesManager()
                        .getTransactManager(), nodeTypeManager, session.getLocationFactory(),
                        session.getValueFactory(), getNamespaceRegistry(), session.getAccessManager(), session
                                 .getUserState(), context, (RepositoryImpl) session.getRepository(), name);
      importer.importStream(in);

   }
View Full Code Here

      if (!node.checkLocking())
      {
         throw new LockException("Node " + node.getPath() + " is locked ");
      }

      StreamImporter importer =
               new ExportImportFactory().getStreamImporter(((NodeData) node.getData()), uuidBehavior,
                        new ItemDataKeeperAdapter(getTransientNodesManager()), getTransientNodesManager(),
                        nodeTypeManager, getLocationFactory(), getValueFactory(),
                        getWorkspace().getNamespaceRegistry(), getAccessManager(), userState, context,
                        (RepositoryImpl) getRepository(), getWorkspace().getName());
      importer.importStream(in);
   }
View Full Code Here

      if (!node.checkLocking())
      {
         throw new LockException("Node " + node.getPath() + " is locked ");
      }

      StreamImporter importer =
         new ExportImportFactory().getStreamImporter(((NodeData)node.getData()), uuidBehavior,
            new ItemDataKeeperAdapter(getTransientNodesManager()), getTransientNodesManager(), nodeTypeManager,
            getLocationFactory(), getValueFactory(), getWorkspace().getNamespaceRegistry(), getAccessManager(),
            userState, context, (RepositoryImpl)getRepository(), getWorkspace().getName());
      importer.importStream(in);
   }
View Full Code Here

         NodeData rootData = ((NodeData)((NodeImpl)sysSession.getRootNode()).getData());
         TransactionableDataManager dataManager = sysSession.getTransientNodesManager().getTransactManager();
         ExportImportFactory eiFactory = new ExportImportFactory();

         StreamImporter importer =
            eiFactory.getWorkspaceImporter(rootData, ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW, dataManager,
               dataManager, sysSession.getWorkspace().getNodeTypesHolder(), sysSession.getLocationFactory(), sysSession
                  .getValueFactory(), getNamespaceRegistry(), sysSession.getAccessManager(), sysSession.getUserState(),
               context, this, wsName);
         importer.importStream(xmlStream);
      }
      finally
      {
         sysSession.logout();
      }
View Full Code Here

      if (!node.checkLocking())
      {
         throw new LockException("Node " + node.getPath() + " is locked ");
      }

      StreamImporter importer =
         new ExportImportFactory().getStreamImporter(((NodeData)node.getData()), uuidBehavior, session
            .getTransientNodesManager().getTransactManager(), session.getTransientNodesManager().getTransactManager(),
            nodeTypeManager, session.getLocationFactory(), session.getValueFactory(), getNamespaceRegistry(), session
               .getAccessManager(), session.getUserState(), context, (RepositoryImpl)session.getRepository(), name);
      importer.importStream(in);

   }
View Full Code Here

      if (!node.checkLocking())
      {
         throw new LockException("Node " + node.getPath() + " is locked ");
      }

      StreamImporter importer =
         new ExportImportFactory().getStreamImporter(((NodeData)node.getData()), uuidBehavior,
            new ItemDataKeeperAdapter(getTransientNodesManager()), getTransientNodesManager(), nodeTypeManager,
            getLocationFactory(), getValueFactory(), getWorkspace().getNamespaceRegistry(), getAccessManager(),
            userState, context, (RepositoryImpl)getRepository(), getWorkspace().getName());
      importer.importStream(in);
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.xml.importing.StreamImporter

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.