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