Class GroupRecipient
java.lang.Object
com.atlassian.bamboo.notification.recipients.AbstractNotificationRecipient
com.atlassian.bamboo.notification.recipients.GroupRecipient
- All Implemented Interfaces:
NotificationRecipient
,NotificationRecipient.UserRecipientExpandable
,BambooPluginModule
,Comparable
public class GroupRecipient
extends AbstractNotificationRecipient
implements NotificationRecipient.UserRecipientExpandable
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.Scope, NotificationRecipient.UserRecipientExpandable
-
Field Summary
Fields inherited from class com.atlassian.bamboo.notification.recipients.AbstractNotificationRecipient
notificationRecipientModuleDescriptor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
Returns the html to be displayed on the edit screen (to input data into notification type)@NotNull String
Retrieve string representation of data - if none exists return empty string@NotNull List<NotificationTransport>
Evaluates the appropriate mediums for sending notifications for this recipient, returning a list of appropriate transports.@NotNull Set<UserRecipient>
@NotNull String
Returns the HTML representing the notification type for the notificationvoid
Initialise recipient with string based representation of its configuration datavoid
takes the map of config data from action and extracts the parameters it needsvoid
setBambooUserManager
(BambooUserManager bambooUserManager) void
setGroupName
(String groupName) void
setNotificationFactory
(NotificationFactory notificationFactory) void
setTemplateRenderer
(TemplateRenderer templateRenderer) void
setTextProvider
(com.opensymphony.xwork2.TextProvider textProvider) @NotNull ErrorCollection
Validate the data user provided.Methods inherited from class com.atlassian.bamboo.notification.recipients.AbstractNotificationRecipient
compareTo, getDescription, getKey, getModuleDescriptor, getParam, getScopes, getTransports, init
-
Field Details
-
GROUP_FIELD
- See Also:
-
-
Constructor Details
-
GroupRecipient
public GroupRecipient()
-
-
Method Details
-
getTransports
Description copied from interface:NotificationRecipient
Evaluates the appropriate mediums for sending notifications for this recipient, returning a list of appropriate transports.- Specified by:
getTransports
in interfaceNotificationRecipient
-
getUserRecipients
- Specified by:
getUserRecipients
in interfaceNotificationRecipient.UserRecipientExpandable
-
init
Description copied from interface:NotificationRecipient
Initialise recipient with string based representation of its configuration data- Specified by:
init
in interfaceNotificationRecipient
- Overrides:
init
in classAbstractNotificationRecipient
-
getRecipientConfig
Description copied from interface:NotificationRecipient
Retrieve string representation of data - if none exists return empty string- Specified by:
getRecipientConfig
in interfaceNotificationRecipient
- Overrides:
getRecipientConfig
in classAbstractNotificationRecipient
-
populate
Description copied from interface:NotificationRecipient
takes the map of config data from action and extracts the parameters it needs- Specified by:
populate
in interfaceNotificationRecipient
- Overrides:
populate
in classAbstractNotificationRecipient
- Parameters:
params
- map of key (String), value (String []) pairs from action
-
validate
Description copied from interface:NotificationRecipient
Validate the data user provided.- Specified by:
validate
in interfaceNotificationRecipient
- Overrides:
validate
in classAbstractNotificationRecipient
- Parameters:
params
- map of key (String), value (String []) pairs from action- Returns:
- error collection of any errors to be reported back to the user
-
getEditHtml
Description copied from interface:NotificationRecipient
Returns the html to be displayed on the edit screen (to input data into notification type)- Specified by:
getEditHtml
in interfaceNotificationRecipient
- Overrides:
getEditHtml
in classAbstractNotificationRecipient
- Returns:
- String of html
-
getViewHtml
Description copied from interface:NotificationRecipient
Returns the HTML representing the notification type for the notification- Specified by:
getViewHtml
in interfaceNotificationRecipient
- Overrides:
getViewHtml
in classAbstractNotificationRecipient
- Returns:
- HTML of data for view configuration. If this returns null the description will be used.
-
setGroupName
-
setBambooUserManager
-
setTemplateRenderer
-
setNotificationFactory
-
setTextProvider
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
-