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 |
---|---|
@NotNull String |
getDescription()
Returns generic string description of this notification type
|
@NotNull String |
getEditHtml()
Returns the html to be displayed on the edit screen (to input data into notification type)
|
@NotNull String |
getKey()
returns full key for this condition object
|
@Nullable com.atlassian.plugin.web.descriptors.WeightedDescriptor |
getModuleDescriptor()
returns the moduleDescriptor for this plugin object if it exists.
|
@NotNull String |
getRecipientConfig()
Retrieve string representation of data - if none exists return empty string
|
default @NotNull Set<NotificationRecipient.Scope> |
getScopes() |
@NotNull List<NotificationTransport> |
getTransports()
Evaluates the appropriate mediums for sending notifications for this recipient,
returning a list of appropriate transports.
|
@NotNull String |
getViewHtml()
Returns the HTML representing the notification type for the notification
|
void |
init(@Nullable String configurationData)
Initialise recipient with string based representation of its configuration data
|
void |
init(@NotNull com.atlassian.plugin.web.descriptors.WeightedDescriptor moduleDescriptor)
initialises the notification type plugin object with its module descriptor
|
void |
populate(@NotNull Map<String,String[]> params)
takes the map of config data from action and extracts the parameters it needs
|
@NotNull ErrorCollection |
validate(@NotNull Map<String,String[]> params)
Validate the data user provided.
|
compareTo
@NotNull @NotNull List<NotificationTransport> getTransports()
void init(@NotNull @NotNull com.atlassian.plugin.web.descriptors.WeightedDescriptor moduleDescriptor)
moduleDescriptor
- for this plugin objectvoid init(@Nullable @Nullable String configurationData)
@NotNull @NotNull String getRecipientConfig()
@NotNull @NotNull String getDescription()
@NotNull @NotNull String getKey()
void populate(@NotNull @NotNull Map<String,String[]> params)
params
- map of key (String), value (String []) pairs from action@NotNull @NotNull ErrorCollection validate(@NotNull @NotNull Map<String,String[]> params)
params
- map of key (String), value (String []) pairs from action@NotNull @NotNull String getEditHtml()
@NotNull @NotNull String getViewHtml()
@Nullable @Nullable com.atlassian.plugin.web.descriptors.WeightedDescriptor getModuleDescriptor()
@NotNull default @NotNull Set<NotificationRecipient.Scope> getScopes()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.