Class DefaultNotificationsSender
java.lang.Object
com.atlassian.confluence.mail.notification.DefaultNotificationsSender
- All Implemented Interfaces:
NotificationsSender
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultNotificationsSender(UserAccessor userAccessor, com.atlassian.core.task.MultiQueueTaskManager taskManager, NotificationManager notificationManager, Renderer viewRenderer, PermissionManager permissionManager, FormatSettingsManager formatSettingsManager, com.atlassian.webresource.api.WebResourceManager webResourceManager, I18NBeanFactory i18NBeanFactory, LocaleManager localeManager, Differ differ, NotificationRenderManager notificationRenderManager, DataSourceFactory dataSourceFactory, ConfluenceAccessManager confluenceAccessManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.atlassian.core.task.TaskcreateNotificationTask(com.atlassian.user.User toUser, NotificationData notificationData, String renderedSubject, NotificationContext context) voidsendNetworkNotifications(NotificationData notificationData, ConversionContext conversionContext) Sends notifications based on users following other users.final voidsendNotification(Notification notification, NotificationData notificationData, ConversionContext conversionContext) Sends content-based notifications.final voidsendNotification(ConfluenceUser toUser, NotificationContext context, NotificationData notificationData, ConversionContext conversionContext) final 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.
-
Constructor Details
-
DefaultNotificationsSender
public DefaultNotificationsSender(UserAccessor userAccessor, com.atlassian.core.task.MultiQueueTaskManager taskManager, NotificationManager notificationManager, Renderer viewRenderer, PermissionManager permissionManager, FormatSettingsManager formatSettingsManager, com.atlassian.webresource.api.WebResourceManager webResourceManager, I18NBeanFactory i18NBeanFactory, LocaleManager localeManager, Differ differ, NotificationRenderManager notificationRenderManager, DataSourceFactory dataSourceFactory, ConfluenceAccessManager confluenceAccessManager)
-
-
Method Details
-
sendNotification
public final void sendNotification(Notification notification, NotificationData notificationData, ConversionContext conversionContext) Description copied from interface:NotificationsSenderSends content-based notifications. Generates link to stop watching a notification and adds a link to manage content notification settings- Specified by:
sendNotificationin interfaceNotificationsSender- 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
public final void sendNotification(String recipient, NotificationContext context, NotificationData notificationData, ConversionContext conversionContext) Sends a notification. Checks the permissions before sending.- Specified by:
sendNotificationin interfaceNotificationsSender
-
sendNotification
public final void sendNotification(ConfluenceUser toUser, NotificationContext context, NotificationData notificationData, ConversionContext conversionContext) -
sendPageNotifications
public void sendPageNotifications(AbstractPage page, NotificationData notificationData, ConversionContext conversionContext) Description copied from interface:NotificationsSenderSends page based notifications.- Specified by:
sendPageNotificationsin interfaceNotificationsSender- 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
public void sendSpaceNotifications(Space space, NotificationData notificationData, ConversionContext conversionContext) Description copied from interface:NotificationsSenderSends space based notifications.- Specified by:
sendSpaceNotificationsin interfaceNotificationsSender- Parameters:
space- the space related to the notifications to be sent.
-
sendNetworkNotifications
public void sendNetworkNotifications(NotificationData notificationData, ConversionContext conversionContext) Description copied from interface:NotificationsSenderSends notifications based on users following other users.- Specified by:
sendNetworkNotificationsin interfaceNotificationsSender
-
sendNotifications
public void sendNotifications(List<Notification> notifications, NotificationData notificationData, ConversionContext conversionContext) Description copied from interface:NotificationsSenderSends the notificationData to each user listed innotifications, as long as they are permitted to see it.- Specified by:
sendNotificationsin interfaceNotificationsSender
-
createNotificationTask
protected com.atlassian.core.task.Task createNotificationTask(com.atlassian.user.User toUser, NotificationData notificationData, String renderedSubject, NotificationContext context)
-