Interface NotificationsSender
- All Known Implementing Classes:
DefaultNotificationsSender
public interface NotificationsSender
-
Method Summary
Modifier and TypeMethodDescriptionvoidsendNetworkNotifications(NotificationData notificationData, ConversionContext conversionContext) Sends notifications based on users following other users.voidsendNotification(Notification notification, NotificationData notificationData, ConversionContext conversionContext) Sends content-based notifications.voidsendNotification(String recipient, NotificationContext context, NotificationData notificationData, ConversionContext conversionContext) Sends a notification.voidsendNotifications(List<Notification> notifications, NotificationData notificationData, ConversionContext conversionContext) Sends the notificationData to each user listed innotifications, as long as they are permitted to see it.voidsendPageNotifications(AbstractPage page, NotificationData notificationData, ConversionContext conversionContext) Sends page based notifications.voidsendSpaceNotifications(Space space, NotificationData notificationData, ConversionContext conversionContext) Sends space based notifications.
-
Method Details
-
sendNotification
void sendNotification(Notification notification, NotificationData notificationData, ConversionContext conversionContext) Sends content-based notifications. Generates link to stop watching a notification and adds a link to manage content notification settings- Parameters:
notification- the watch that triggered the notification being sentnotificationData- data for rendering the emailconversionContext- conversionContext specific to the type of entity the email is being sent about
-
sendNotification
void sendNotification(String recipient, NotificationContext context, NotificationData notificationData, ConversionContext conversionContext) Sends a notification. Checks the permissions before sending. -
sendPageNotifications
void sendPageNotifications(AbstractPage page, NotificationData notificationData, ConversionContext conversionContext) Sends page based notifications.- Parameters:
page- the page related to the notifications to be sent.notificationData- data for rendering the emailconversionContext- conversionContext specific to the type of entity the email is being sent about
-
sendSpaceNotifications
void sendSpaceNotifications(Space space, NotificationData notificationData, ConversionContext conversionContext) Sends space based notifications.- Parameters:
space- the space related to the notifications to be sent.
-
sendNetworkNotifications
void sendNetworkNotifications(NotificationData notificationData, ConversionContext conversionContext) Sends notifications based on users following other users. -
sendNotifications
void sendNotifications(List<Notification> notifications, NotificationData notificationData, ConversionContext conversionContext) Sends the notificationData to each user listed innotifications, as long as they are permitted to see it.
-