public interface Notification
Modifier and Type | Interface and Description |
---|---|
static interface |
Notification.HtmlImContentProvidingNotification
Extension interface if the Notification supports HTML in IM messages.
|
Modifier and Type | Method and Description |
---|---|
void |
addRecipient(NotificationRecipient recipient)
Add a singular recipient to this notification
|
boolean |
applyDefaultCssStyles()
Determines if this notification HTML templates should be decorated with default CSS styles.
|
void |
excludeRecipient(NotificationRecipient recipient)
Exclude a singular recipient from this notification.
|
String |
getDescription()
Text describing this notification object - used for logging/debugging purposes.
|
String |
getEmailSubject()
Retrieves the subject for the notification.
|
com.atlassian.event.Event |
getEvent()
Deprecated.
since 5.6 use
getPojoEvent() |
Set<NotificationRecipient> |
getExcludedNotificationRecipients()
Returns the excluded recipients of this Notification
|
String |
getHtmlEmailContent()
Generates the html for the html part of an email notification.
|
String |
getIMContent()
Retrieves the content for the IM notification
|
Set<NotificationRecipient> |
getNotificationRecipients()
Returns the recipients of this Notification
|
Object |
getPojoEvent()
Retrieves the event object that triggered this notification
|
String |
getTextEmailContent()
Generates the text email content for the notifications
|
void |
setEvent(com.atlassian.event.Event event)
Deprecated.
since 5.6 use
setEvent(Object) |
void |
setEvent(Object event)
Sets the event object that triggered this notification
|
void |
setExcludedNotificationRecipients(Set<NotificationRecipient> recipients)
Sets the excluded recipients for this Notification
|
void |
setNotificationRecipients(Set<NotificationRecipient> recipients)
Sets the recipients for this Notification
|
@NotNull String getDescription()
@Nullable String getTextEmailContent() throws Exception
Exception
- if there is a problem preventing production of the e-mail content.@Nullable String getHtmlEmailContent() throws Exception
Exception
- if there is a problem preventing production of the e-mail content.@ExperimentalApi boolean applyDefaultCssStyles()
NotificationFormatter.applyStyles(String)
@Nullable String getEmailSubject() throws Exception
Exception
- if there is a problem preventing production of the e-mail subject.@Nullable String getIMContent()
@Deprecated void setEvent(@Nullable com.atlassian.event.Event event)
setEvent(Object)
event
- Event object that triggered this notificationvoid setEvent(@Nullable Object event)
event
- Event object that triggered this notification@Nullable @Deprecated com.atlassian.event.Event getEvent()
getPojoEvent()
@Nullable Object getPojoEvent()
@NotNull Set<NotificationRecipient> getNotificationRecipients()
@NotNull Set<NotificationRecipient> getExcludedNotificationRecipients()
void setNotificationRecipients(@NotNull Set<NotificationRecipient> recipients)
recipients
- Set of notification recipientsvoid setExcludedNotificationRecipients(@NotNull Set<NotificationRecipient> recipients)
recipients
- Set of excluded notification recipientsvoid addRecipient(@NotNull NotificationRecipient recipient)
recipient
- Recipient to be added to notificationvoid excludeRecipient(@NotNull NotificationRecipient recipient)
recipient
- Recipient to be excluded from notificationCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.