public class GroupRecipient extends AbstractNotificationRecipient implements NotificationRecipient.UserRecipientExpandable
NotificationRecipient.RequiresEvent, NotificationRecipient.RequiresPlan, NotificationRecipient.RequiresResultSummary, NotificationRecipient.Scope, NotificationRecipient.UserRecipientExpandable| Modifier and Type | Field and Description |
|---|---|
static String |
GROUP_FIELD |
notificationRecipientModuleDescriptor| Constructor and Description |
|---|
GroupRecipient() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
getEditHtml()
Returns the html to be displayed on the edit screen (to input data into notification type)
|
@NotNull String |
getRecipientConfig()
Retrieve string representation of data - if none exists return empty string
|
@NotNull List<NotificationTransport> |
getTransports()
Evaluates the appropriate mediums for sending notifications for this recipient,
returning a list of appropriate transports.
|
@NotNull Set<UserRecipient> |
getUserRecipients() |
@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 |
populate(@NotNull Map<String,String[]> params)
takes the map of config data from action and extracts the parameters it needs
|
void |
setBambooUserManager(BambooUserManager bambooUserManager) |
void |
setGroupName(String groupName) |
void |
setNotificationFactory(NotificationFactory notificationFactory) |
void |
setTemplateRenderer(TemplateRenderer templateRenderer) |
void |
setTextProvider(com.opensymphony.xwork2.TextProvider textProvider) |
@NotNull ErrorCollection |
validate(@NotNull Map<String,String[]> params)
Validate the data user provided.
|
compareTo, getDescription, getKey, getModuleDescriptor, getParam, getScopes, getTransports, initpublic static final String GROUP_FIELD
@NotNull public @NotNull List<NotificationTransport> getTransports()
NotificationRecipientgetTransports in interface NotificationRecipient@NotNull public @NotNull Set<UserRecipient> getUserRecipients()
getUserRecipients in interface NotificationRecipient.UserRecipientExpandablepublic void init(@Nullable
@Nullable String configurationData)
NotificationRecipientinit in interface NotificationRecipientinit in class AbstractNotificationRecipient@NotNull public @NotNull String getRecipientConfig()
NotificationRecipientgetRecipientConfig in interface NotificationRecipientgetRecipientConfig in class AbstractNotificationRecipientpublic void populate(@NotNull
@NotNull Map<String,String[]> params)
NotificationRecipientpopulate in interface NotificationRecipientpopulate in class AbstractNotificationRecipientparams - map of key (String), value (String []) pairs from action@NotNull public @NotNull ErrorCollection validate(@NotNull @NotNull Map<String,String[]> params)
NotificationRecipientvalidate in interface NotificationRecipientvalidate in class AbstractNotificationRecipientparams - map of key (String), value (String []) pairs from action@NotNull public @NotNull String getEditHtml()
NotificationRecipientgetEditHtml in interface NotificationRecipientgetEditHtml in class AbstractNotificationRecipient@NotNull public @NotNull String getViewHtml()
NotificationRecipientgetViewHtml in interface NotificationRecipientgetViewHtml in class AbstractNotificationRecipientpublic void setGroupName(String groupName)
public void setBambooUserManager(BambooUserManager bambooUserManager)
public void setTemplateRenderer(TemplateRenderer templateRenderer)
public void setNotificationFactory(NotificationFactory notificationFactory)
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.