Interface AutomationTriggerDAO

  • All Superinterfaces:
    com.logicaldoc.core.PersistentObjectDAO<AutomationTrigger>
    All Known Implementing Classes:
    HibernateAutomationTriggerDAO

    public interface AutomationTriggerDAO
    extends com.logicaldoc.core.PersistentObjectDAO<AutomationTrigger>
    DAO to handle automation routines.
    Since:
    8.1
    Author:
    Marco Meschieri - LogicalDOC
    • Method Detail

      • getAutomation

        AutomationRoutine getAutomation​(String event,
                                        Long folderId,
                                        long tenantId)
        Retrieves the registered automation script for a given event and folder
        Parameters:
        event - the event's code
        folderId - identifier of the folder (optional)
        tenantId - identifier of the tenant
        Returns:
        the routine containing the automation to run, if the trigger defines the scripts directly a dummy routine is returned
      • applyTriggersToTree

        int applyTriggersToTree​(long rootId)