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
|
void |
setPlanManager(PlanManager planManager) |
void |
setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager) |
void |
setTemplateRenderer(TemplateRenderer templateRenderer) |
ErrorCollection |
validate(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 String data)
NotificationType
setConfigurationData
in interface NotificationType
setConfigurationData
in class AbstractNotificationType
data
- string representation of configurable data@NotNull public String getConfigurationData()
NotificationType
getConfigurationData
in interface NotificationType
getConfigurationData
in class AbstractNotificationType
public boolean isNotificationRequired(@NotNull Object event)
NotificationType
isNotificationRequired
in interface NotificationType
isNotificationRequired
in class AbstractNotificationType
public void populate(@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 ErrorCollection validate(@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 String getEditHtml()
NotificationType
getEditHtml
in interface NotificationType
getEditHtml
in class AbstractNotificationType
@NotNull public String getViewHtml()
NotificationType
getViewHtml
in interface NotificationType
getViewHtml
in class AbstractNotificationType
public void setTemplateRenderer(TemplateRenderer templateRenderer)
public void setPlanManager(PlanManager planManager)
public void setResultsSummaryManager(ResultsSummaryManager resultsSummaryManager)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.