public class DefaultNotificationsSender extends Object implements NotificationsSender
Constructor and Description |
---|
DefaultNotificationsSender(UserAccessor userAccessor,
com.atlassian.core.task.MultiQueueTaskManager taskManager,
NotificationManager notificationManager,
Renderer viewRenderer,
PermissionManager permissionManager,
FormatSettingsManager formatSettingsManager,
com.atlassian.plugin.webresource.WebResourceManager webResourceManager,
I18NBeanFactory i18NBeanFactory,
LocaleManager localeManager,
Differ differ,
NotificationRenderManager notificationRenderManager,
DataSourceFactory dataSourceFactory,
ConfluenceAccessManager confluenceAccessManager) |
Modifier and Type | Method and Description |
---|---|
protected com.atlassian.mail.queue.MailQueueItem |
createNotificationTask(com.atlassian.user.User toUser,
NotificationData notificationData,
String renderedSubject,
NotificationContext context) |
void |
sendNetworkNotifications(NotificationData notificationData,
ConversionContext conversionContext)
Sends notifications based on users following other users.
|
void |
sendNotification(ConfluenceUser toUser,
NotificationContext context,
NotificationData notificationData,
ConversionContext conversionContext) |
void |
sendNotification(Notification notification,
NotificationData notificationData,
ConversionContext conversionContext)
Sends content-based notifications.
|
void |
sendNotification(String recipient,
NotificationContext context,
NotificationData notificationData,
ConversionContext conversionContext)
Sends a notification.
|
void |
sendNotifications(List<Notification> notifications,
NotificationData notificationData,
ConversionContext conversionContext)
Sends the notificationData to each user listed in
notifications , as long as they are
permitted to see it. |
void |
sendPageNotifications(AbstractPage page,
NotificationData notificationData,
ConversionContext conversionContext)
Sends page based notifications.
|
void |
sendSpaceNotifications(Space space,
NotificationData notificationData,
ConversionContext conversionContext)
Sends space based notifications.
|
public DefaultNotificationsSender(UserAccessor userAccessor, com.atlassian.core.task.MultiQueueTaskManager taskManager, NotificationManager notificationManager, Renderer viewRenderer, PermissionManager permissionManager, FormatSettingsManager formatSettingsManager, com.atlassian.plugin.webresource.WebResourceManager webResourceManager, I18NBeanFactory i18NBeanFactory, LocaleManager localeManager, Differ differ, NotificationRenderManager notificationRenderManager, DataSourceFactory dataSourceFactory, ConfluenceAccessManager confluenceAccessManager)
public final void sendNotification(Notification notification, NotificationData notificationData, ConversionContext conversionContext)
NotificationsSender
sendNotification
in interface NotificationsSender
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 aboutpublic final void sendNotification(String recipient, NotificationContext context, NotificationData notificationData, ConversionContext conversionContext)
sendNotification
in interface NotificationsSender
public final void sendNotification(ConfluenceUser toUser, NotificationContext context, NotificationData notificationData, ConversionContext conversionContext)
public void sendPageNotifications(AbstractPage page, NotificationData notificationData, ConversionContext conversionContext)
NotificationsSender
sendPageNotifications
in interface NotificationsSender
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 aboutpublic void sendSpaceNotifications(Space space, NotificationData notificationData, ConversionContext conversionContext)
NotificationsSender
sendSpaceNotifications
in interface NotificationsSender
space
- the space related to the notifications to be sent.public void sendNetworkNotifications(NotificationData notificationData, ConversionContext conversionContext)
NotificationsSender
sendNetworkNotifications
in interface NotificationsSender
public void sendNotifications(List<Notification> notifications, NotificationData notificationData, ConversionContext conversionContext)
NotificationsSender
notifications
, as long as they are
permitted to see it.sendNotifications
in interface NotificationsSender
protected com.atlassian.mail.queue.MailQueueItem createNotificationTask(com.atlassian.user.User toUser, NotificationData notificationData, String renderedSubject, NotificationContext context)
Copyright © 2003–2016 Atlassian. All rights reserved.