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, wait
getTransports
protected NotificationRecipientModuleDescriptor notificationRecipientModuleDescriptor
public void init(@NotNull com.atlassian.plugin.web.descriptors.WeightedDescriptor moduleDescriptor)
NotificationRecipient
init
in interface NotificationRecipient
moduleDescriptor
- for this plugin object@Nullable public com.atlassian.plugin.web.descriptors.WeightedDescriptor getModuleDescriptor()
NotificationRecipient
getModuleDescriptor
in interface NotificationRecipient
@NotNull public String getDescription()
NotificationRecipient
getDescription
in interface NotificationRecipient
@NotNull public String getKey()
NotificationRecipient
getKey
in interface NotificationRecipient
public void init(@Nullable String configurationData)
NotificationRecipient
init
in interface NotificationRecipient
@NotNull public String getRecipientConfig()
NotificationRecipient
getRecipientConfig
in interface NotificationRecipient
public void populate(@NotNull Map<String,String[]> params)
NotificationRecipient
populate
in interface NotificationRecipient
params
- map of key (String), value (String []) pairs from action@NotNull public ErrorCollection validate(@NotNull Map<String,String[]> params)
NotificationRecipient
validate
in interface NotificationRecipient
params
- map of key (String), value (String []) pairs from action@NotNull public String getEditHtml()
NotificationRecipient
getEditHtml
in interface NotificationRecipient
@NotNull public String getViewHtml()
NotificationRecipient
getViewHtml
in interface NotificationRecipient
public int compareTo(Object o)
compareTo
in interface Comparable
protected List<NotificationTransport> getTransports(Set<UserRecipient> userRecipients)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.