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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
applyTriggersToTree(long rootId)
AutomationTrigger
findByAK(String event, Long folderId, long tenantId)
List<AutomationTrigger>
findByEvent(String event, long tenantId)
List<AutomationTrigger>
findByFolder(long folderId)
AutomationRoutine
getAutomation(String event, Long folderId, long tenantId)
Retrieves the registered automation script for a given event and folder-
Methods inherited from interface com.logicaldoc.core.PersistentObjectDAO
bulkUpdate, delete, delete, deleteAll, deleteAll, findAll, findAll, findAllIds, findAllIds, findById, findById, findByObjectQuery, findByQuery, findByWhere, findByWhere, findIdsByWhere, findIdsByWhere, getDbms, initialize, isOracle, jdbcUpdate, jdbcUpdate, query, queryForInt, queryForList, queryForList, queryForLong, queryForObject, queryForRowSet, queryForString, store
-
-
-
-
Method Detail
-
findByAK
AutomationTrigger findByAK(String event, Long folderId, long tenantId)
-
findByEvent
List<AutomationTrigger> findByEvent(String event, long tenantId)
-
findByFolder
List<AutomationTrigger> findByFolder(long folderId)
-
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 codefolderId
- 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)
-
-