Package com.logicaldoc.importfolder
Class ImportFolderCrawler
- java.lang.Object
-
- com.logicaldoc.core.task.Task
-
- com.logicaldoc.importfolder.ImportFolderCrawler
-
- All Implemented Interfaces:
Runnable
public class ImportFolderCrawler extends com.logicaldoc.core.task.Task
This component crawls all remote import folders importing found files in the dms.- Since:
- 2.1
- Author:
- Marco Meschieri- LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description ImportFolderCrawler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_next()
void
crawlImportFolders()
Downloads all new files from all import folders.ImportFolderCacheManager
getCacheManager()
com.logicaldoc.util.config.ContextProperties
getConfig()
String
getDefaultOwner()
com.logicaldoc.core.document.dao.DocumentDAO
getDocumentDao()
long
getErrors()
long
getImported()
ImportFolderDAO
getImportFolderDao()
int
getLocalCount()
org.slf4j.Logger
getLog()
int
getRemoteCount()
long
getUpdated()
boolean
isConcurrent()
boolean
isIndeterminate()
void
setCacheManager(ImportFolderCacheManager cacheManager)
void
setConfig(com.logicaldoc.util.config.ContextProperties config)
void
setDefaultOwner(String defaultOwner)
void
setDocumentDao(com.logicaldoc.core.document.dao.DocumentDAO documentDao)
void
setErrors(long errors)
void
setImported(long imported)
void
setImportFolderDao(ImportFolderDAO importFolderDao)
void
setUpdated(long updated)
-
Methods inherited from class com.logicaldoc.core.task.Task
addTaskListener, getCompletionPercentage, getName, getProgress, getReportRecipients, getScheduling, getSize, getStatus, interrupt, isInterrupted, isInterruptRequested, isRunning, isSendActivityReport, notifyReport, removeTaskListener, run, save, saveWork, setLockManager, setReportRecipients, setSendActivityReport, setSender, setSize, setSystemLoadMonitor, setUserDao
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCacheManager
public ImportFolderCacheManager getCacheManager()
-
setCacheManager
public void setCacheManager(ImportFolderCacheManager cacheManager)
-
getDocumentDao
public com.logicaldoc.core.document.dao.DocumentDAO getDocumentDao()
-
setDocumentDao
public void setDocumentDao(com.logicaldoc.core.document.dao.DocumentDAO documentDao)
-
crawlImportFolders
public void crawlImportFolders()
Downloads all new files from all import folders. The stored document will be owned by the specified default owner
-
isIndeterminate
public boolean isIndeterminate()
- Specified by:
isIndeterminate
in classcom.logicaldoc.core.task.Task
-
isConcurrent
public boolean isConcurrent()
- Specified by:
isConcurrent
in classcom.logicaldoc.core.task.Task
-
setDefaultOwner
public void setDefaultOwner(String defaultOwner)
-
getRemoteCount
public int getRemoteCount()
-
getLocalCount
public int getLocalCount()
-
getImported
public long getImported()
-
getUpdated
public long getUpdated()
-
getErrors
public long getErrors()
-
setImported
public void setImported(long imported)
-
setUpdated
public void setUpdated(long updated)
-
setErrors
public void setErrors(long errors)
-
getDefaultOwner
public String getDefaultOwner()
-
_next
public void _next()
-
getLog
public org.slf4j.Logger getLog()
-
getConfig
public com.logicaldoc.util.config.ContextProperties getConfig()
- Overrides:
getConfig
in classcom.logicaldoc.core.task.Task
-
setConfig
public void setConfig(com.logicaldoc.util.config.ContextProperties config)
- Overrides:
setConfig
in classcom.logicaldoc.core.task.Task
-
getImportFolderDao
public ImportFolderDAO getImportFolderDao()
-
setImportFolderDao
public void setImportFolderDao(ImportFolderDAO importFolderDao)
-
-