Class DefaultEventRuleRegistry
java.lang.Object
com.codebarrel.jira.plugin.automation.event.DefaultEventRuleRegistry
- All Implemented Interfaces:
ClusterMessageConsumer,EventRuleRegistry,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean
@Component
public class DefaultEventRuleRegistry
extends Object
implements EventRuleRegistry, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, ClusterMessageConsumer
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultEventRuleRegistry(com.atlassian.event.api.EventPublisher eventPublisher, ClusterMessagingService clusterMessagingService, RuleTracker ruleTracker, EventConverterFactory eventConverterFactory, JiraAuthenticationContext authenticationContext, TaskTimer taskTimer, EventRulesCache eventRulesCache, ThreadLocalExecutor threadLocalExecutor, JiraAutomationExecutionService automationExecutionService, CompatibilityCheck compatibilityCheck, ChangeHistoryResolver changeHistoryResolver, ThirdPartyComponentModuleTracker thirdPartyComponentModuleTracker, ThirdPartyEventRuleCache thirdPartyEventRuleCache, TenantService tenantService, AutomationQueue automationQueue, AutomationEventEnricherService automationEventEnricherService, AutomationConfigService configService, RuleSecretService secretService) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()voidvoidhandleIssueEventBundle(OnCommitIssueEventBundle eventBundle) voidHandle IssueLinkCreatedEvent and IssueLinkDeletedEvent.voidvoidvoidvoidvoidvoidvoidhandleWorkLogEvent(WorklogEvent event) voidCalled by the ClusterMessagingService when there is a message waiting to be processed by a node.voidregisterRule(com.codebarrel.automation.api.config.RuleConfigBean rule) voidvoidunregisterRule(long ruleId)
-
Constructor Details
-
DefaultEventRuleRegistry
@Inject public DefaultEventRuleRegistry(com.atlassian.event.api.EventPublisher eventPublisher, ClusterMessagingService clusterMessagingService, RuleTracker ruleTracker, EventConverterFactory eventConverterFactory, JiraAuthenticationContext authenticationContext, TaskTimer taskTimer, EventRulesCache eventRulesCache, ThreadLocalExecutor threadLocalExecutor, JiraAutomationExecutionService automationExecutionService, CompatibilityCheck compatibilityCheck, ChangeHistoryResolver changeHistoryResolver, ThirdPartyComponentModuleTracker thirdPartyComponentModuleTracker, ThirdPartyEventRuleCache thirdPartyEventRuleCache, TenantService tenantService, AutomationQueue automationQueue, AutomationEventEnricherService automationEventEnricherService, AutomationConfigService configService, RuleSecretService secretService)
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean
-
receive
Description copied from interface:ClusterMessageConsumerCalled by the ClusterMessagingService when there is a message waiting to be processed by a node.- Specified by:
receivein interfaceClusterMessageConsumer- Parameters:
channel- The channel the message was sent tomessage- The content of the messagesenderId- The id of the node that raised the message
-
handleTenantPropertyUpdated
-
handleTenantPropertyRemoved
-
registerRule
public void registerRule(com.codebarrel.automation.api.config.RuleConfigBean rule) - Specified by:
registerRulein interfaceEventRuleRegistry
-
unregisterRule
public void unregisterRule(long ruleId) - Specified by:
unregisterRulein interfaceEventRuleRegistry
-
handleIssueEventBundle
- Specified by:
handleIssueEventBundlein interfaceEventRuleRegistry
-
handleVersionEvent
- Specified by:
handleVersionEventin interfaceEventRuleRegistry
-
handleIssuePropertyEvent
- Specified by:
handleIssuePropertyEventin interfaceEventRuleRegistry
-
handleIssueLinkEvent
Description copied from interface:EventRuleRegistryHandle IssueLinkCreatedEvent and IssueLinkDeletedEvent. Only available from Jira 7.5+ and so passed around as an object.- Specified by:
handleIssueLinkEventin interfaceEventRuleRegistry- Parameters:
e- Must be a IssueLinkCreatedEvent or IssueLinkDeletedEvent, or the method will throw a ClassCastException.
-
handleWorkLogEvent
- Specified by:
handleWorkLogEventin interfaceEventRuleRegistry
-
handleSprintEvent
- Specified by:
handleSprintEventin interfaceEventRuleRegistry
-
handleProjectEvent
- Specified by:
handleProjectEventin interfaceEventRuleRegistry
-
unregisterAllRules
public void unregisterAllRules()- Specified by:
unregisterAllRulesin interfaceEventRuleRegistry
-
handleEventWithThirdPartyTriggers
- Specified by:
handleEventWithThirdPartyTriggersin interfaceEventRuleRegistry
-