public interface NotificationRecipient extends BambooPluginModule, Comparable
Modifier and Type | Interface and Description |
---|---|
static interface |
NotificationRecipient.RequiresEvent
Extension interface if the recipient requires extra data.
|
static interface |
NotificationRecipient.RequiresPlan
Extension interface if the recipient requires extra data.
|
static interface |
NotificationRecipient.RequiresResultSummary
Extension interface if the recipient requires extra data.
|
static interface |
NotificationRecipient.UserRecipientExpandable
Indicates that the recipient is actually expandable into one or many user recipients.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns generic string description of this notification type
|
String |
getEditHtml()
Returns the html to be displayed on the edit screen (to input data into notification type)
|
String |
getKey()
returns full key for this condition object
|
com.atlassian.plugin.web.descriptors.WeightedDescriptor |
getModuleDescriptor()
returns the moduleDescriptor for this plugin object if it exists.
|
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 |
init(com.atlassian.plugin.web.descriptors.WeightedDescriptor moduleDescriptor)
initialises the notification type plugin object with its module descriptor
|
void |
populate(Map<String,String[]> params)
takes the map of config data from action and extracts the parameters it needs
|
ErrorCollection |
validate(Map<String,String[]> params)
validate the user inputed data
|
compareTo
@NotNull List<NotificationTransport> getTransports()
void init(@NotNull com.atlassian.plugin.web.descriptors.WeightedDescriptor moduleDescriptor)
moduleDescriptor
- for this plugin objectvoid init(@Nullable String configurationData)
configurationData
- @NotNull String getRecipientConfig()
@NotNull String getDescription()
@NotNull String getKey()
void populate(@NotNull Map<String,String[]> params)
params
- map of key (String), value (String []) pairs from action@NotNull ErrorCollection validate(@NotNull Map<String,String[]> params)
params
- map of key (String), value (String []) pairs from action@NotNull String getEditHtml()
@NotNull String getViewHtml()
@Nullable com.atlassian.plugin.web.descriptors.WeightedDescriptor getModuleDescriptor()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.