Class CalendarProcessor

  • All Implemented Interfaces:
    Runnable

    public class CalendarProcessor
    extends com.logicaldoc.core.task.Task
    The component processes the calendar events.
    Since:
    6.7
    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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      EventDAO getEventDao()  
      com.logicaldoc.core.communication.SystemMessageDAO getSystemMessageDao()  
      boolean isConcurrent()  
      boolean isIndeterminate()  
      void notifyEvent​(Event event, com.logicaldoc.core.communication.EMailSender sender, String tenant)
      Notifies an event by creating the system messages and emails.
      void setDocumentDao​(com.logicaldoc.core.document.dao.DocumentDAO documentDao)  
      void setEventDao​(EventDAO eventDao)  
      void setMessageTemplateDao​(com.logicaldoc.core.communication.MessageTemplateDAO messageTemplateDao)  
      void setSystemMessageDao​(com.logicaldoc.core.communication.SystemMessageDAO systemMessageDao)  
      void setTenantDao​(com.logicaldoc.core.security.dao.TenantDAO tenantDao)  
      • 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

      • CalendarProcessor

        public CalendarProcessor()
    • Method Detail

      • 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
      • notifyEvent

        public void notifyEvent​(Event event,
                                com.logicaldoc.core.communication.EMailSender sender,
                                String tenant)
                         throws Exception
        Notifies an event by creating the system messages and emails. It also create future occurrences if the case.
        Parameters:
        event - the event to notify
        sender - the sender object
        tenant - the current tenant
        Throws:
        Exception - error connecting to the mail server
      • getSystemMessageDao

        public com.logicaldoc.core.communication.SystemMessageDAO getSystemMessageDao()
      • setSystemMessageDao

        public void setSystemMessageDao​(com.logicaldoc.core.communication.SystemMessageDAO systemMessageDao)
      • getEventDao

        public EventDAO getEventDao()
      • setEventDao

        public void setEventDao​(EventDAO eventDao)
      • setTenantDao

        public void setTenantDao​(com.logicaldoc.core.security.dao.TenantDAO tenantDao)
      • setMessageTemplateDao

        public void setMessageTemplateDao​(com.logicaldoc.core.communication.MessageTemplateDAO messageTemplateDao)
      • setDocumentDao

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