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
FieldsFields inherited from class com.atlassian.bamboo.notification.recipients.AbstractNotificationRecipient
notificationRecipientModuleDescriptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns the html to be displayed on the edit screen (to input data into notification type)@NotNull StringRetrieve 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 StringReturns the HTML representing the notification type for the notificationvoidInitialise recipient with string based representation of its configuration datavoidtakes the map of config data from action and extracts the parameters it needsvoidsetBambooUserManager(BambooUserManager bambooUserManager) voidsetGroupName(String groupName) voidsetNotificationFactory(NotificationFactory notificationFactory) voidsetTemplateRenderer(TemplateRenderer templateRenderer) voidsetTextProvider(com.opensymphony.xwork2.TextProvider textProvider) @NotNull ErrorCollectionValidate 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:NotificationRecipientEvaluates the appropriate mediums for sending notifications for this recipient, returning a list of appropriate transports.- Specified by:
getTransportsin interfaceNotificationRecipient
-
getUserRecipients
- Specified by:
getUserRecipientsin interfaceNotificationRecipient.UserRecipientExpandable
-
init
Description copied from interface:NotificationRecipientInitialise recipient with string based representation of its configuration data- Specified by:
initin interfaceNotificationRecipient- Overrides:
initin classAbstractNotificationRecipient
-
getRecipientConfig
Description copied from interface:NotificationRecipientRetrieve string representation of data - if none exists return empty string- Specified by:
getRecipientConfigin interfaceNotificationRecipient- Overrides:
getRecipientConfigin classAbstractNotificationRecipient
-
populate
Description copied from interface:NotificationRecipienttakes the map of config data from action and extracts the parameters it needs- Specified by:
populatein interfaceNotificationRecipient- Overrides:
populatein classAbstractNotificationRecipient- Parameters:
params- map of key (String), value (String []) pairs from action
-
validate
Description copied from interface:NotificationRecipientValidate the data user provided.- Specified by:
validatein interfaceNotificationRecipient- Overrides:
validatein 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:NotificationRecipientReturns the html to be displayed on the edit screen (to input data into notification type)- Specified by:
getEditHtmlin interfaceNotificationRecipient- Overrides:
getEditHtmlin classAbstractNotificationRecipient- Returns:
- String of html
-
getViewHtml
Description copied from interface:NotificationRecipientReturns the HTML representing the notification type for the notification- Specified by:
getViewHtmlin interfaceNotificationRecipient- Overrides:
getViewHtmlin 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)
-