Class AutomationEventListener

java.lang.Object
com.logicaldoc.enterprise.automation.AutomationEventListener
All Implemented Interfaces:
com.logicaldoc.core.communication.EventListener

public class AutomationEventListener extends Object implements com.logicaldoc.core.communication.EventListener
Listener used to launch automation triggers when events occur.
Since:
8.1
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • AutomationEventListener

      public AutomationEventListener()
  • Method Details

    • newEvent

      public void newEvent(com.logicaldoc.core.History event)
      Specified by:
      newEvent in interface com.logicaldoc.core.communication.EventListener
    • execute

      public void execute(AutomationRoutine routine, Map<String,Object> dictionary) throws com.logicaldoc.core.PersistenceException
      Executes the given automation routine
      Parameters:
      routine - the routine to execute
      dictionary - the dictionary to pass to the script
      Throws:
      com.logicaldoc.core.PersistenceException - error at database level
    • setEventCollector

      public void setEventCollector(com.logicaldoc.core.communication.EventCollector eventCollector)
    • setFolderDao

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

      public void setDocumentDao(com.logicaldoc.core.document.DocumentDAO documentDao)
    • setUserDao

      public void setUserDao(com.logicaldoc.core.security.user.UserDAO userDao)
    • setAutomationTriggerDao

      public void setAutomationTriggerDao(AutomationTriggerDAO automationTriggerDao)