public class DefaultImporterServiceImpl extends Object implements DefaultImporterService
| 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() |
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 |
setDocModelFactoryClass(Class<? extends ImporterDocumentModelFactory> docModelFactoryClass) |
protected void |
setDocumentModelFactory(ImporterDocumentModelFactory documentModelFactory) |
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) |
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 - Copyright © 2016 Nuxeo SA. All rights reserved.