public abstract class AbstractNotificationRecipient extends Object implements NotificationRecipient
NotificationRecipient.RequiresEvent, NotificationRecipient.RequiresPlan, NotificationRecipient.RequiresResultSummary, NotificationRecipient.UserRecipientExpandable| Modifier and Type | Field and Description |
|---|---|
protected NotificationRecipientModuleDescriptor |
notificationRecipientModuleDescriptor |
| Constructor and Description |
|---|
AbstractNotificationRecipient() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
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.
|
protected String |
getParam(String key,
Map<String,String[]> params) |
String |
getRecipientConfig()
Retrieve string representation of data - if none exists return empty string
|
protected List<NotificationTransport> |
getTransports(Set<UserRecipient> userRecipients) |
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTransportsprotected NotificationRecipientModuleDescriptor notificationRecipientModuleDescriptor
public void init(@NotNull
com.atlassian.plugin.web.descriptors.WeightedDescriptor moduleDescriptor)
NotificationRecipientinit in interface NotificationRecipientmoduleDescriptor - for this plugin object@Nullable public com.atlassian.plugin.web.descriptors.WeightedDescriptor getModuleDescriptor()
NotificationRecipientgetModuleDescriptor in interface NotificationRecipient@NotNull public String getDescription()
NotificationRecipientgetDescription in interface NotificationRecipient@NotNull public String getKey()
NotificationRecipientgetKey in interface NotificationRecipientpublic void init(@Nullable
String configurationData)
NotificationRecipientinit in interface NotificationRecipient@NotNull public String getRecipientConfig()
NotificationRecipientgetRecipientConfig in interface NotificationRecipientpublic void populate(@NotNull
Map<String,String[]> params)
NotificationRecipientpopulate in interface NotificationRecipientparams - map of key (String), value (String []) pairs from action@NotNull public ErrorCollection validate(@NotNull Map<String,String[]> params)
NotificationRecipientvalidate in interface NotificationRecipientparams - map of key (String), value (String []) pairs from action@NotNull public String getEditHtml()
NotificationRecipientgetEditHtml in interface NotificationRecipient@NotNull public String getViewHtml()
NotificationRecipientgetViewHtml in interface NotificationRecipientpublic int compareTo(Object o)
compareTo in interface Comparableprotected List<NotificationTransport> getTransports(Set<UserRecipient> userRecipients)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.