org.nuxeo.ecm.platform.importer.service

Interface DefaultImporterService

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      Class<? extends ImporterDocumentModelFactory> getDocModelFactoryClass()
      Deprecated. 
      Class<? extends SourceNode> getSourceNodeClass()
      Deprecated. 
      String importDocuments(AbstractImporterExecutor executor, String destinationPath, String sourcePath, boolean skipRootContainerCreation, int batchSize, int noImportingThreads, boolean interactive)
      Imports documents using a the given executor and the contributed documentModelFactory and SourceNode implementations; If no documentModelFactory implementation was contributed to the service, DefaultDocumentModelFactory it's used If no SourceNode implementation was contributed to the service, FileSourceNode it's used
      String importDocuments(AbstractImporterExecutor executor, String leafType, String folderishType, String destinationPath, String sourcePath, boolean skipRootContainerCreation, int batchSize, int noImportingThreads, boolean interactive)
      Imports documents using a the given executor and the contributed documentModelFactory and SourceNode implementations; Allows to overwrite the leaf and folderish types used by the documentModelFactory when importing; if one of them is not specified then the contributed one is used If no documentModelFactory implementation was contributed to the service, DefaultDocumentModelFactory it's used If no SourceNode implementation was contributed to the service, FileSourceNode it's used
      void importDocuments(String destionationPath, String sourcePath, boolean skipRootContainerCreation, int batchSize, int noImportingThreads)
      Imports documents using a DefaultImporterExecutor and the contributed documentModelFactory and SourceNode implementations; If no documentModelFactory implementation was contributed to the service, DefaultDocumentModelFactory it's used If no SourceNode implementation was contributed to the service, FileSourceNode it's used
      void setDocModelFactoryClass(Class<? extends ImporterDocumentModelFactory> docModelFactoryClass) 
      void setFolderishDocType(String folderishDocType) 
      void setImporterLogger(ImporterLogger importerLogger) 
      void setLeafDocType(String fileDocType) 
      void setRepository(String repositoryName) 
      void setSourceNodeClass(Class<? extends SourceNode> sourceNodeClass) 
      void setTransactionTimeout(int transactionTimeout) 
    • Method Detail

      • importDocuments

        void importDocuments(String destionationPath,
                           String sourcePath,
                           boolean skipRootContainerCreation,
                           int batchSize,
                           int noImportingThreads)
                             throws ClientException
        Imports documents using a DefaultImporterExecutor and the contributed documentModelFactory and SourceNode implementations; If no documentModelFactory implementation was contributed to the service, DefaultDocumentModelFactory it's used If no SourceNode implementation was contributed to the service, FileSourceNode it's used
        Parameters:
        destionationPath -
        sourcePath -
        skipRootContainerCreation -
        batchSize -
        noImportingThreads -
        Throws:
        ClientException
      • importDocuments

        String importDocuments(AbstractImporterExecutor executor,
                             String destinationPath,
                             String sourcePath,
                             boolean skipRootContainerCreation,
                             int batchSize,
                             int noImportingThreads,
                             boolean interactive)
                               throws ClientException
        Imports documents using a the given executor and the contributed documentModelFactory and SourceNode implementations; If no documentModelFactory implementation was contributed to the service, DefaultDocumentModelFactory it's used If no SourceNode implementation was contributed to the service, FileSourceNode it's used
        Parameters:
        executor -
        destinationPath -
        sourcePath -
        skipRootContainerCreation -
        batchSize -
        noImportingThreads -
        interactive -
        Throws:
        ClientException
      • importDocuments

        String importDocuments(AbstractImporterExecutor executor,
                             String leafType,
                             String folderishType,
                             String destinationPath,
                             String sourcePath,
                             boolean skipRootContainerCreation,
                             int batchSize,
                             int noImportingThreads,
                             boolean interactive)
                               throws ClientException
        Imports documents using a the given executor and the contributed documentModelFactory and SourceNode implementations; Allows to overwrite the leaf and folderish types used by the documentModelFactory when importing; if one of them is not specified then the contributed one is used If no documentModelFactory implementation was contributed to the service, DefaultDocumentModelFactory it's used If no SourceNode implementation was contributed to the service, FileSourceNode it's used
        Parameters:
        executor -
        destinationPath -
        sourcePath -
        skipRootContainerCreation -
        batchSize -
        noImportingThreads -
        interactive -
        Throws:
        ClientException
      • setSourceNodeClass

        void setSourceNodeClass(Class<? extends SourceNode> sourceNodeClass)
      • setLeafDocType

        void setLeafDocType(String fileDocType)
      • setFolderishDocType

        void setFolderishDocType(String folderishDocType)
      • setImporterLogger

        void setImporterLogger(ImporterLogger importerLogger)
      • setTransactionTimeout

        void setTransactionTimeout(int transactionTimeout)
        Since:
        5.9.4
      • setRepository

        void setRepository(String repositoryName)
        Parameters:
        repositoryName -
        Since:
        7.1
      • getSourceNodeClass

        @Deprecated
        Class<? extends SourceNode> getSourceNodeClass()
        Deprecated. 
        Added waiting the importer refactoring. Only used by Scan Importer.
        Since:
        5.7.3

Copyright © 2015 Nuxeo SA. All rights reserved.