DynamicChannelProvider

public interface DynamicChannelProvider

Responsible for providing dynamic triggers and actions for existing task channels.

Methods

countTriggers

long countTriggers()

Returns the amount of the provided triggers.

Returns:the number of provided triggers

getTrigger

TriggerEvent getTrigger(TaskTriggerInformation info)

Returns a trigger based on the given info.

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

the trigger with the given subject if it exists, null otherwise

getTriggers

List<TriggerEvent> getTriggers(int page, int pageSize)

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

Parameters:
  • page – the number of the page
  • pageSize – the size of the page
Returns:

the list of triggers

validateSubject

boolean validateSubject(String subject)

Checks whether this provider provides trigger with the given subject.

Parameters:
  • subject – the subject of the trigger
Returns:

true if this provider returns a trigger with the given subject, false otherwise