public class ImRecipient extends AbstractNotificationRecipient
NotificationRecipient.RequiresEvent, NotificationRecipient.RequiresPlan, NotificationRecipient.RequiresResultSummary, NotificationRecipient.Scope, NotificationRecipient.UserRecipientExpandable
Modifier and Type | Field and Description |
---|---|
static String |
IM_FIELD |
notificationRecipientModuleDescriptor
Constructor and Description |
---|
ImRecipient() |
Modifier and Type | Method and Description |
---|---|
String |
getEditHtml()
Returns the html to be displayed on the edit screen (to input data into notification type)
|
String |
getRecipientConfig()
Retrieve string representation of data - if none exists return empty string
|
List<NotificationTransport> |
getTransports()
Evaluates the appropriate mediums for sending notifications for this recipient,
returning a list of appropriate transports.
|
String |
getViewHtml()
Returns the HTML representing the notification type for the notification
|
void |
init(String configurationData)
Initialise recipient with string based representation of its configuration data
|
void |
populate(Map<String,String[]> params)
takes the map of config data from action and extracts the parameters it needs
|
void |
setImAddress(String imAddress) |
void |
setNotificationFactory(NotificationFactory notificationFactory) |
void |
setTemplateRenderer(TemplateRenderer templateRenderer) |
ErrorCollection |
validate(Map<String,String[]> params)
Validate the data user provided.
|
compareTo, getDescription, getKey, getModuleDescriptor, getParam, getScopes, getTransports, init
public static final String IM_FIELD
@NotNull public List<NotificationTransport> getTransports()
NotificationRecipient
public void init(@Nullable String configurationData)
NotificationRecipient
init
in interface NotificationRecipient
init
in class AbstractNotificationRecipient
@NotNull public String getRecipientConfig()
NotificationRecipient
getRecipientConfig
in interface NotificationRecipient
getRecipientConfig
in class AbstractNotificationRecipient
public void populate(@NotNull Map<String,String[]> params)
NotificationRecipient
populate
in interface NotificationRecipient
populate
in class AbstractNotificationRecipient
params
- map of key (String), value (String []) pairs from action@NotNull public ErrorCollection validate(@NotNull Map<String,String[]> params)
NotificationRecipient
validate
in interface NotificationRecipient
validate
in class AbstractNotificationRecipient
params
- map of key (String), value (String []) pairs from action@NotNull public String getEditHtml()
NotificationRecipient
getEditHtml
in interface NotificationRecipient
getEditHtml
in class AbstractNotificationRecipient
@NotNull public String getViewHtml()
NotificationRecipient
getViewHtml
in interface NotificationRecipient
getViewHtml
in class AbstractNotificationRecipient
public void setImAddress(String imAddress)
public void setTemplateRenderer(TemplateRenderer templateRenderer)
public void setNotificationFactory(NotificationFactory notificationFactory)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.