public abstract class

AbstractNotificationsListener

extends Object
implements EventListener
java.lang.Object
   ↳ com.atlassian.confluence.mail.notification.listeners.AbstractNotificationsListener
Known Direct Subclasses

Summary

Fields
protected DataSourceFactory dataSourceFactory
protected NotificationManager notificationManager
protected MultiQueueTaskManager taskManager
protected UserAccessor userAccessor
protected Renderer viewRenderer
Public Constructors
AbstractNotificationsListener()
Public Methods
void setDataSourceFactory(DataSourceFactory dataSourceFactory)
void setFormatSettingsManager(FormatSettingsManager formatSettingsManager)
void setHtmlDiffer(Differ differ)
void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
void setLocaleManager(LocaleManager localeManager)
void setNotificationManager(NotificationManager notificationManager)
void setPermissionManagerTarget(DefaultPermissionManager permissionManager)
void setTaskManager(MultiQueueTaskManager taskManager)
void setUserAccessor(UserAccessor userAccessor)
void setViewRenderer(Renderer renderer)
void setWebResourceManager(WebResourceManager webResourceManager)
Protected Methods
void attachAvatar(NotificationData notificationData)
MailQueueItem createNotificationTask(User toUser, NotificationData notificationData, String renderedSubject, Map contextMap)
abstract ContentEntityObject getContentEntityObject(Map contextMap)
Returns the content entity used for the render context.
ConversionContext getConversionContext(NotificationData notificationData)
final NotificationData getNotificationDataForEvent(Event event, ConfluenceEntityObject entity)
void sendNetworkNotifications(NotificationData notificationData)
final void sendNotification(String recipient, PerNotificationData perNotificationData, NotificationData notificationData)
Sends a notification.
final void sendNotification(Notification notification, NotificationData notificationData)
Sends content-based notifications.
void sendNotifications(List<Notification> notifications, NotificationData notificationData)
Sends the notificationData to each user listed in notifications, as long as they are permitted to see it.
void sendPageNotifications(AbstractPage page, NotificationData notificationData)
void sendSpaceNotifications(Space space, NotificationData notificationData)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.event.EventListener

Fields

protected DataSourceFactory dataSourceFactory

protected NotificationManager notificationManager

protected MultiQueueTaskManager taskManager

protected UserAccessor userAccessor

protected Renderer viewRenderer

Public Constructors

public AbstractNotificationsListener ()

Public Methods

public void setDataSourceFactory (DataSourceFactory dataSourceFactory)

public void setFormatSettingsManager (FormatSettingsManager formatSettingsManager)

public void setHtmlDiffer (Differ differ)

public void setI18NBeanFactory (I18NBeanFactory i18NBeanFactory)

public void setLocaleManager (LocaleManager localeManager)

public void setNotificationManager (NotificationManager notificationManager)

public void setPermissionManagerTarget (DefaultPermissionManager permissionManager)

public void setTaskManager (MultiQueueTaskManager taskManager)

public void setUserAccessor (UserAccessor userAccessor)

public void setViewRenderer (Renderer renderer)

public void setWebResourceManager (WebResourceManager webResourceManager)

Protected Methods

protected void attachAvatar (NotificationData notificationData)

protected MailQueueItem createNotificationTask (User toUser, NotificationData notificationData, String renderedSubject, Map contextMap)

protected abstract ContentEntityObject getContentEntityObject (Map contextMap)

Returns the content entity used for the render context.

protected ConversionContext getConversionContext (NotificationData notificationData)

protected final NotificationData getNotificationDataForEvent (Event event, ConfluenceEntityObject entity)

protected void sendNetworkNotifications (NotificationData notificationData)

protected final void sendNotification (String recipient, PerNotificationData perNotificationData, NotificationData notificationData)

Sends a notification. Checks the permissions before sending.

protected final void sendNotification (Notification notification, NotificationData notificationData)

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 sent
notificationData data for rendering the email

protected void sendNotifications (List<Notification> notifications, NotificationData notificationData)

Sends the notificationData to each user listed in notifications, as long as they are permitted to see it.

protected void sendPageNotifications (AbstractPage page, NotificationData notificationData)

protected void sendSpaceNotifications (Space space, NotificationData notificationData)