Package org.ikasan.spec.trigger
Interface TriggerService
-
public interface TriggerService- Author:
- Ikasan Development Team
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteDynamicTrigger(java.lang.Long triggerId)Deletes a dynamic trigger, specified by trigger id.TriggergetTrigger(java.lang.Long triggerId)Get a dynamic trigger, specified by trigger id.java.util.List<Trigger>getTriggers()Returns all triggers associated with a particular modulejava.util.Map<java.lang.String,java.util.List<Trigger>>getTriggers(java.lang.String moduleName, java.lang.String flowName)Returns a Map all the triggers associated with a particular flowjava.util.List<Trigger>getTriggers(java.lang.String moduleName, java.lang.String flowName, TriggerRelationship relationship, java.lang.String flowElementName)Returns a safe List of all the triggers associated with a particular point in a particular flow
-
-
-
Method Detail
-
getTriggers
java.util.List<Trigger> getTriggers()
Returns all triggers associated with a particular module- Returns:
- - List of triggers
-
getTriggers
java.util.Map<java.lang.String,java.util.List<Trigger>> getTriggers(java.lang.String moduleName, java.lang.String flowName)
Returns a Map all the triggers associated with a particular flow- Parameters:
moduleName- - The name of the moduleflowName- - The name of the flow- Returns:
- - List of triggers that apply in flow specified by the parameters
-
getTriggers
java.util.List<Trigger> getTriggers(java.lang.String moduleName, java.lang.String flowName, TriggerRelationship relationship, java.lang.String flowElementName)
Returns a safe List of all the triggers associated with a particular point in a particular flow- Parameters:
moduleName- - The name of the moduleflowName- - The name of the flowrelationship- - The Trigger relationship (before or after)flowElementName- - The flow element name- Returns:
- - List of triggers that apply at the point in flow specified by the parameters
-
deleteDynamicTrigger
void deleteDynamicTrigger(java.lang.Long triggerId)
Deletes a dynamic trigger, specified by trigger id. This has the effect of:
1) de-registering the trigger from the mapped triggers, so that it no longer takes effect 2) deleting the trigger so that it is not reloaded next time- Parameters:
triggerId- - The dynamic Trigger to deregister
-
getTrigger
Trigger getTrigger(java.lang.Long triggerId)
Get a dynamic trigger, specified by trigger id.- Parameters:
triggerId- - The dynamic Trigger to get- Returns:
- trigger stored in local db
-
-