public class RssNotification extends AbstractNotification
Modifier and Type | Class and Description |
---|---|
static class |
RssNotification.CommitWithUrl |
static class |
RssNotification.RssAffectedDeployment |
Notification.HtmlImContentProvidingNotification
Modifier and Type | Field and Description |
---|---|
static String |
SPEC_HTML_ERROR_EMAIL_TEMPLATE |
static String |
SPEC_HTML_SUCCESS_EMAIL_TEMPLATE |
static String |
SPEC_TEXT_ERROR_EMAIL_TEMPLATE |
static String |
SPEC_TEXT_SUCCESS_EMAIL_TEMPLATE |
NAVIGATION_SOURCE
Constructor and Description |
---|
RssNotification() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Text describing this notification object - used for logging/debugging purposes.
|
String |
getEmailSubject()
Retrieves the subject for the notification.
|
RssEvent |
getEvent()
Retrieves the event object that triggered this notification
|
String |
getHtmlEmailContent()
Generates the html for the html part of an email notification.
|
String |
getHtmlImContent() |
String |
getIMContent()
Retrieves the content for the IM notification
|
String |
getTextEmailContent()
Generates the text email content for the notifications
|
protected void |
populateContext(Map<String,Object> context) |
void |
setTemplateRenderer(TemplateRenderer templateRenderer) |
addRecipient, applyDefaultCssStyles, excludeRecipient, getCommitUrl, getExcludedNotificationRecipients, getNotificationRecipients, getPojoEvent, getRepositoryData, getRepositoryData, setEvent, setEvent, setExcludedNotificationRecipients, setNotificationRecipients
public static final String SPEC_TEXT_ERROR_EMAIL_TEMPLATE
public static final String SPEC_HTML_ERROR_EMAIL_TEMPLATE
public static final String SPEC_TEXT_SUCCESS_EMAIL_TEMPLATE
public static final String SPEC_HTML_SUCCESS_EMAIL_TEMPLATE
@NotNull public String getDescription()
Notification
@Nullable public String getTextEmailContent() throws Exception
Notification
Exception
- if there is a problem preventing production of the e-mail content.@Nullable public String getHtmlEmailContent()
Notification
@Nullable public String getEmailSubject()
Notification
@Nullable public String getIMContent()
Notification
@Nullable public String getHtmlImContent()
getHtmlImContent
in interface Notification.HtmlImContentProvidingNotification
getHtmlImContent
in class AbstractNotification
@Nullable public RssEvent getEvent()
Notification
getEvent
in interface Notification
getEvent
in class AbstractNotification
public void setTemplateRenderer(TemplateRenderer templateRenderer)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.