Class Notifier

java.lang.Object
com.logicaldoc.core.task.Task
com.logicaldoc.notifier.Notifier
All Implemented Interfaces:
Runnable

public class Notifier extends com.logicaldoc.core.task.Task
The component send messages to the recipient users.
Since:
5.0
Author:
Matteo Caruso - LogicalDOC
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class com.logicaldoc.core.task.Task

    STATUS_IDLE, STATUS_RUNNING, STATUS_STOPPING
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.logicaldoc.core.communication.SystemMessageDAO
     
    boolean
     
    boolean
     
    void
    Launches the sending of all messages.
    void
    setSystemMessageDAO(com.logicaldoc.core.communication.SystemMessageDAO systemMessageDAO)
     
    void
    setTenantDAO(com.logicaldoc.core.security.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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Notifier

      public Notifier()
  • Method Details

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

      public void sendMessages() throws com.logicaldoc.core.PersistenceException
      Launches the sending of all messages.
      Throws:
      com.logicaldoc.core.PersistenceException - Error in the database
    • getSystemMessageDAO

      public com.logicaldoc.core.communication.SystemMessageDAO getSystemMessageDAO()
    • setSystemMessageDAO

      public void setSystemMessageDAO(com.logicaldoc.core.communication.SystemMessageDAO systemMessageDAO)
    • setTenantDAO

      public void setTenantDAO(com.logicaldoc.core.security.TenantDAO tenantDAO)