com.atlassian.confluence.mail.notification.listeners
Class AbstractNotificationsListener
java.lang.Object
com.atlassian.confluence.mail.notification.listeners.AbstractNotificationsListener
- All Implemented Interfaces:
- com.atlassian.event.EventListener
- Direct Known Subclasses:
- AttachmentNotificationsListener, BlogPostNotificationsListener, CommentNotificationsListener, PageNotificationsListener, SpaceNotificationsListener, UserStatusNotificationsListener
public abstract class AbstractNotificationsListener
- extends Object
- implements com.atlassian.event.EventListener
Method Summary |
protected com.atlassian.mail.queue.MailQueueItem |
createNotificationTask(com.atlassian.user.User toUser,
NotificationData notificationData,
String renderedSubject,
Map contextMap)
|
protected abstract ContentEntityObject |
getContentEntityObject(Map contextMap)
Returns the content entity used for the render context. |
protected com.atlassian.renderer.RenderContext |
getRenderContext(NotificationData notificationData)
|
protected com.atlassian.user.User |
getUserWhoTriggeredEvent(com.atlassian.event.Event event,
ConfluenceEntityObject entity)
|
protected NotificationsPermissionsCheck |
makeViewEntityPermissionsCheck(Object entity)
|
protected void |
sendNetworkNotifications(com.atlassian.user.User modifier,
NotificationData notificationData)
|
protected void |
sendNotification(Notification notification,
NotificationData notificationData)
Sends a notification. |
protected void |
sendNotifications(List<Notification> spaceNotifications,
NotificationData notificationData)
Sends the notificationData to each user listed in spaceNotifications , as long as they are
permitted to see it. |
protected void |
sendPageNotifications(AbstractPage page,
NotificationData notificationData)
|
protected void |
sendSpaceNotifications(Space space,
NotificationData notificationData)
|
void |
setFormatSettingsManager(FormatSettingsManager formatSettingsManager)
|
void |
setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
|
void |
setLocaleManager(LocaleManager localeManager)
|
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 |
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
AbstractNotificationsListener
public AbstractNotificationsListener()
sendNotification
protected void sendNotification(Notification notification,
NotificationData notificationData)
- Sends a notification. Checks the permissions before sending.
getContentEntityObject
protected abstract ContentEntityObject getContentEntityObject(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,
String renderedSubject,
Map contextMap)
sendPageNotifications
protected void sendPageNotifications(AbstractPage page,
NotificationData notificationData)
sendSpaceNotifications
protected void sendSpaceNotifications(Space space,
NotificationData notificationData)
sendNetworkNotifications
protected void sendNetworkNotifications(com.atlassian.user.User modifier,
NotificationData notificationData)
sendNotifications
protected void sendNotifications(List<Notification> spaceNotifications,
NotificationData notificationData)
- Sends the notificationData to each user listed in
spaceNotifications
, as long as they are
permitted to see it.
makeViewEntityPermissionsCheck
protected NotificationsPermissionsCheck makeViewEntityPermissionsCheck(Object entity)
getUserWhoTriggeredEvent
protected com.atlassian.user.User getUserWhoTriggeredEvent(com.atlassian.event.Event event,
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)
setI18NBeanFactory
public void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
setLocaleManager
public void setLocaleManager(LocaleManager localeManager)
Copyright © 2003-2010 Atlassian. All Rights Reserved.