com.atlassian.confluence.mail.notification.listeners
Class AbstractNotificationsListener

java.lang.Object
  extended by com.atlassian.confluence.mail.notification.listeners.AbstractNotificationsListener
All Implemented Interfaces:
com.atlassian.event.EventListener
Direct Known Subclasses:
AttachmentNotificationsListener, BlogPostNotificationsListener, CommentNotificationsListener, PageNotificationsListener, SpaceNotificationsListener

public abstract class AbstractNotificationsListener
extends java.lang.Object
implements com.atlassian.event.EventListener


Field Summary
protected  NotificationManager notificationManager
           
protected  PermissionManager permissionManager
           
protected  com.atlassian.core.task.MultiQueueTaskManager taskManager
           
protected  UserAccessor userAccessor
           
protected  com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer
           
 
Constructor Summary
AbstractNotificationsListener()
           
 
Method Summary
protected  com.atlassian.mail.queue.MailQueueItem createNotificationTask(com.atlassian.user.User toUser, NotificationData notificationData, java.lang.String renderedSubject, java.util.Map contextMap)
           
protected abstract  ContentEntityObject getContentEntityObject(java.util.Map contextMap)
          Returns the content entity used for the render context.
protected  com.atlassian.user.User getLastModifier(ConfluenceEntityObject entity)
           
protected  com.atlassian.renderer.RenderContext getRenderContext(NotificationData notificationData)
           
protected  NotificationsPermissionsCheck makeViewEntityPermissionsCheck(java.lang.Object entity)
           
protected  void sendNotification(Notification notification, NotificationData notificationData)
           
protected  void sendNotifications(java.util.List spaceNotifications, NotificationData notificationData)
           
protected  void sendPageNotifications(AbstractPage page, NotificationData notificationData)
           
protected  void sendSpaceNotifications(Space space, NotificationData notificationData)
           
 void setFormatSettingsManager(FormatSettingsManager formatSettingsManager)
           
 void setNotificationManager(NotificationManager notificationManager)
           
 void setPermissionManager(PermissionManager permissionManager)
           
 void setTaskManager(com.atlassian.core.task.MultiQueueTaskManager taskManager)
           
 void setUserAccessor(UserAccessor userAccessor)
           
 void setWebResourceManager(com.atlassian.plugin.webresource.WebResourceManager webResourceManager)
           
 void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.event.EventListener
getHandledEventClasses, handleEvent
 

Field Detail

userAccessor

protected UserAccessor userAccessor

taskManager

protected com.atlassian.core.task.MultiQueueTaskManager taskManager

notificationManager

protected NotificationManager notificationManager

permissionManager

protected PermissionManager permissionManager

wikiStyleRenderer

protected com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer
Constructor Detail

AbstractNotificationsListener

public AbstractNotificationsListener()
Method Detail

sendNotification

protected void sendNotification(Notification notification,
                                NotificationData notificationData)

getContentEntityObject

protected abstract ContentEntityObject getContentEntityObject(java.util.Map contextMap)
Returns the content entity used for the render context.


getRenderContext

protected com.atlassian.renderer.RenderContext getRenderContext(NotificationData notificationData)

createNotificationTask

protected com.atlassian.mail.queue.MailQueueItem createNotificationTask(com.atlassian.user.User toUser,
                                                                        NotificationData notificationData,
                                                                        java.lang.String renderedSubject,
                                                                        java.util.Map contextMap)

sendPageNotifications

protected void sendPageNotifications(AbstractPage page,
                                     NotificationData notificationData)

sendSpaceNotifications

protected void sendSpaceNotifications(Space space,
                                      NotificationData notificationData)

sendNotifications

protected void sendNotifications(java.util.List spaceNotifications,
                                 NotificationData notificationData)

makeViewEntityPermissionsCheck

protected NotificationsPermissionsCheck makeViewEntityPermissionsCheck(java.lang.Object entity)

getLastModifier

protected com.atlassian.user.User getLastModifier(ConfluenceEntityObject entity)

setPermissionManager

public void setPermissionManager(PermissionManager permissionManager)

setNotificationManager

public void setNotificationManager(NotificationManager notificationManager)

setUserAccessor

public void setUserAccessor(UserAccessor userAccessor)

setTaskManager

public void setTaskManager(com.atlassian.core.task.MultiQueueTaskManager taskManager)

setWikiStyleRenderer

public void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)

setFormatSettingsManager

public void setFormatSettingsManager(FormatSettingsManager formatSettingsManager)

setWebResourceManager

public void setWebResourceManager(com.atlassian.plugin.webresource.WebResourceManager webResourceManager)


Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.