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