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.
|
protected String |
getCommitUrl(RepositoryDataEntity repositoryDataEntity,
String revision,
ImmutablePlan plan,
CustomVariableContext customVariableContext,
RepositoryDefinitionManager repositoryDefinitionManager,
VcsRepositoryViewerManager vcsRepositoryViewerManager) |
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)
Deprecated.
since 6.4 old repository interface
|
RepositoryData |
getRepositoryData(RepositoryDataEntity entity)
Deprecated.
since 6.4 old repository interface
|
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, wait
getDescription, getEmailSubject, getHtmlEmailContent, getIMContent, getTextEmailContent
protected static final String NAVIGATION_SOURCE
public void setEvent(@Nullable com.atlassian.event.Event event)
Notification
setEvent
in interface Notification
event
- Event object that triggered this notificationpublic void setEvent(@Nullable Object event)
Notification
setEvent
in interface Notification
event
- Event object that triggered this notification@Nullable public com.atlassian.event.Event getEvent()
Notification
getEvent
in interface Notification
@Nullable public Object getPojoEvent()
Notification
getPojoEvent
in interface Notification
@NotNull public Set<NotificationRecipient> getNotificationRecipients()
Notification
getNotificationRecipients
in interface Notification
@NotNull public Set<NotificationRecipient> getExcludedNotificationRecipients()
Notification
getExcludedNotificationRecipients
in interface Notification
public void setNotificationRecipients(@NotNull Set<NotificationRecipient> recipients)
Notification
setNotificationRecipients
in interface Notification
recipients
- Set of notification recipientspublic void setExcludedNotificationRecipients(@NotNull Set<NotificationRecipient> recipients)
Notification
setExcludedNotificationRecipients
in interface Notification
recipients
- Set of excluded notification recipientspublic void addRecipient(@NotNull NotificationRecipient recipient)
Notification
addRecipient
in interface Notification
recipient
- Recipient to be added to notificationpublic void excludeRecipient(@NotNull NotificationRecipient recipient)
Notification
excludeRecipient
in interface Notification
recipient
- Recipient to be excluded from notification@Deprecated public RepositoryData getRepositoryData(@Nullable RepositoryDataEntity entity)
getCommitUrl(RepositoryDataEntity, String, ImmutablePlan, CustomVariableContext, RepositoryDefinitionManager, VcsRepositoryViewerManager)
instead.@Deprecated public RepositoryData getRepositoryData(@Nullable RepositoryChangeset repositoryChangeset)
getCommitUrl(RepositoryDataEntity, String, ImmutablePlan, CustomVariableContext, RepositoryDefinitionManager, VcsRepositoryViewerManager)
instead.protected String getCommitUrl(@NotNull RepositoryDataEntity repositoryDataEntity, String revision, @NotNull ImmutablePlan plan, @NotNull CustomVariableContext customVariableContext, @NotNull RepositoryDefinitionManager repositoryDefinitionManager, @NotNull VcsRepositoryViewerManager vcsRepositoryViewerManager)
public String getHtmlImContent()
getHtmlImContent
in interface Notification.HtmlImContentProvidingNotification
public boolean applyDefaultCssStyles()
Notification
applyDefaultCssStyles
in interface Notification
NotificationFormatter.applyStyles(String)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.