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 class |
NotificationRecipient.Scope |
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
|
default Set<NotificationRecipient.Scope> |
getScopes() |
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 data user provided.
|
compareTo
@NotNull List<NotificationTransport> getTransports()
void init(@NotNull com.atlassian.plugin.web.descriptors.WeightedDescriptor moduleDescriptor)
moduleDescriptor
- for this plugin objectvoid init(@Nullable String 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()
@NotNull default Set<NotificationRecipient.Scope> getScopes()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.