Class AfterXFailedNotificationType
java.lang.Object
com.atlassian.bamboo.notification.AbstractNotificationType
com.atlassian.bamboo.notification.chain.AfterXFailedNotificationType
- All Implemented Interfaces:
NotificationType,BambooPluginModule,Comparable
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.notification.NotificationType
NotificationType.Scope -
Field Summary
FieldsFields inherited from class com.atlassian.bamboo.notification.AbstractNotificationType
notificationTypeModuleDescriptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns the string representation of the configurable data of the notification type to be persisted to the db@NotNull StringReturns the html to be displayed on the edit screen (to input data into notification type)@NotNull StringReturns the HTML representing the notification type for the notificationbooleanisNotificationRequired(@NotNull Object event) Determines whether or not a notification should be sent based on the event.voidtakes the map of config data from action and extracts the parameters it needsvoidsetConfigurationData(@Nullable String data) initalises the notification type object with its data based on the config string retrieved from the database@NotNull ErrorCollectionvalidate the user inputed dataMethods inherited from class com.atlassian.bamboo.notification.AbstractNotificationType
compareTo, getDescription, getKey, getModuleDescriptor, getName, getScope, init
-
Field Details
-
MINIMUM_FAILURES
public static final int MINIMUM_FAILURES- See Also:
-
-
Constructor Details
-
AfterXFailedNotificationType
public AfterXFailedNotificationType()
-
-
Method Details
-
setConfigurationData
Description copied from interface:NotificationTypeinitalises the notification type object with its data based on the config string retrieved from the database- Specified by:
setConfigurationDatain interfaceNotificationType- Overrides:
setConfigurationDatain classAbstractNotificationType- Parameters:
data- string representation of configurable data
-
getConfigurationData
Description copied from interface:NotificationTypeReturns the string representation of the configurable data of the notification type to be persisted to the db- Specified by:
getConfigurationDatain interfaceNotificationType- Overrides:
getConfigurationDatain classAbstractNotificationType- Returns:
- String of config data. Empty string if no config data
-
isNotificationRequired
Description copied from interface:NotificationTypeDetermines whether or not a notification should be sent based on the event. Can look for context specific information as well as user configuration.- Specified by:
isNotificationRequiredin interfaceNotificationType- Overrides:
isNotificationRequiredin classAbstractNotificationType- Returns:
- true or false - to send or not to send.
-
populate
Description copied from interface:NotificationTypetakes the map of config data from action and extracts the parameters it needs- Specified by:
populatein interfaceNotificationType- Overrides:
populatein classAbstractNotificationType- Parameters:
config- map of key (String), value (String []) pairs from action
-
validate
Description copied from interface:NotificationTypevalidate the user inputed data- Specified by:
validatein interfaceNotificationType- Overrides:
validatein classAbstractNotificationType- Parameters:
params- map of key (String), value (String []) pairs from action- Returns:
- error collection of any errors to be reported back to the user
-
getEditHtml
Description copied from interface:NotificationTypeReturns the html to be displayed on the edit screen (to input data into notification type)- Specified by:
getEditHtmlin interfaceNotificationType- Overrides:
getEditHtmlin classAbstractNotificationType- Returns:
- String of html
-
getViewHtml
Description copied from interface:NotificationTypeReturns the HTML representing the notification type for the notification- Specified by:
getViewHtmlin interfaceNotificationType- Overrides:
getViewHtmlin classAbstractNotificationType- Returns:
- HTML of data for view configuration. If this returns null the description will be used.
-