DynamicChannelLoader

public interface DynamicChannelLoader

Service responsible for loading dynamic triggers and action from modules which provides an instance of the DynamicChannelProvider.

Methods

channelExists

boolean channelExists(String moduleName)

Checks whether module with the given moduleName provides an implementation of the DynamicChannelProvider.

Parameters:
  • moduleName – the name of the module
Returns:

true if module provides the implementation, false otherwise

countByChannelModuleName

Long countByChannelModuleName(String moduleName)

Returns the amount of the triggers provided by the module with the given moduleName.

Parameters:
  • moduleName – the name of the module
Returns:

the amount of trigger provided by the module

getDynamicTriggers

List<TriggerEvent> getDynamicTriggers(String moduleName, int page, int pageSize)

Returns a list of triggers based on the given moduleName, page and pageSize.

Parameters:
  • moduleName – the name of the module
  • page – the number of the page
  • pageSize – the size of the page
Returns:

list of triggers

getTrigger

TriggerEvent getTrigger(TaskTriggerInformation triggerInformation)

Returns a trigger matching the information provided with the triggerInformation.

Parameters:
  • triggerInformation – the information about the trigger
Returns:

the matching trigger

providesDynamicTriggers

boolean providesDynamicTriggers(String moduleName)

Checks whether the module with the given moduleName provides dynamic triggers.

Parameters:
  • moduleName – the name of the module
Returns:

true if module provides triggers, false otherwise

validateTrigger

boolean validateTrigger(String moduleName, String subject)

Checks whether the given subject is a valid trigger for module with the given moduleName.

Parameters:
  • moduleName – the name of the module
  • subject – the subject of the trigger
Returns:

true if the subject is valid, false otherwise