public abstract class AbstractCompletedNotification extends AbstractNotification implements ExtendedNotification
Notification.HtmlImContentProvidingNotification| Modifier and Type | Field and Description |
|---|---|
protected ImmutablePlan |
plan |
protected ResultsSummary |
resultsSummary |
NAVIGATION_SOURCE| Constructor and Description |
|---|
AbstractCompletedNotification(BranchStatusService branchStatusService,
CachedPlanManager cachedPlanManager,
VcsRepositoryViewerManager vcsRepositoryViewerManager,
RepositoryDefinitionManager repositoryDefinitionManager,
CustomVariableContext customVariableContext,
ResultsSummaryManager resultsSummaryManager) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommitUrl(@NotNull RepositoryDataEntity repositoryDataEntity,
String revision) |
@NotNull String |
getDescription()
Text describing this notification object - used for logging/debugging purposes.
|
@Nullable String |
getEmailSubject()
Retrieves the subject for the notification.
|
protected abstract String |
getEmailSubjectTemplate() |
@Nullable String |
getHtmlEmailContent()
Generates the html for the html part of an email notification.
|
protected abstract String |
getHtmlEmailTemplate() |
@Nullable String |
getHtmlImContent() |
protected String |
getHtmlImTemplate() |
@Nullable String |
getIMContent()
Retrieves the content for the IM notification
|
protected abstract String |
getImTemplate() |
@Nullable String |
getTextEmailContent()
Generates the text email content for the notifications
|
protected abstract String |
getTextEmailTemplate() |
void |
init() |
protected void |
populateContext(Map<String,Object> context) |
void |
setResultsSummary(ResultsSummary resultsSummary) |
void |
setTemplateRenderer(TemplateRenderer templateRenderer) |
void |
setTriggerManager(TriggerManager triggerManager) |
@NotNull com.atlassian.mail.Email |
updateEmail(@NotNull com.atlassian.mail.Email email)
Provides an email object after being populated with content from the
Notification and Bamboo's defaults
This email may be a text email, html email or a Multipart email |
addRecipient, applyDefaultCssStyles, excludeRecipient, getCommitUrl, getEvent, getExcludedNotificationRecipients, getNotificationRecipients, getPojoEvent, getRepositoryData, getRepositoryData, setEvent, setEvent, setExcludedNotificationRecipients, setNotificationRecipientsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRecipient, applyDefaultCssStyles, excludeRecipient, getEvent, getExcludedNotificationRecipients, getNotificationRecipients, getPojoEvent, setEvent, setEvent, setExcludedNotificationRecipients, setNotificationRecipientsprotected ResultsSummary resultsSummary
protected ImmutablePlan plan
@Inject public AbstractCompletedNotification(BranchStatusService branchStatusService, CachedPlanManager cachedPlanManager, VcsRepositoryViewerManager vcsRepositoryViewerManager, RepositoryDefinitionManager repositoryDefinitionManager, CustomVariableContext customVariableContext, ResultsSummaryManager resultsSummaryManager)
@NotNull
public @NotNull com.atlassian.mail.Email updateEmail(@NotNull
@NotNull com.atlassian.mail.Email email)
ExtendedNotificationNotification and Bamboo's defaults
This email may be a text email, html email or a Multipart emailupdateEmail in interface ExtendedNotification@NotNull public @NotNull String getDescription()
NotificationgetDescription in interface Notificationpublic void init()
public String getCommitUrl(@NotNull @NotNull RepositoryDataEntity repositoryDataEntity, String revision)
@Nullable public @Nullable String getTextEmailContent() throws Exception
NotificationgetTextEmailContent in interface NotificationException - if there is a problem preventing production of the e-mail content.@Nullable public @Nullable String getHtmlEmailContent() throws Exception
NotificationgetHtmlEmailContent in interface NotificationException - if there is a problem preventing production of the e-mail content.@Nullable public @Nullable String getIMContent()
NotificationgetIMContent in interface Notification@Nullable public @Nullable String getHtmlImContent()
getHtmlImContent in interface Notification.HtmlImContentProvidingNotificationgetHtmlImContent in class AbstractNotification@Nullable public @Nullable String getEmailSubject()
NotificationgetEmailSubject in interface Notificationpublic void setResultsSummary(ResultsSummary resultsSummary)
protected abstract String getTextEmailTemplate()
protected abstract String getHtmlEmailTemplate()
protected abstract String getImTemplate()
protected abstract String getEmailSubjectTemplate()
protected String getHtmlImTemplate()
public void setTemplateRenderer(TemplateRenderer templateRenderer)
public void setTriggerManager(TriggerManager triggerManager)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.