Class DefaultImporterServiceImpl
java.lang.Object
org.nuxeo.ecm.platform.importer.service.DefaultImporterServiceImpl
- All Implemented Interfaces:
DefaultImporterService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SourceNodecreateNewSourceNodeInstanceForSourcePath(String sourcePath) Class<? extends ImporterDocumentModelFactory>Added waiting the importer refactoring.protected ImporterDocumentModelFactorybooleanGets the enablePerfLogging value used by the GenericMultiThreadImporter.Class<? extends SourceNode>Added waiting the importer refactoring.voidimportDocuments(String destinationPath, 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,DefaultDocumentModelFactoryit's used If no SourceNode implementation was contributed to the service,FileSourceNodeit's usedimportDocuments(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,DefaultDocumentModelFactoryit's used If no SourceNode implementation was contributed to the service,FileSourceNodeit's usedimportDocuments(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,DefaultDocumentModelFactoryit's used If no SourceNode implementation was contributed to the service,FileSourceNodeit's usedvoidsetBulkMode(boolean bulkMode) Sets the bulk mode for the importer.voidsetDocModelFactoryClass(Class<? extends ImporterDocumentModelFactory> docModelFactoryClass) protected voidsetDocumentModelFactory(ImporterDocumentModelFactory documentModelFactory) voidsetEnablePerfLogging(boolean enablePerfLogging) Sets whether or not the GenericMultiThreadedImporter should log performance metricsvoidsetFolderishDocType(String folderishDocType) voidsetImporterLogger(ImporterLogger importerLogger) voidsetLeafDocType(String fileDocType) voidsetRepository(String repositoryName) voidsetSourceNodeClass(Class<? extends SourceNode> sourceNodeClass) voidsetTransactionTimeout(int transactionTimeout)
-
Field Details
-
enablePerfLogging
protected boolean enablePerfLogging
-
-
Constructor Details
-
DefaultImporterServiceImpl
public DefaultImporterServiceImpl()
-
-
Method Details
-
importDocuments
public void importDocuments(String destinationPath, String sourcePath, boolean skipRootContainerCreation, int batchSize, int noImportingThreads) Description copied from interface:DefaultImporterServiceImports documents using a DefaultImporterExecutor and the contributed documentModelFactory and SourceNode implementations; If no documentModelFactory implementation was contributed to the service,DefaultDocumentModelFactoryit's used If no SourceNode implementation was contributed to the service,FileSourceNodeit's used- Specified by:
importDocumentsin interfaceDefaultImporterService
-
importDocuments
public String importDocuments(AbstractImporterExecutor executor, String destinationPath, String sourcePath, boolean skipRootContainerCreation, int batchSize, int noImportingThreads, boolean interactive) Description copied from interface:DefaultImporterServiceImports documents using a the given executor and the contributed documentModelFactory and SourceNode implementations; If no documentModelFactory implementation was contributed to the service,DefaultDocumentModelFactoryit's used If no SourceNode implementation was contributed to the service,FileSourceNodeit's used- Specified by:
importDocumentsin interfaceDefaultImporterService
-
importDocuments
public String importDocuments(AbstractImporterExecutor executor, String leafType, String folderishType, String destinationPath, String sourcePath, boolean skipRootContainerCreation, int batchSize, int noImportingThreads, boolean interactive) Description copied from interface:DefaultImporterServiceImports 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,DefaultDocumentModelFactoryit's used If no SourceNode implementation was contributed to the service,FileSourceNodeit's used- Specified by:
importDocumentsin interfaceDefaultImporterService
-
setDocModelFactoryClass
public void setDocModelFactoryClass(Class<? extends ImporterDocumentModelFactory> docModelFactoryClass) - Specified by:
setDocModelFactoryClassin interfaceDefaultImporterService
-
setSourceNodeClass
- Specified by:
setSourceNodeClassin interfaceDefaultImporterService
-
createNewSourceNodeInstanceForSourcePath
-
getDocumentModelFactory
-
setDocumentModelFactory
-
getFolderishDocType
-
setFolderishDocType
- Specified by:
setFolderishDocTypein interfaceDefaultImporterService
-
getLeafDocType
-
setLeafDocType
- Specified by:
setLeafDocTypein interfaceDefaultImporterService
-
getImporterLogger
-
setImporterLogger
- Specified by:
setImporterLoggerin interfaceDefaultImporterService
-
setTransactionTimeout
public void setTransactionTimeout(int transactionTimeout) - Specified by:
setTransactionTimeoutin interfaceDefaultImporterService
-
getSourceNodeClass
Description copied from interface:DefaultImporterServiceAdded waiting the importer refactoring. Only used by Scan Importer.- Specified by:
getSourceNodeClassin interfaceDefaultImporterService
-
getDocModelFactoryClass
Description copied from interface:DefaultImporterServiceAdded waiting the importer refactoring. Only used by Scan Importer.- Specified by:
getDocModelFactoryClassin interfaceDefaultImporterService
-
setRepository
- Specified by:
setRepositoryin interfaceDefaultImporterService- Since:
- 7.1
-
setBulkMode
public void setBulkMode(boolean bulkMode) Description copied from interface:DefaultImporterServiceSets the bulk mode for the importer.- Specified by:
setBulkModein interfaceDefaultImporterService- Parameters:
bulkMode-trueto enable bulk mode (default), orfalseto disable it
-
setEnablePerfLogging
public void setEnablePerfLogging(boolean enablePerfLogging) Description copied from interface:DefaultImporterServiceSets whether or not the GenericMultiThreadedImporter should log performance metrics- Specified by:
setEnablePerfLoggingin interfaceDefaultImporterService
-
getEnablePerfLogging
public boolean getEnablePerfLogging()Description copied from interface:DefaultImporterServiceGets the enablePerfLogging value used by the GenericMultiThreadImporter. Only used by Scan Importer and JAXRS Importer.- Specified by:
getEnablePerfLoggingin interfaceDefaultImporterService
-