|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.plugin.descriptor.mail.NotificationContext
public class NotificationContext
Contains data about an email Notification that is specific to a single Email sent to a single User.
Field Summary | |
---|---|
static java.lang.String |
WEB_FRAGMENT_INNER_CONTEXT
|
Constructor Summary | |
---|---|
NotificationContext()
|
|
NotificationContext(NotificationContext context)
|
|
NotificationContext(NotificationContext context,
java.util.Set<javax.activation.DataSource> dataSources)
|
Method Summary | |
---|---|
void |
addTemplateImage(javax.activation.DataSource dataSource)
Adds a datasource to the current set of datasources for 1 instance of notification. |
void |
addToWebFragmentContext(java.lang.String key,
java.lang.String value)
Adds a key/value pair to the Web-Fragment context. |
void |
addWebFragmentContext()
Copies the current state of this context and stores it in a sub-map. |
java.lang.Object |
get(java.lang.String key)
|
java.lang.String |
getAction()
|
com.atlassian.user.User |
getActor()
|
ConfluenceEntityObject |
getContent()
Return the context's Content. |
com.atlassian.event.Event |
getEvent()
|
java.util.Map<java.lang.String,java.lang.Object> |
getMap()
Returns a map for the renderer. |
com.atlassian.user.User |
getRecipient()
|
java.util.Collection<javax.activation.DataSource> |
getTemplateImageDataSources()
|
Notification.WatchType |
getWatchType()
|
boolean |
isManageNotificationOverridden()
|
void |
put(java.lang.String key,
java.lang.Object value)
|
void |
putAll(java.util.Map<? extends java.lang.String,?> map)
|
void |
setAction(java.lang.String action)
The type of action (e.g. |
void |
setActor(com.atlassian.user.User actor)
Sets the user that performed the action that caused the notification to be sent. |
void |
setContent(ConfluenceEntityObject entity)
Sets the entity that the notification is being sent regarding. |
void |
setEvent(com.atlassian.event.Event event)
|
void |
setI18n(I18NBean i18NBean)
|
void |
setManageNotificationOverridden(boolean isOverridden)
|
void |
setRecipient(com.atlassian.user.User recipient)
Sets the recipient for a notification. |
void |
setSpace(Space space)
|
void |
setWatchType(Notification.WatchType watchType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String WEB_FRAGMENT_INNER_CONTEXT
Constructor Detail |
---|
public NotificationContext()
public NotificationContext(NotificationContext context)
public NotificationContext(NotificationContext context, java.util.Set<javax.activation.DataSource> dataSources)
Method Detail |
---|
public java.util.Map<java.lang.String,java.lang.Object> getMap()
public java.lang.Object get(java.lang.String key)
public void put(java.lang.String key, java.lang.Object value)
public void putAll(java.util.Map<? extends java.lang.String,?> map)
public ConfluenceEntityObject getContent()
public void setContent(ConfluenceEntityObject entity)
NotificationData
object.
public com.atlassian.event.Event getEvent()
public void setEvent(com.atlassian.event.Event event)
public boolean isManageNotificationOverridden()
public void setManageNotificationOverridden(boolean isOverridden)
public Notification.WatchType getWatchType()
public void setWatchType(Notification.WatchType watchType)
public void setSpace(Space space)
public void setRecipient(com.atlassian.user.User recipient)
NotificationData
object.
public com.atlassian.user.User getRecipient()
public void setActor(com.atlassian.user.User actor)
NotificationData
object.
public com.atlassian.user.User getActor()
public void setAction(java.lang.String action)
NotificationData
object.
action
- public java.lang.String getAction()
public void setI18n(I18NBean i18NBean)
public void addTemplateImage(javax.activation.DataSource dataSource)
dataSource
- the datasource for the image.if you intend to
add the image to all notification.
public java.util.Collection<javax.activation.DataSource> getTemplateImageDataSources()
public void addWebFragmentContext()
NotificationData.cloneContext()
as soon as
the Recipient user is added.
public void addToWebFragmentContext(java.lang.String key, java.lang.String value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |