|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.notification.recipients.AbstractNotificationRecipient com.atlassian.bamboo.notification.recipients.UserRecipient
public class UserRecipient
Represents a user notification recipient. Knows how to obtain user notification preferences and generate NotificationTransports accordingly.
Field Summary | |
---|---|
static java.lang.String |
USER_FIELD
|
Fields inherited from class com.atlassian.bamboo.notification.recipients.AbstractNotificationRecipient |
---|
notificationRecipientModuleDescriptor |
Constructor Summary | |
---|---|
UserRecipient()
|
Method Summary | |
---|---|
java.lang.String |
getEditHtml()
Returns the html to be displayed on the edit screen (to input data into notification type) |
java.lang.String |
getRecipientConfig()
Retrieve string representation of data - if none exists retrun empty string |
java.util.List<NotificationTransport> |
getTransports()
Evaluates the appropriate mediums for sending notificaions for this recipient, returning a list of appropriate transports. |
java.lang.String |
getUsername()
|
java.lang.String |
getViewHtml()
Returns the HTML representing the notification type for the notification |
void |
init(java.lang.String configurationData)
Initialise recipient with string based represention of its configuration data |
void |
populate(java.util.Map<java.lang.String,java.lang.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 |
setUsername(java.lang.String username)
|
ErrorCollection |
validate(java.util.Map<java.lang.String,java.lang.String[]> params)
validate the user inputed data |
Methods inherited from class com.atlassian.bamboo.notification.recipients.AbstractNotificationRecipient |
---|
compareTo, getDescription, getKey, getModuleDescriptor, getParam, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String USER_FIELD
Constructor Detail |
---|
public UserRecipient()
Method Detail |
---|
@NotNull public java.util.List<NotificationTransport> getTransports()
NotificationRecipient
public void init(@Nullable java.lang.String configurationData)
NotificationRecipient
init
in interface NotificationRecipient
init
in class AbstractNotificationRecipient
@NotNull public java.lang.String getRecipientConfig()
NotificationRecipient
getRecipientConfig
in interface NotificationRecipient
getRecipientConfig
in class AbstractNotificationRecipient
public void populate(@NotNull java.util.Map<java.lang.String,java.lang.String[]> params)
NotificationRecipient
populate
in interface NotificationRecipient
populate
in class AbstractNotificationRecipient
params
- map of key (String), value (String []) pairs from action@NotNull public ErrorCollection validate(@NotNull java.util.Map<java.lang.String,java.lang.String[]> params)
NotificationRecipient
validate
in interface NotificationRecipient
validate
in class AbstractNotificationRecipient
params
- map of key (String), value (String []) pairs from action
@NotNull public java.lang.String getEditHtml()
NotificationRecipient
getEditHtml
in interface NotificationRecipient
getEditHtml
in class AbstractNotificationRecipient
@NotNull public java.lang.String getViewHtml()
NotificationRecipient
getViewHtml
in interface NotificationRecipient
getViewHtml
in class AbstractNotificationRecipient
public void setUsername(java.lang.String username)
public java.lang.String getUsername()
public void setBambooUserManager(BambooUserManager bambooUserManager)
public void setNotificationFactory(NotificationFactory notificationFactory)
public void setTemplateRenderer(TemplateRenderer templateRenderer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |