public class AfterXFailedNotificationType extends AbstractNotificationType
NotificationType.Scope| Modifier and Type | Field and Description |
|---|---|
static int |
MINIMUM_FAILURES |
notificationTypeModuleDescriptor| Constructor and Description |
|---|
AfterXFailedNotificationType() |
| Modifier and Type | Method and Description |
|---|---|
String |
getConfigurationData()
Returns the string representation of the configurable data of the notification type to be persisted to the db
|
String |
getEditHtml()
Returns the html to be displayed on the edit screen (to input data into notification type)
|
String |
getViewHtml()
Returns the HTML representing the notification type for the notification
|
boolean |
isNotificationRequired(Object event)
Determines whether or not a notification should be sent based on the event.
|
void |
populate(Map<String,String[]> config)
takes the map of config data from action and extracts the parameters it needs
|
void |
setConfigurationData(String data)
initalises the notification type object with its data based on the config string retrieved from the database
|
ErrorCollection |
validate(Map<String,String[]> params)
validate the user inputed data
|
compareTo, getDescription, getKey, getModuleDescriptor, getName, getScope, initpublic static final int MINIMUM_FAILURES
public void setConfigurationData(@Nullable
String data)
NotificationTypesetConfigurationData in interface NotificationTypesetConfigurationData in class AbstractNotificationTypedata - string representation of configurable data@NotNull public String getConfigurationData()
NotificationTypegetConfigurationData in interface NotificationTypegetConfigurationData in class AbstractNotificationTypepublic boolean isNotificationRequired(@NotNull
Object event)
NotificationTypeisNotificationRequired in interface NotificationTypeisNotificationRequired in class AbstractNotificationTypepublic void populate(@NotNull
Map<String,String[]> config)
NotificationTypepopulate in interface NotificationTypepopulate in class AbstractNotificationTypeconfig - map of key (String), value (String []) pairs from action@NotNull public ErrorCollection validate(@NotNull Map<String,String[]> params)
NotificationTypevalidate in interface NotificationTypevalidate in class AbstractNotificationTypeparams - map of key (String), value (String []) pairs from action@NotNull public String getEditHtml()
NotificationTypegetEditHtml in interface NotificationTypegetEditHtml in class AbstractNotificationType@NotNull public String getViewHtml()
NotificationTypegetViewHtml in interface NotificationTypegetViewHtml in class AbstractNotificationTypeCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.