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 |
---|---|
@NotNull String |
getConfigurationData()
Returns the string representation of the configurable data of the notification type to be persisted to the db
|
@NotNull String |
getEditHtml()
Returns the html to be displayed on the edit screen (to input data into notification type)
|
@NotNull String |
getViewHtml()
Returns the HTML representing the notification type for the notification
|
boolean |
isNotificationRequired(@NotNull Object event)
Determines whether or not a notification should be sent based on the event.
|
void |
populate(@NotNull Map<String,String[]> config)
takes the map of config data from action and extracts the parameters it needs
|
void |
setConfigurationData(@Nullable String data)
initalises the notification type object with its data based on the config string retrieved from the database
|
@NotNull ErrorCollection |
validate(@NotNull Map<String,String[]> params)
validate the user inputed data
|
compareTo, getDescription, getKey, getModuleDescriptor, getName, getScope, init
public static final int MINIMUM_FAILURES
public void setConfigurationData(@Nullable @Nullable String data)
NotificationType
setConfigurationData
in interface NotificationType
setConfigurationData
in class AbstractNotificationType
data
- string representation of configurable data@NotNull public @NotNull String getConfigurationData()
NotificationType
getConfigurationData
in interface NotificationType
getConfigurationData
in class AbstractNotificationType
public boolean isNotificationRequired(@NotNull @NotNull Object event)
NotificationType
isNotificationRequired
in interface NotificationType
isNotificationRequired
in class AbstractNotificationType
public void populate(@NotNull @NotNull Map<String,String[]> config)
NotificationType
populate
in interface NotificationType
populate
in class AbstractNotificationType
config
- map of key (String), value (String []) pairs from action@NotNull public @NotNull ErrorCollection validate(@NotNull @NotNull Map<String,String[]> params)
NotificationType
validate
in interface NotificationType
validate
in class AbstractNotificationType
params
- map of key (String), value (String []) pairs from action@NotNull public @NotNull String getEditHtml()
NotificationType
getEditHtml
in interface NotificationType
getEditHtml
in class AbstractNotificationType
@NotNull public @NotNull String getViewHtml()
NotificationType
getViewHtml
in interface NotificationType
getViewHtml
in class AbstractNotificationType
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.