Class NotificationService

java.lang.Object
com.gooddata.sdk.service.AbstractService
com.gooddata.sdk.service.notification.NotificationService

public class NotificationService
extends AbstractService
Service to trigger and manage notifications.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.gooddata.sdk.service.AbstractService

    AbstractService.OutputStreamResponseExtractor
  • Field Summary

    Fields inherited from class com.gooddata.sdk.service.AbstractService

    mapper, restTemplate
  • Constructor Summary

    Constructors 
    Constructor Description
    NotificationService​(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)  
  • Method Summary

    Modifier and Type Method Description
    com.gooddata.sdk.model.notification.Channel createChannel​(com.gooddata.sdk.model.account.Account account, com.gooddata.sdk.model.notification.Channel channel)
    Create channel for notifications
    com.gooddata.sdk.model.notification.Subscription createSubscription​(com.gooddata.sdk.model.project.Project project, com.gooddata.sdk.model.account.Account account, com.gooddata.sdk.model.notification.Subscription subscription)
    Create subscription for notifications
    void removeChannel​(com.gooddata.sdk.model.notification.Channel channel)
    Remove channel
    void removeSubscription​(com.gooddata.sdk.model.notification.Subscription subscription)
    Remove subscription
    void triggerEvent​(com.gooddata.sdk.model.project.Project project, com.gooddata.sdk.model.notification.ProjectEvent event)
    Triggers given project event.

    Methods inherited from class com.gooddata.sdk.service.AbstractService

    extractData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • triggerEvent

      public void triggerEvent​(com.gooddata.sdk.model.project.Project project, com.gooddata.sdk.model.notification.ProjectEvent event)
      Triggers given project event.
      Parameters:
      project - project of the event
      event - event to trigger
    • createChannel

      public com.gooddata.sdk.model.notification.Channel createChannel​(com.gooddata.sdk.model.account.Account account, com.gooddata.sdk.model.notification.Channel channel)
      Create channel for notifications
      Parameters:
      account - to create notifications on
      channel - configuration of channel
      Returns:
      created channel
    • removeChannel

      public void removeChannel​(com.gooddata.sdk.model.notification.Channel channel)
      Remove channel
      Parameters:
      channel - to delete
    • createSubscription

      public com.gooddata.sdk.model.notification.Subscription createSubscription​(com.gooddata.sdk.model.project.Project project, com.gooddata.sdk.model.account.Account account, com.gooddata.sdk.model.notification.Subscription subscription)
      Create subscription for notifications
      Parameters:
      project - to create subscription on
      account - to create subscription for
      subscription - to create
      Returns:
      created subscription
    • removeSubscription

      public void removeSubscription​(com.gooddata.sdk.model.notification.Subscription subscription)
      Remove subscription
      Parameters:
      subscription - to delete