Class AbstractNotificationsListener<T extends com.atlassian.event.Event>
- java.lang.Object
-
- com.atlassian.confluence.mail.notification.listeners.AbstractNotificationsListener<T>
-
- All Implemented Interfaces:
com.atlassian.event.EventListener
- Direct Known Subclasses:
UserSignUpNotificationsListener
@Deprecated public abstract class AbstractNotificationsListener<T extends com.atlassian.event.Event> extends Object implements com.atlassian.event.EventListener
Deprecated.sinace 7.6.0, use confluence-notifications-api instead
-
-
Field Summary
Fields Modifier and Type Field Description protected DataSourceFactory
dataSourceFactory
Deprecated.protected NotificationManager
notificationManager
Deprecated.protected NotificationsSender
notificationsSender
Deprecated.protected com.atlassian.core.task.MultiQueueTaskManager
taskManager
Deprecated.protected UserAccessor
userAccessor
Deprecated.protected Renderer
viewRenderer
Deprecated.
-
Constructor Summary
Constructors Constructor Description AbstractNotificationsListener()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
attachAvatar(NotificationData notificationData)
Deprecated.protected abstract ContentEntityObject
getContentEntityObject(Map contextMap)
Deprecated.Returns the content entity used for the render context.protected ConversionContext
getConversionContext(NotificationData notificationData)
Deprecated.protected NotificationData
getNotificationDataForEvent(com.atlassian.event.Event event, ConfluenceEntityObject entity)
Deprecated.void
handleEvent(com.atlassian.event.Event event)
Deprecated.protected abstract void
processNotifications(T event)
Deprecated.Generates the notifications associated with an event.protected void
sendNotification(Notification notification, NotificationData notificationData)
Deprecated.Sends content-based notifications.protected void
sendNotification(String recipient, NotificationContext context, NotificationData notificationData)
Deprecated.Sends a notification.protected void
sendNotifications(List<Notification> notifications, NotificationData notificationData)
Deprecated.Sends the notificationData to each user listed innotifications
, as long as they are permitted to see it.void
setDataSourceFactory(DataSourceFactory dataSourceFactory)
Deprecated.void
setNotificationManager(NotificationManager notificationManager)
Deprecated.void
setNotificationsSender(NotificationsSender notificationsSender)
Deprecated.void
setTaskManager(com.atlassian.core.task.MultiQueueTaskManager taskManager)
Deprecated.void
setUserAccessor(UserAccessor userAccessor)
Deprecated.void
setViewRenderer(Renderer renderer)
Deprecated.
-
-
-
Field Detail
-
userAccessor
protected UserAccessor userAccessor
Deprecated.
-
taskManager
protected com.atlassian.core.task.MultiQueueTaskManager taskManager
Deprecated.
-
notificationManager
protected NotificationManager notificationManager
Deprecated.
-
viewRenderer
protected Renderer viewRenderer
Deprecated.
-
dataSourceFactory
protected DataSourceFactory dataSourceFactory
Deprecated.
-
notificationsSender
protected NotificationsSender notificationsSender
Deprecated.
-
-
Method Detail
-
handleEvent
public void handleEvent(com.atlassian.event.Event event)
Deprecated.- Specified by:
handleEvent
in interfacecom.atlassian.event.EventListener
-
processNotifications
protected abstract void processNotifications(T event)
Deprecated.Generates the notifications associated with an event. This method should never be run if the Event is a ContentEvent with suppressNotifications set to true.
-
sendNotification
protected final void sendNotification(Notification notification, NotificationData notificationData)
Deprecated.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 email
-
sendNotification
protected final void sendNotification(String recipient, NotificationContext context, NotificationData notificationData)
Deprecated.Sends a notification. Checks the permissions before sending.- Parameters:
notificationData
- the data template for all emails. Should not be modified.
-
attachAvatar
protected void attachAvatar(NotificationData notificationData)
Deprecated.
-
getContentEntityObject
protected abstract ContentEntityObject getContentEntityObject(Map contextMap)
Deprecated.Returns the content entity used for the render context.
-
sendNotifications
protected void sendNotifications(List<Notification> notifications, NotificationData notificationData)
Deprecated.Sends the notificationData to each user listed innotifications
, as long as they are permitted to see it.
-
getNotificationDataForEvent
protected final NotificationData getNotificationDataForEvent(com.atlassian.event.Event event, ConfluenceEntityObject entity)
Deprecated.
-
getConversionContext
protected ConversionContext getConversionContext(NotificationData notificationData)
Deprecated.
-
setNotificationManager
public void setNotificationManager(NotificationManager notificationManager)
Deprecated.
-
setUserAccessor
public void setUserAccessor(UserAccessor userAccessor)
Deprecated.
-
setTaskManager
public void setTaskManager(com.atlassian.core.task.MultiQueueTaskManager taskManager)
Deprecated.
-
setViewRenderer
public void setViewRenderer(Renderer renderer)
Deprecated.
-
setDataSourceFactory
public void setDataSourceFactory(DataSourceFactory dataSourceFactory)
Deprecated.
-
setNotificationsSender
public void setNotificationsSender(NotificationsSender notificationsSender)
Deprecated.
-
-