public class DefaultImporterServiceImpl extends Object implements DefaultImporterService
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enablePerfLogging |
| Constructor and Description |
|---|
DefaultImporterServiceImpl() |
| Modifier and Type | Method and 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.
|
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 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 used |
void |
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 metrics
|
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) |
protected boolean enablePerfLogging
public DefaultImporterServiceImpl()
public void importDocuments(String destinationPath, String sourcePath, boolean skipRootContainerCreation, int batchSize, int noImportingThreads)
DefaultImporterServiceDefaultDocumentModelFactory it's used If no SourceNode implementation was contributed to the
service, FileSourceNode it's usedimportDocuments in interface DefaultImporterServicepublic String importDocuments(AbstractImporterExecutor executor, String destinationPath, String sourcePath, boolean skipRootContainerCreation, int batchSize, int noImportingThreads, boolean interactive)
DefaultImporterServiceDefaultDocumentModelFactory it's used If no SourceNode implementation was contributed to the
service, FileSourceNode it's usedimportDocuments in interface DefaultImporterServicepublic String importDocuments(AbstractImporterExecutor executor, String leafType, String folderishType, String destinationPath, String sourcePath, boolean skipRootContainerCreation, int batchSize, int noImportingThreads, boolean interactive)
DefaultImporterServiceDefaultDocumentModelFactory it's used If no
SourceNode implementation was contributed to the service, FileSourceNode it's usedimportDocuments in interface DefaultImporterServicepublic void setDocModelFactoryClass(Class<? extends ImporterDocumentModelFactory> docModelFactoryClass)
setDocModelFactoryClass in interface DefaultImporterServicepublic void setSourceNodeClass(Class<? extends SourceNode> sourceNodeClass)
setSourceNodeClass in interface DefaultImporterServiceprotected SourceNode createNewSourceNodeInstanceForSourcePath(String sourcePath)
protected ImporterDocumentModelFactory getDocumentModelFactory()
protected void setDocumentModelFactory(ImporterDocumentModelFactory documentModelFactory)
public String getFolderishDocType()
public void setFolderishDocType(String folderishDocType)
setFolderishDocType in interface DefaultImporterServicepublic String getLeafDocType()
public void setLeafDocType(String fileDocType)
setLeafDocType in interface DefaultImporterServicepublic ImporterLogger getImporterLogger()
public void setImporterLogger(ImporterLogger importerLogger)
setImporterLogger in interface DefaultImporterServicepublic void setTransactionTimeout(int transactionTimeout)
setTransactionTimeout in interface DefaultImporterServicepublic Class<? extends SourceNode> getSourceNodeClass()
DefaultImporterServicegetSourceNodeClass in interface DefaultImporterServicepublic Class<? extends ImporterDocumentModelFactory> getDocModelFactoryClass()
DefaultImporterServicegetDocModelFactoryClass in interface DefaultImporterServicepublic void setRepository(String repositoryName)
setRepository in interface DefaultImporterServicerepositoryName - public void setBulkMode(boolean bulkMode)
DefaultImporterServicesetBulkMode in interface DefaultImporterServicebulkMode - true to enable bulk mode (default), or false to disable itpublic void setEnablePerfLogging(boolean enablePerfLogging)
DefaultImporterServicesetEnablePerfLogging in interface DefaultImporterServicepublic boolean getEnablePerfLogging()
DefaultImporterServicegetEnablePerfLogging in interface DefaultImporterServiceCopyright © 2018 Nuxeo. All rights reserved.