Class DefaultImporterServiceImpl
- java.lang.Object
-
- org.nuxeo.ecm.platform.importer.service.DefaultImporterServiceImpl
-
- All Implemented Interfaces:
DefaultImporterService
public class DefaultImporterServiceImpl extends Object implements DefaultImporterService
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
enablePerfLogging
-
Constructor Summary
Constructors Constructor Description DefaultImporterServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SourceNode
createNewSourceNodeInstanceForSourcePath(String sourcePath)
Class<? extends ImporterDocumentModelFactory>
getDocModelFactoryClass()
Added waiting the importer refactoring.protected ImporterDocumentModelFactory
getDocumentModelFactory()
boolean
getEnablePerfLogging()
Gets the enablePerfLogging value used by the GenericMultiThreadImporter.String
getFolderishDocType()
ImporterLogger
getImporterLogger()
String
getLeafDocType()
Class<? extends SourceNode>
getSourceNodeClass()
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 usedString
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 usedString
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 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)
-
-
-
Method Detail
-
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
public void setSourceNodeClass(Class<? extends SourceNode> sourceNodeClass)
- Specified by:
setSourceNodeClass
in interfaceDefaultImporterService
-
createNewSourceNodeInstanceForSourcePath
protected SourceNode createNewSourceNodeInstanceForSourcePath(String sourcePath)
-
getDocumentModelFactory
protected ImporterDocumentModelFactory getDocumentModelFactory()
-
setDocumentModelFactory
protected void setDocumentModelFactory(ImporterDocumentModelFactory documentModelFactory)
-
getFolderishDocType
public String getFolderishDocType()
-
setFolderishDocType
public void setFolderishDocType(String folderishDocType)
- Specified by:
setFolderishDocType
in interfaceDefaultImporterService
-
getLeafDocType
public String getLeafDocType()
-
setLeafDocType
public void setLeafDocType(String fileDocType)
- Specified by:
setLeafDocType
in interfaceDefaultImporterService
-
getImporterLogger
public ImporterLogger getImporterLogger()
-
setImporterLogger
public void setImporterLogger(ImporterLogger importerLogger)
- Specified by:
setImporterLogger
in interfaceDefaultImporterService
-
setTransactionTimeout
public void setTransactionTimeout(int transactionTimeout)
- Specified by:
setTransactionTimeout
in interfaceDefaultImporterService
-
getSourceNodeClass
public Class<? extends SourceNode> getSourceNodeClass()
Description copied from interface:DefaultImporterService
Added waiting the importer refactoring. Only used by Scan Importer.- Specified by:
getSourceNodeClass
in interfaceDefaultImporterService
-
getDocModelFactoryClass
public Class<? extends ImporterDocumentModelFactory> getDocModelFactoryClass()
Description copied from interface:DefaultImporterService
Added waiting the importer refactoring. Only used by Scan Importer.- Specified by:
getDocModelFactoryClass
in interfaceDefaultImporterService
-
setRepository
public void setRepository(String repositoryName)
- 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
-
-