|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.mail.notification.listeners.NotificationData
public class NotificationData
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.
NotificationContext
Constructor Summary | |
---|---|
NotificationData(com.atlassian.user.User modifier,
boolean shouldNotifyOnOwnActions,
ConfluenceEntityObject permissionEntity)
|
|
NotificationData(com.atlassian.user.User modifier,
boolean shouldNotifyOnOwnActions,
ConfluenceEntityObject permissionEntity,
java.lang.String subject,
java.lang.String templateName,
java.util.Collection<javax.activation.DataSource> templateImageDataSources)
|
Method Summary | |
---|---|
void |
addAllToContext(java.util.Map<java.lang.String,java.io.Serializable> map)
|
void |
addDoNotNotifyAgain(java.lang.String userName)
|
void |
addTemplateImage(javax.activation.DataSource dataSource)
Adds a datasource to the current set of datasources for all emails. |
void |
addToContext(java.lang.String key,
java.io.Serializable value)
|
NotificationContext |
cloneContext()
Returns a copy of the common context for this Notification that can be used to populate a single email. |
NotificationContext |
cloneContextForRecipient(ConfluenceUser recipient)
Returns a copy of the common context for this Notification that can be used to populate a single email for the specified recipient. |
boolean |
doNotNotifyAgain(java.lang.String userName)
|
NotificationContext |
getCommonContext()
|
java.util.Map<java.lang.String,java.lang.Object> |
getContext()
Deprecated. since 4.3 Use getCommonContext() |
com.atlassian.user.User |
getModifier()
|
ConfluenceEntityObject |
getPermissionEntity()
User must have VIEW permission on this entity in order to receive the notification. |
java.lang.String |
getSubject()
|
java.util.ArrayList<javax.activation.DataSource> |
getTemplateImageDataSources()
Deprecated. since 4.3 Use NotificationContext.getTemplateImageDataSources() |
java.lang.String |
getTemplateName()
|
void |
setSubject(java.lang.String subject)
|
void |
setTemplateName(java.lang.String templateName)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NotificationData(com.atlassian.user.User modifier, boolean shouldNotifyOnOwnActions, ConfluenceEntityObject permissionEntity)
modifier
- user who triggered the event that led to creating a notification.public NotificationData(com.atlassian.user.User modifier, boolean shouldNotifyOnOwnActions, ConfluenceEntityObject permissionEntity, java.lang.String subject, java.lang.String templateName, java.util.Collection<javax.activation.DataSource> templateImageDataSources)
Method Detail |
---|
@Deprecated public java.util.Map<java.lang.String,java.lang.Object> getContext()
getCommonContext()
public void addToContext(java.lang.String key, java.io.Serializable value)
public void addAllToContext(java.util.Map<java.lang.String,java.io.Serializable> map)
public java.lang.String getTemplateName()
public java.lang.String getSubject()
public com.atlassian.user.User getModifier()
public void setSubject(java.lang.String subject)
public void setTemplateName(java.lang.String templateName)
public boolean doNotNotifyAgain(java.lang.String userName)
public void addDoNotNotifyAgain(java.lang.String userName)
public ConfluenceEntityObject getPermissionEntity()
public java.lang.String toString()
toString
in class java.lang.Object
public void addTemplateImage(javax.activation.DataSource dataSource)
dataSource
- the datasourceif you intend to add the
image for one notification only.
public NotificationContext cloneContext()
cloneContextForRecipient(ConfluenceUser)
if possible.
public NotificationContext cloneContextForRecipient(ConfluenceUser recipient)
public NotificationContext getCommonContext()
@Deprecated public java.util.ArrayList<javax.activation.DataSource> getTemplateImageDataSources()
NotificationContext.getTemplateImageDataSources()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |