public class NotificationService extends AbstractService
AbstractService.OutputStreamResponseExtractormapper, restTemplate| Constructor and Description |
|---|
NotificationService(org.springframework.web.client.RestTemplate restTemplate)
Deprecated.
use NotificationService(RestTemplate, GoodDataSettings) constructor instead
|
NotificationService(org.springframework.web.client.RestTemplate restTemplate,
GoodDataSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
Channel |
createChannel(Account account,
Channel channel)
Create channel for notifications
|
Subscription |
createSubscription(Project project,
Account account,
Subscription subscription)
Create subscription for notifications
|
void |
removeChannel(Channel channel)
Remove channel
|
void |
removeSubscription(Subscription subscription)
Remove subscription
|
void |
triggerEvent(Project project,
ProjectEvent event)
Triggers given project event.
|
extractDatapublic NotificationService(org.springframework.web.client.RestTemplate restTemplate,
GoodDataSettings settings)
@Deprecated public NotificationService(org.springframework.web.client.RestTemplate restTemplate)
public void triggerEvent(Project project, ProjectEvent event)
project - project of the eventevent - event to triggerpublic Channel createChannel(Account account, Channel channel)
account - to create notifications onchannel - configuration of channelpublic void removeChannel(Channel channel)
channel - to deletepublic Subscription createSubscription(Project project, Account account, Subscription subscription)
project - to create subscription onaccount - to create subscription forsubscription - to createpublic void removeSubscription(Subscription subscription)
subscription - to deleteCopyright © 2019. All rights reserved.