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 Details

    • NoopAutomationNotificationService

      public NoopAutomationNotificationService()
  • Method Details

    • getTopic

      public String getTopic(String s, NotificationEntityType notificationEntityType, String s1)
      Description copied from interface: AutomationNotificationService
      The topic that clients can subscribe to and updates will be published to.
      Specified by:
      getTopic in interface AutomationNotificationService
      Parameters:
      s - The tenant to which the update should be published
      notificationEntityType - the type of entity that was updated
      s1 - the id of the entity that was updated
      Returns:
      a topic that can be subscribed or published to
    • getWebSocketUrl

      public String getWebSocketUrl(Environment environment)
      Description copied from interface: AutomationNotificationService
      Returns a websocket url that clients can use to subscribe to a topic. This should include signing parameters for security if necessary
      Specified by:
      getWebSocketUrl in interface AutomationNotificationService
      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: AutomationNotificationService
      Publishes an update (itemId is a unique identifier for the update) to all provided entity ids.
      Specified by:
      publishUpdates in interface AutomationNotificationService
      Parameters:
      tenantContext - The tenant to publish the update to
      aLong - a unique identifier for the update
      notificationEntityType - the entity type that was updated
      set - all entity ids that were updated