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(@NotNull 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(@NotNull NotificationRecipient recipient)
Exclude a singular recipient from this notification.
|
@NotNull String |
getDescription()
Text describing this notification object - used for logging/debugging purposes.
|
@Nullable String |
getEmailSubject()
Retrieves the subject for the notification.
|
@Nullable com.atlassian.event.Event |
getEvent()
Deprecated.
since 5.6 use
getPojoEvent() |
@NotNull Set<NotificationRecipient> |
getExcludedNotificationRecipients()
Returns the excluded recipients of this Notification
|
@Nullable String |
getHtmlEmailContent()
Generates the html for the html part of an email notification.
|
@Nullable String |
getIMContent()
Retrieves the content for the IM notification
|
@NotNull Set<NotificationRecipient> |
getNotificationRecipients()
Returns the recipients of this Notification
|
@Nullable Object |
getPojoEvent()
Retrieves the event object that triggered this notification
|
@Nullable String |
getTextEmailContent()
Generates the text email content for the notifications
|
void |
setEvent(@Nullable com.atlassian.event.Event event)
Deprecated.
since 5.6 use
setEvent(Object) |
void |
setEvent(@Nullable Object event)
Sets the event object that triggered this notification
|
void |
setExcludedNotificationRecipients(@NotNull Set<NotificationRecipient> recipients)
Sets the excluded recipients for this Notification
|
void |
setNotificationRecipients(@NotNull Set<NotificationRecipient> recipients)
Sets the recipients for this Notification
|
@NotNull @NotNull String getDescription()
@Nullable @Nullable String getTextEmailContent() throws Exception
Exception - if there is a problem preventing production of the e-mail content.@Nullable @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 @Nullable String getEmailSubject() throws Exception
Exception - if there is a problem preventing production of the e-mail subject.@Nullable @Nullable String getIMContent()
@Deprecated void setEvent(@Nullable @Nullable com.atlassian.event.Event event)
setEvent(Object)event - Event object that triggered this notificationvoid setEvent(@Nullable
@Nullable Object event)
event - Event object that triggered this notification@Nullable @Deprecated @Nullable com.atlassian.event.Event getEvent()
getPojoEvent()@Nullable @Nullable Object getPojoEvent()
@NotNull @NotNull Set<NotificationRecipient> getNotificationRecipients()
@NotNull @NotNull Set<NotificationRecipient> getExcludedNotificationRecipients()
void setNotificationRecipients(@NotNull
@NotNull Set<NotificationRecipient> recipients)
recipients - Set of notification recipientsvoid setExcludedNotificationRecipients(@NotNull
@NotNull Set<NotificationRecipient> recipients)
recipients - Set of excluded notification recipientsvoid addRecipient(@NotNull
@NotNull NotificationRecipient recipient)
recipient - Recipient to be added to notificationvoid excludeRecipient(@NotNull
@NotNull NotificationRecipient recipient)
recipient - Recipient to be excluded from notificationCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.