Class NotificationService
java.lang.Object
com.gooddata.sdk.service.AbstractService
com.gooddata.sdk.service.notification.NotificationService
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
ConstructorsConstructorDescriptionNotificationService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings) -
Method Summary
Modifier and TypeMethodDescriptioncreateChannel(Account account, Channel channel) Create channel for notificationscreateSubscription(Project project, Account account, Subscription subscription) Create subscription for notificationsvoidremoveChannel(Channel channel) Remove channelvoidremoveSubscription(Subscription subscription) Remove subscriptionvoidtriggerEvent(Project project, ProjectEvent event) Triggers given project event.Methods inherited from class com.gooddata.sdk.service.AbstractService
extractData
-
Constructor Details
-
NotificationService
public NotificationService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)
-
-
Method Details
-
triggerEvent
Triggers given project event.- Parameters:
project- project of the eventevent- event to trigger
-
createChannel
Create channel for notifications- Parameters:
account- to create notifications onchannel- configuration of channel- Returns:
- created channel
-
removeChannel
Remove channel- Parameters:
channel- to delete
-
createSubscription
Create subscription for notifications- Parameters:
project- to create subscription onaccount- to create subscription forsubscription- to create- Returns:
- created subscription
-
removeSubscription
Remove subscription- Parameters:
subscription- to delete
-