Class NoopAutomationNotificationService
java.lang.Object
com.codebarrel.jira.plugin.automation.service.NoopAutomationNotificationService
- All Implemented Interfaces:
AutomationNotificationService
@Component
public class NoopAutomationNotificationService
extends Object
implements AutomationNotificationService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTopic(String s, NotificationEntityType notificationEntityType, String s1) The topic that clients can subscribe to and updates will be published to.getWebSocketUrl(Environment environment) Returns a websocket url that clients can use to subscribe to a topic.voidpublishUpdates(TenantContext tenantContext, Long aLong, NotificationEntityType notificationEntityType, Set<String> set) Publishes an update (itemId is a unique identifier for the update) to all provided entity ids.
-
Constructor Details
-
NoopAutomationNotificationService
public NoopAutomationNotificationService()
-
-
Method Details
-
getTopic
Description copied from interface:AutomationNotificationServiceThe topic that clients can subscribe to and updates will be published to.- Specified by:
getTopicin interfaceAutomationNotificationService- Parameters:
s- The tenant to which the update should be publishednotificationEntityType- the type of entity that was updateds1- the id of the entity that was updated- Returns:
- a topic that can be subscribed or published to
-
getWebSocketUrl
Description copied from interface:AutomationNotificationServiceReturns a websocket url that clients can use to subscribe to a topic. This should include signing parameters for security if necessary- Specified by:
getWebSocketUrlin interfaceAutomationNotificationService- Parameters:
environment- the environment for which to get the url- Returns:
- a websocket url starting with wss://
-
publishUpdates
public void publishUpdates(TenantContext tenantContext, Long aLong, NotificationEntityType notificationEntityType, Set<String> set) Description copied from interface:AutomationNotificationServicePublishes an update (itemId is a unique identifier for the update) to all provided entity ids.- Specified by:
publishUpdatesin interfaceAutomationNotificationService- Parameters:
tenantContext- The tenant to publish the update toaLong- a unique identifier for the updatenotificationEntityType- the entity type that was updatedset- all entity ids that were updated
-