com.atlassian.confluence.mail.notification.listeners
Class NotificationData
java.lang.Object
com.atlassian.confluence.mail.notification.listeners.NotificationData
- All Implemented Interfaces:
- Serializable
public class NotificationData
- extends Object
- implements Serializable
Data that is related to a set of notifications about a change in the system.
This is a like a template for all the notifications that are sent for a single
event.
- See Also:
PerNotificationData
,
Serialized Form
NotificationData
public NotificationData(com.atlassian.user.User modifier,
boolean shouldNotifyOnOwnActions,
ConfluenceEntityObject permissionEntity)
- Parameters:
modifier
- user who triggered the event that led to creating a notification.
getContext
public Map<String,Serializable> getContext()
addToContext
public void addToContext(String key,
Serializable value)
addAllToContext
public void addAllToContext(Map<String,Serializable> map)
getTemplateName
public String getTemplateName()
getSubject
public String getSubject()
getModifier
public com.atlassian.user.User getModifier()
setSubject
public void setSubject(String subject)
setTemplateName
public void setTemplateName(String templateName)
doNotNotifyAgain
public boolean doNotNotifyAgain(String userName)
addDoNotNotifyAgain
public void addDoNotNotifyAgain(String userName)
getPermissionEntity
public ConfluenceEntityObject getPermissionEntity()
- User must have VIEW permission on this entity in order to receive the notification.
toString
public String toString()
- Overrides:
toString
in class Object
addTemplateImage
public void addTemplateImage(DataSource dataSource)
getTemplateImageDataSources
public ArrayList<DataSource> getTemplateImageDataSources()
Copyright © 2003-2012 Atlassian. All Rights Reserved.