public class DocumentaryBaseImpServiceImpl extends AbstractImporterExecutor implements DocumentaryBaseImpServiceMBean, DocumentaryBaseImporterService
Constructor and Description |
---|
DocumentaryBaseImpServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
doSynchronImport(File root,
boolean skipRoot,
boolean importProxies,
boolean useMultiThread,
boolean resume) |
DocumentTypeSelector |
getTypeSelector() |
DocumentXmlTransformer |
getXmlTransformer() |
void |
importDocuments(Map<String,Serializable> parameter,
File path,
boolean resume,
boolean exportVersions,
boolean exportProxies,
boolean useMultiThread,
boolean asynchronous)
Imports the documentary base.
|
void |
importDocuments(String path)
Default import.
|
void |
resumeDocumentImport(String path,
boolean resume)
Import with resuming option.
|
void |
setListener(StatusListener listener)
Sets the listener that will informs about the import process status.
|
void |
setTypeSelector(DocumentTypeSelector typeSelector)
Sets the acceptor of the documents before import.
|
void |
setXmlTransformer(DocumentXmlTransformer xmlTransformer)
Sets the transformer for exported document.
|
void |
stop()
Stops the process of import.
|
getFactory, getLogger, getStatus, getThreadPolicy, isRunning, kill, run, setFactory, setThreadPolicy
public DocumentTypeSelector getTypeSelector()
public void setTypeSelector(DocumentTypeSelector typeSelector)
DocumentaryBaseImporterService
setTypeSelector
in interface DocumentaryBaseImporterService
public DocumentXmlTransformer getXmlTransformer()
public void setXmlTransformer(DocumentXmlTransformer xmlTransformer)
DocumentaryBaseImporterService
setXmlTransformer
in interface DocumentaryBaseImporterService
public void importDocuments(Map<String,Serializable> parameter, File path, boolean resume, boolean exportVersions, boolean exportProxies, boolean useMultiThread, boolean asynchronous) throws ClientException
DocumentaryBaseImporterService
importDocuments
in interface DocumentaryBaseImporterService
path
- the path to root directory of replicationasynchronous
- start the service asynchronousClientException
public void doSynchronImport(File root, boolean skipRoot, boolean importProxies, boolean useMultiThread, boolean resume) throws ClientException
ClientException
public void setListener(StatusListener listener)
DocumentaryBaseImporterService
setListener
in interface DocumentaryBaseImporterService
public void stop()
DocumentaryBaseImporterService
stop
in interface DocumentaryBaseImporterService
public void importDocuments(String path) throws ClientException
DocumentaryBaseImpServiceMBean
importDocuments
in interface DocumentaryBaseImpServiceMBean
ClientException
public void resumeDocumentImport(String path, boolean resume) throws ClientException
DocumentaryBaseImpServiceMBean
resumeDocumentImport
in interface DocumentaryBaseImpServiceMBean
resume
- true to resume. false will run a normal import.ClientException
Copyright © 2011 Nuxeo SA. All Rights Reserved.