public abstract class AbstractBulkFilesystemImporter extends Object implements BulkFilesystemImporter, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected BehaviourFilter |
behaviourFilter |
protected DirectoryAnalyser |
directoryAnalyser |
protected FileFolderService |
fileFolderService |
protected BulkImportStatusImpl |
importStatus |
protected JobLockService |
jobLockService |
protected static org.apache.commons.logging.Log |
logger |
protected org.alfresco.service.cmr.security.PermissionService |
permissionService |
protected RuleService |
ruleService |
protected RetryingTransactionHelper |
transactionHelper |
protected TransactionService |
transactionService |
Constructor and Description |
---|
AbstractBulkFilesystemImporter() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
asyncBulkImport(BulkImportParameters bulkImportParameters,
NodeImporter nodeImporter)
Initiates a bulk filesystem import asynchronously i.e.
|
void |
bulkImport(BulkImportParameters bulkImportParameters,
NodeImporter nodeImporter)
Initiates a bulk filesystem import.
|
protected abstract void |
bulkImportImpl(BulkImportParameters bulkImportParameters,
NodeImporter nodeImporter,
String lockToken) |
protected String |
getFileName(File file) |
protected String |
getLock(long time)
Attempts to get the lock.
|
protected String |
getLockToken() |
protected String |
getRepositoryPath(org.alfresco.service.cmr.repository.NodeRef nodeRef) |
BulkImportStatus |
getStatus() |
protected String |
mapToString(Map<?,?> map) |
protected void |
refreshLock(String lockToken,
long time) |
protected void |
releaseLock(String lockToken) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
void |
setDirectoryAnalyser(DirectoryAnalyser directoryAnalyser) |
void |
setFileFolderService(FileFolderService fileFolderService) |
void |
setImportStatus(BulkImportStatusImpl importStatus) |
void |
setJobLockService(JobLockService jobLockService) |
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService) |
void |
setRuleService(RuleService ruleService) |
void |
setTransactionService(TransactionService transactionService) |
protected void |
validateNodeRefIsWritableSpace(org.alfresco.service.cmr.repository.NodeRef target) |
void |
validateSourceIsReadableDirectory(File source) |
protected static final org.apache.commons.logging.Log logger
protected org.springframework.context.ApplicationContext applicationContext
protected FileFolderService fileFolderService
protected TransactionService transactionService
protected org.alfresco.service.cmr.security.PermissionService permissionService
protected RetryingTransactionHelper transactionHelper
protected RuleService ruleService
protected BulkImportStatusImpl importStatus
protected DirectoryAnalyser directoryAnalyser
protected JobLockService jobLockService
protected BehaviourFilter behaviourFilter
public void setRuleService(RuleService ruleService)
public void setBehaviourFilter(BehaviourFilter behaviourFilter)
public void setJobLockService(JobLockService jobLockService)
public void setImportStatus(BulkImportStatusImpl importStatus)
public final void setDirectoryAnalyser(DirectoryAnalyser directoryAnalyser)
public void setFileFolderService(FileFolderService fileFolderService)
public void setTransactionService(TransactionService transactionService)
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public final BulkImportStatus getStatus()
getStatus
in interface BulkFilesystemImporter
BulkFilesystemImporter.getStatus()
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
protected abstract void bulkImportImpl(BulkImportParameters bulkImportParameters, NodeImporter nodeImporter, String lockToken)
protected String getLock(long time)
protected void refreshLock(String lockToken, long time)
protected void releaseLock(String lockToken)
protected final String getRepositoryPath(org.alfresco.service.cmr.repository.NodeRef nodeRef)
protected final void validateNodeRefIsWritableSpace(org.alfresco.service.cmr.repository.NodeRef target)
protected String getLockToken()
public void validateSourceIsReadableDirectory(File source)
public void asyncBulkImport(BulkImportParameters bulkImportParameters, NodeImporter nodeImporter)
BulkFilesystemImporter
asyncBulkImport
in interface BulkFilesystemImporter
bulkImportParameters
- The target bulk import parameters.nodeImporter
- The node importer.public void bulkImport(BulkImportParameters bulkImportParameters, NodeImporter nodeImporter)
BulkFilesystemImporter
bulkImport
in interface BulkFilesystemImporter
bulkImportParameters
- The target bulk import parameters.nodeImporter
- The node importer.BulkFilesystemImporter.bulkImport(org.alfresco.repo.bulkimport.BulkImportParameters, org.alfresco.repo.bulkimport.NodeImporter)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
Copyright © 2005–2017 Alfresco Software. All rights reserved.