public class UserRecipientImpl extends AbstractNotificationRecipient implements UserRecipient
NotificationRecipient.RequiresEvent, NotificationRecipient.RequiresPlan, NotificationRecipient.RequiresResultSummary, NotificationRecipient.Scope, NotificationRecipient.UserRecipientExpandable
notificationRecipientModuleDescriptor
USER_FIELD, USER_LONG_FIELD
Constructor and Description |
---|
UserRecipientImpl() |
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.
|
String |
getUsername() |
@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 |
setNotificationFactory(NotificationFactory notificationFactory) |
void |
setTemplateRenderer(TemplateRenderer templateRenderer) |
void |
setTextProvider(com.opensymphony.xwork2.TextProvider textProvider) |
void |
setUsername(String username) |
String |
toString() |
@NotNull ErrorCollection |
validate(@NotNull Map<String,String[]> params)
Validate the data user provided.
|
compareTo, getDescription, getKey, getModuleDescriptor, getParam, getScopes, getTransports, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getKey, getModuleDescriptor, getScopes, init
compareTo
@NotNull public @NotNull List<NotificationTransport> getTransports()
NotificationRecipient
getTransports
in interface NotificationRecipient
public void init(@Nullable @Nullable String configurationData)
NotificationRecipient
init
in interface NotificationRecipient
init
in class AbstractNotificationRecipient
@NotNull public @NotNull String getRecipientConfig()
NotificationRecipient
getRecipientConfig
in interface NotificationRecipient
getRecipientConfig
in class AbstractNotificationRecipient
public void populate(@NotNull @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 @NotNull ErrorCollection validate(@NotNull @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 @NotNull String getEditHtml()
NotificationRecipient
getEditHtml
in interface NotificationRecipient
getEditHtml
in class AbstractNotificationRecipient
@NotNull public @NotNull String getViewHtml()
NotificationRecipient
getViewHtml
in interface NotificationRecipient
getViewHtml
in class AbstractNotificationRecipient
public void setUsername(String username)
setUsername
in interface UserRecipient
public String getUsername()
getUsername
in interface UserRecipient
public void setBambooUserManager(BambooUserManager bambooUserManager)
public void setNotificationFactory(NotificationFactory notificationFactory)
public void setTemplateRenderer(TemplateRenderer templateRenderer)
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.