Class RssNotification
java.lang.Object
com.atlassian.bamboo.notification.AbstractNotification
com.atlassian.bamboo.notification.rss.RssNotification
- All Implemented Interfaces:
Notification,Notification.HtmlImContentProvidingNotification
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface com.atlassian.bamboo.notification.Notification
Notification.HtmlImContentProvidingNotification -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.atlassian.bamboo.notification.AbstractNotification
NAVIGATION_SOURCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringText describing this notification object - used for logging/debugging purposes.@Nullable StringRetrieves the subject for the notification.@Nullable RssEventgetEvent()Retrieves the event object that triggered this notification.@Nullable StringGenerates the html for the html part of an email notification.@Nullable String@Nullable StringRetrieves the content for the IM notification@Nullable StringGenerates the text email content for the notificationsprotected voidpopulateContext(@NotNull Map<String, Object> context) voidsetTemplateRenderer(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 Details
-
SPEC_TEXT_ERROR_EMAIL_TEMPLATE
- See Also:
-
SPEC_HTML_ERROR_EMAIL_TEMPLATE
- See Also:
-
SPEC_TEXT_SUCCESS_EMAIL_TEMPLATE
- See Also:
-
SPEC_HTML_SUCCESS_EMAIL_TEMPLATE
- See Also:
-
-
Constructor Details
-
RssNotification
public RssNotification()
-
-
Method Details
-
getDescription
Description copied from interface:NotificationText describing this notification object - used for logging/debugging purposes.- Returns:
- Notification's description
-
getTextEmailContent
Description copied from interface:NotificationGenerates 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
Description copied from interface:NotificationGenerates the html for the html part of an email notification.- Returns:
- Email content formatted as HTML for this notification
-
getEmailSubject
Description copied from interface:NotificationRetrieves the subject for the notification.- Returns:
- Email subject for this notification
-
getIMContent
Description copied from interface:NotificationRetrieves the content for the IM notification- Returns:
- IM message content for this notification
-
getHtmlImContent
- Specified by:
getHtmlImContentin interfaceNotification.HtmlImContentProvidingNotification- Overrides:
getHtmlImContentin classAbstractNotification
-
getEvent
Description copied from interface:NotificationRetrieves the event object that triggered this notification. Before 10.0 this method returned a com.atlassian.event.Event object. Now it returnsBambooEvent.- Specified by:
getEventin interfaceNotification- Overrides:
getEventin classAbstractNotification- Returns:
- Event object that triggered this notification
-
populateContext
-
setTemplateRenderer
-