Class CleanerTask

  • All Implemented Interfaces:
    Runnable

    public class CleanerTask
    extends com.logicaldoc.core.task.Task
    This is the task that performs all cleaning operations
    Since:
    4.0
    Author:
    Marco Meschieri - LogicalDOC
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String NAME  
      • Fields inherited from class com.logicaldoc.core.task.Task

        STATUS_IDLE, STATUS_RUNNING, STATUS_STOPPING
    • Constructor Summary

      Constructors 
      Constructor Description
      CleanerTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isConcurrent()  
      boolean isIndeterminate()  
      void setCleanerManager​(CleanerManager cleanerManager)  
      void setDocumentDao​(com.logicaldoc.core.document.dao.DocumentDAO documentDao)  
      void setDocumentHistoryDao​(com.logicaldoc.core.document.dao.DocumentHistoryDAO documentHistoryDao)  
      void setFolderHistoryDao​(com.logicaldoc.core.folder.FolderHistoryDAO folderHistoryDao)  
      void setIndexer​(com.logicaldoc.core.searchengine.SearchEngine indexer)  
      void setSessionDao​(com.logicaldoc.core.security.dao.SessionDAO sessionDao)  
      void setUserHistoryDao​(com.logicaldoc.core.security.dao.UserHistoryDAO userHistoryDao)  
      • 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
    • Constructor Detail

      • CleanerTask

        public CleanerTask()
    • Method Detail

      • setCleanerManager

        public void setCleanerManager​(CleanerManager cleanerManager)
      • 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
      • setDocumentDao

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

        public void setIndexer​(com.logicaldoc.core.searchengine.SearchEngine indexer)
      • setUserHistoryDao

        public void setUserHistoryDao​(com.logicaldoc.core.security.dao.UserHistoryDAO userHistoryDao)
      • setDocumentHistoryDao

        public void setDocumentHistoryDao​(com.logicaldoc.core.document.dao.DocumentHistoryDAO documentHistoryDao)
      • setFolderHistoryDao

        public void setFolderHistoryDao​(com.logicaldoc.core.folder.FolderHistoryDAO folderHistoryDao)
      • setSessionDao

        public void setSessionDao​(com.logicaldoc.core.security.dao.SessionDAO sessionDao)