Class AbstractNotificationsListener<T extends com.atlassian.event.Event>

  • 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 Detail

      • userAccessor

        protected UserAccessor userAccessor
        Deprecated.
      • taskManager

        protected com.atlassian.core.task.MultiQueueTaskManager taskManager
        Deprecated.
      • viewRenderer

        protected Renderer viewRenderer
        Deprecated.
    • Constructor Detail

      • AbstractNotificationsListener

        public AbstractNotificationsListener()
        Deprecated.
    • Method Detail

      • handleEvent

        public void handleEvent​(com.atlassian.event.Event event)
        Deprecated.
        Specified by:
        handleEvent in interface com.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 sent
        notificationData - 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 in notifications, as long as they are permitted to see it.
      • 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.