Class EmailCrawler

  • All Implemented Interfaces:
    Runnable
    Direct Known Subclasses:
    VIAEmailCrawler

    public class EmailCrawler
    extends com.logicaldoc.core.task.Task
    This component downloads new e-mails from one or more e-mail accounts
    Since:
    4.0
    Author:
    Matteo Caruso - LogicalDOC
    • Field Detail

      • NAME

        public static String NAME
    • Method Detail

      • getDocumentDao

        public com.logicaldoc.core.document.dao.DocumentDAO getDocumentDao()
      • setDocumentDao

        public void setDocumentDao​(com.logicaldoc.core.document.dao.DocumentDAO documentDao)
      • getDocumentLinkDao

        public com.logicaldoc.core.document.dao.DocumentLinkDAO getDocumentLinkDao()
      • setDocumentLinkDao

        public void setDocumentLinkDao​(com.logicaldoc.core.document.dao.DocumentLinkDAO documentLinkDao)
      • getDocumentHistoryDao

        public com.logicaldoc.core.document.dao.DocumentHistoryDAO getDocumentHistoryDao()
      • setDocumentHistoryDao

        public void setDocumentHistoryDao​(com.logicaldoc.core.document.dao.DocumentHistoryDAO documentHistoryDAO)
      • getFolderDao

        public com.logicaldoc.core.folder.FolderDAO getFolderDao()
      • setFolderDao

        public void setFolderDao​(com.logicaldoc.core.folder.FolderDAO folderDao)
      • getStorer

        public com.logicaldoc.core.store.Storer getStorer()
      • setStorer

        public void setStorer​(com.logicaldoc.core.store.Storer storer)
      • setTemplateDao

        public void setTemplateDao​(com.logicaldoc.core.metadata.TemplateDAO templateDao)
      • setAccountDao

        public void setAccountDao​(EmailAccountDAO accountDao)
      • getDefaultOwner

        public String getDefaultOwner()
      • setDefaultOwner

        public void setDefaultOwner​(String defaultOwner)
      • getConfig

        public com.logicaldoc.util.config.ContextProperties getConfig()
        Overrides:
        getConfig in class com.logicaldoc.core.task.Task
      • setConfig

        public void setConfig​(com.logicaldoc.util.config.ContextProperties config)
        Overrides:
        setConfig in class com.logicaldoc.core.task.Task
      • processEmails

        public void processEmails​(String owner)
        Downloads all new mails from all accounts. The stored document will be owned by the specified username
        Parameters:
        owner - the username of the owner of the downloaded messages
      • getSession

        public static javax.mail.Session getSession()
      • isIndeterminate

        public boolean isIndeterminate()
        Specified by:
        isIndeterminate in class com.logicaldoc.core.task.Task
      • isConcurrent

        public boolean isConcurrent()
        Specified by:
        isConcurrent in class com.logicaldoc.core.task.Task