public abstract class AbstractNotification extends Object implements Notification, Notification.HtmlImContentProvidingNotification
Notification.HtmlImContentProvidingNotification| Modifier and Type | Field and Description |
|---|---|
protected static String |
NAVIGATION_SOURCE |
| Constructor and Description |
|---|
AbstractNotification() |
| 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.
|
com.atlassian.event.Event |
getEvent()
Retrieves the event object that triggered this notification
|
Set<NotificationRecipient> |
getExcludedNotificationRecipients()
Returns the excluded recipients of this Notification
|
String |
getHtmlImContent() |
Set<NotificationRecipient> |
getNotificationRecipients()
Returns the recipients of this Notification
|
Object |
getPojoEvent()
Retrieves the event object that triggered this notification
|
RepositoryData |
getRepositoryData(RepositoryChangeset repositoryChangeset) |
RepositoryData |
getRepositoryData(RepositoryDataEntity entity) |
void |
setEvent(com.atlassian.event.Event event)
Sets the event object that triggered this notification
|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getEmailSubject, getHtmlEmailContent, getIMContent, getTextEmailContentprotected static final String NAVIGATION_SOURCE
public void setEvent(@Nullable
com.atlassian.event.Event event)
NotificationsetEvent in interface Notificationevent - Event object that triggered this notificationpublic void setEvent(@Nullable
Object event)
NotificationsetEvent in interface Notificationevent - Event object that triggered this notification@Nullable public com.atlassian.event.Event getEvent()
NotificationgetEvent in interface Notification@Nullable public Object getPojoEvent()
NotificationgetPojoEvent in interface Notification@NotNull public Set<NotificationRecipient> getNotificationRecipients()
NotificationgetNotificationRecipients in interface Notification@NotNull public Set<NotificationRecipient> getExcludedNotificationRecipients()
NotificationgetExcludedNotificationRecipients in interface Notificationpublic void setNotificationRecipients(@NotNull
Set<NotificationRecipient> recipients)
NotificationsetNotificationRecipients in interface Notificationrecipients - Set of notification recipientspublic void setExcludedNotificationRecipients(@NotNull
Set<NotificationRecipient> recipients)
NotificationsetExcludedNotificationRecipients in interface Notificationrecipients - Set of excluded notification recipientspublic void addRecipient(@NotNull
NotificationRecipient recipient)
NotificationaddRecipient in interface Notificationrecipient - Recipient to be added to notificationpublic void excludeRecipient(@NotNull
NotificationRecipient recipient)
NotificationexcludeRecipient in interface Notificationrecipient - Recipient to be excluded from notificationpublic RepositoryData getRepositoryData(@Nullable RepositoryDataEntity entity)
public RepositoryData getRepositoryData(@Nullable RepositoryChangeset repositoryChangeset)
public String getHtmlImContent()
getHtmlImContent in interface Notification.HtmlImContentProvidingNotificationpublic boolean applyDefaultCssStyles()
NotificationapplyDefaultCssStyles in interface NotificationNotificationFormatter.applyStyles(String)Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.