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