Package com.logicaldoc.syndication
Class SyndicationCrawler
- java.lang.Object
-
- com.logicaldoc.core.task.Task
-
- com.logicaldoc.syndication.SyndicationCrawler
-
- All Implemented Interfaces:
Runnable
public class SyndicationCrawler extends com.logicaldoc.core.task.Task
This component crawls the syndications- Since:
- 8.1.2
- Author:
- Marco Meschieri- LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description SyndicationCrawler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_next()
void
crawlSyndications()
Uploads all new files from all syndicationscom.logicaldoc.core.document.dao.DocumentDAO
getDocumentDao()
long
getErrors()
long
getExported()
int
getLocalCount()
org.slf4j.Logger
getLog()
int
getRemoteCount()
long
getUpdated()
boolean
isConcurrent()
boolean
isIndeterminate()
void
setAttributeOptionDao(com.logicaldoc.core.metadata.AttributeOptionDAO attributeOptionDao)
void
setAttributeSetDao(com.logicaldoc.core.metadata.AttributeSetDAO attributeSetDao)
void
setCacheManager(SyndicationCacheManager cacheManager)
void
setDocumentDao(com.logicaldoc.core.document.dao.DocumentDAO documentDao)
void
setErrors(long errors)
void
setFolderDao(com.logicaldoc.core.folder.FolderDAO folderDao)
void
setImported(long imported)
void
setStorer(com.logicaldoc.core.store.Storer storer)
void
setSyndicationDao(SyndicationDAO syndicationDao)
void
setTemplateDao(com.logicaldoc.core.metadata.TemplateDAO templateDao)
void
setUpdated(long updated)
-
Methods inherited from class com.logicaldoc.core.task.Task
addTaskListener, getCompletionPercentage, getConfig, getName, getProgress, getReportRecipients, getScheduling, getSize, getStatus, interrupt, isInterrupted, isInterruptRequested, isRunning, isSendActivityReport, notifyReport, removeTaskListener, run, save, saveWork, setConfig, setLockManager, setReportRecipients, setSendActivityReport, setSender, setSize, setSystemLoadMonitor, setUserDao
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDocumentDao
public com.logicaldoc.core.document.dao.DocumentDAO getDocumentDao()
-
setDocumentDao
public void setDocumentDao(com.logicaldoc.core.document.dao.DocumentDAO documentDao)
-
setTemplateDao
public void setTemplateDao(com.logicaldoc.core.metadata.TemplateDAO templateDao)
-
crawlSyndications
public void crawlSyndications()
Uploads all new files from all syndications
-
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
-
getRemoteCount
public int getRemoteCount()
-
getLocalCount
public int getLocalCount()
-
getExported
public long getExported()
-
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)
-
_next
public void _next()
-
getLog
public org.slf4j.Logger getLog()
-
setAttributeSetDao
public void setAttributeSetDao(com.logicaldoc.core.metadata.AttributeSetDAO attributeSetDao)
-
setAttributeOptionDao
public void setAttributeOptionDao(com.logicaldoc.core.metadata.AttributeOptionDAO attributeOptionDao)
-
setSyndicationDao
public void setSyndicationDao(SyndicationDAO syndicationDao)
-
setFolderDao
public void setFolderDao(com.logicaldoc.core.folder.FolderDAO folderDao)
-
setStorer
public void setStorer(com.logicaldoc.core.store.Storer storer)
-
setCacheManager
public void setCacheManager(SyndicationCacheManager cacheManager)
-
-