Class RssNotification
- java.lang.Object
-
- com.atlassian.bamboo.notification.AbstractNotification
-
- com.atlassian.bamboo.notification.rss.RssNotification
-
- All Implemented Interfaces:
Notification
,Notification.HtmlImContentProvidingNotification
public class RssNotification extends AbstractNotification
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RssNotification.CommitWithUrl
static class
RssNotification.RssAffectedDeployment
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.notification.Notification
Notification.HtmlImContentProvidingNotification
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class com.atlassian.bamboo.notification.AbstractNotification
NAVIGATION_SOURCE
-
-
Constructor Summary
Constructors Constructor Description RssNotification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull String
getDescription()
Text describing this notification object - used for logging/debugging purposes.@Nullable String
getEmailSubject()
Retrieves the subject for the notification.@Nullable RssEvent
getEvent()
Retrieves the event object that triggered this notification@Nullable String
getHtmlEmailContent()
Generates the html for the html part of an email notification.@Nullable String
getHtmlImContent()
@Nullable String
getIMContent()
Retrieves the content for the IM notification@Nullable String
getTextEmailContent()
Generates the text email content for the notificationsprotected void
populateContext(@NotNull Map<String,Object> context)
void
setTemplateRenderer(TemplateRenderer templateRenderer)
-
Methods inherited from class com.atlassian.bamboo.notification.AbstractNotification
addRecipient, applyDefaultCssStyles, excludeRecipient, getCommitUrl, getExcludedNotificationRecipients, getNotificationRecipients, getPojoEvent, getRepositoryData, getRepositoryData, setEvent, setEvent, setExcludedNotificationRecipients, setNotificationRecipients
-
-
-
-
Field Detail
-
SPEC_TEXT_ERROR_EMAIL_TEMPLATE
public static final String SPEC_TEXT_ERROR_EMAIL_TEMPLATE
- See Also:
- Constant Field Values
-
SPEC_HTML_ERROR_EMAIL_TEMPLATE
public static final String SPEC_HTML_ERROR_EMAIL_TEMPLATE
- See Also:
- Constant Field Values
-
SPEC_TEXT_SUCCESS_EMAIL_TEMPLATE
public static final String SPEC_TEXT_SUCCESS_EMAIL_TEMPLATE
- See Also:
- Constant Field Values
-
SPEC_HTML_SUCCESS_EMAIL_TEMPLATE
public static final String SPEC_HTML_SUCCESS_EMAIL_TEMPLATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescription
@NotNull public @NotNull String getDescription()
Description copied from interface:Notification
Text describing this notification object - used for logging/debugging purposes.- Returns:
- Notification's description
-
getTextEmailContent
@Nullable public @Nullable String getTextEmailContent() throws Exception
Description copied from interface:Notification
Generates the text email content for the notifications- Returns:
- Email content formatted as text for this notification
- Throws:
Exception
- if there is a problem preventing production of the e-mail content.
-
getHtmlEmailContent
@Nullable public @Nullable String getHtmlEmailContent()
Description copied from interface:Notification
Generates the html for the html part of an email notification.- Returns:
- Email content formatted as HTML for this notification
-
getEmailSubject
@Nullable public @Nullable String getEmailSubject()
Description copied from interface:Notification
Retrieves the subject for the notification.- Returns:
- Email subject for this notification
-
getIMContent
@Nullable public @Nullable String getIMContent()
Description copied from interface:Notification
Retrieves the content for the IM notification- Returns:
- IM message content for this notification
-
getHtmlImContent
@Nullable public @Nullable String getHtmlImContent()
- Specified by:
getHtmlImContent
in interfaceNotification.HtmlImContentProvidingNotification
- Overrides:
getHtmlImContent
in classAbstractNotification
-
getEvent
@Nullable public @Nullable RssEvent getEvent()
Description copied from interface:Notification
Retrieves the event object that triggered this notification- Specified by:
getEvent
in interfaceNotification
- Overrides:
getEvent
in classAbstractNotification
- Returns:
- Event object that triggered this notification
-
setTemplateRenderer
public void setTemplateRenderer(TemplateRenderer templateRenderer)
-
-