Class DefaultImporterServiceImpl
java.lang.Object
org.nuxeo.ecm.platform.importer.service.DefaultImporterServiceImpl
- All Implemented Interfaces:
DefaultImporterService
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected SourceNode
createNewSourceNodeInstanceForSourcePath
(String sourcePath) Class<? extends ImporterDocumentModelFactory>
Added waiting the importer refactoring.protected ImporterDocumentModelFactory
boolean
Gets the enablePerfLogging value used by the GenericMultiThreadImporter.Class<? extends SourceNode>
Added waiting the importer refactoring.void
importDocuments
(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,DefaultDocumentModelFactory
it's used If no SourceNode implementation was contributed to the service,FileSourceNode
it'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,DefaultDocumentModelFactory
it's used If no SourceNode implementation was contributed to the service,FileSourceNode
it'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,DefaultDocumentModelFactory
it's used If no SourceNode implementation was contributed to the service,FileSourceNode
it's usedvoid
setBulkMode
(boolean bulkMode) Sets the bulk mode for the importer.void
setDocModelFactoryClass
(Class<? extends ImporterDocumentModelFactory> docModelFactoryClass) protected void
setDocumentModelFactory
(ImporterDocumentModelFactory documentModelFactory) void
setEnablePerfLogging
(boolean enablePerfLogging) Sets whether or not the GenericMultiThreadedImporter should log performance metricsvoid
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)
-
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:DefaultImporterService
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- Specified by:
importDocuments
in interfaceDefaultImporterService
-
importDocuments
public String importDocuments(AbstractImporterExecutor executor, String destinationPath, String sourcePath, boolean skipRootContainerCreation, int batchSize, int noImportingThreads, boolean interactive) Description copied from interface:DefaultImporterService
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- Specified by:
importDocuments
in 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:DefaultImporterService
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- Specified by:
importDocuments
in interfaceDefaultImporterService
-
setDocModelFactoryClass
public void setDocModelFactoryClass(Class<? extends ImporterDocumentModelFactory> docModelFactoryClass) - Specified by:
setDocModelFactoryClass
in interfaceDefaultImporterService
-
setSourceNodeClass
- Specified by:
setSourceNodeClass
in interfaceDefaultImporterService
-
createNewSourceNodeInstanceForSourcePath
-
getDocumentModelFactory
-
setDocumentModelFactory
-
getFolderishDocType
-
setFolderishDocType
- Specified by:
setFolderishDocType
in interfaceDefaultImporterService
-
getLeafDocType
-
setLeafDocType
- Specified by:
setLeafDocType
in interfaceDefaultImporterService
-
getImporterLogger
-
setImporterLogger
- Specified by:
setImporterLogger
in interfaceDefaultImporterService
-
setTransactionTimeout
public void setTransactionTimeout(int transactionTimeout) - Specified by:
setTransactionTimeout
in interfaceDefaultImporterService
-
getSourceNodeClass
Description copied from interface:DefaultImporterService
Added waiting the importer refactoring. Only used by Scan Importer.- Specified by:
getSourceNodeClass
in interfaceDefaultImporterService
-
getDocModelFactoryClass
Description copied from interface:DefaultImporterService
Added waiting the importer refactoring. Only used by Scan Importer.- Specified by:
getDocModelFactoryClass
in interfaceDefaultImporterService
-
setRepository
- Specified by:
setRepository
in interfaceDefaultImporterService
- Since:
- 7.1
-
setBulkMode
public void setBulkMode(boolean bulkMode) Description copied from interface:DefaultImporterService
Sets the bulk mode for the importer.- Specified by:
setBulkMode
in interfaceDefaultImporterService
- Parameters:
bulkMode
-true
to enable bulk mode (default), orfalse
to disable it
-
setEnablePerfLogging
public void setEnablePerfLogging(boolean enablePerfLogging) Description copied from interface:DefaultImporterService
Sets whether or not the GenericMultiThreadedImporter should log performance metrics- Specified by:
setEnablePerfLogging
in interfaceDefaultImporterService
-
getEnablePerfLogging
public boolean getEnablePerfLogging()Description copied from interface:DefaultImporterService
Gets the enablePerfLogging value used by the GenericMultiThreadImporter. Only used by Scan Importer and JAXRS Importer.- Specified by:
getEnablePerfLogging
in interfaceDefaultImporterService
-