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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.gooddata.sdk.model.notification.ChannelcreateChannel(com.gooddata.sdk.model.account.Account account, com.gooddata.sdk.model.notification.Channel channel)Create channel for notificationscom.gooddata.sdk.model.notification.SubscriptioncreateSubscription(com.gooddata.sdk.model.project.Project project, com.gooddata.sdk.model.account.Account account, com.gooddata.sdk.model.notification.Subscription subscription)Create subscription for notificationsvoidremoveChannel(com.gooddata.sdk.model.notification.Channel channel)Remove channelvoidremoveSubscription(com.gooddata.sdk.model.notification.Subscription subscription)Remove subscriptionvoidtriggerEvent(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
-
-
-
-
Constructor Detail
-
NotificationService
public NotificationService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)
-
-
Method Detail
-
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 eventevent- 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 onchannel- 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 onaccount- to create subscription forsubscription- to create- Returns:
- created subscription
-
removeSubscription
public void removeSubscription(com.gooddata.sdk.model.notification.Subscription subscription)
Remove subscription- Parameters:
subscription- to delete
-
-