Class AbstractNotificationRecipient
java.lang.Object
com.atlassian.bamboo.notification.recipients.AbstractNotificationRecipient
- All Implemented Interfaces:
NotificationRecipient
,BambooPluginModule
,Comparable
- Direct Known Subclasses:
CommitterRecipient
,EmailRecipient
,GroupRecipient
,ImRecipient
,ResponsibleRecipient
,UserRecipientImpl
,WatcherRecipient
,WebhookRecipient
-
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
@NotNull String
Returns generic string description of this notification type@NotNull String
Returns the html to be displayed on the edit screen (to input data into notification type)@NotNull String
getKey()
returns full key for this condition object@Nullable com.atlassian.plugin.web.api.descriptors.WeightedDescriptor
returns the moduleDescriptor for this plugin object if it exists.protected String
@NotNull String
Retrieve string representation of data - if none exists return empty string@Nullable Set<NotificationRecipient.Scope>
protected List<NotificationTransport>
getTransports
(Set<UserRecipient> userRecipients) @NotNull String
Returns the HTML representing the notification type for the notificationvoid
init
(@NotNull com.atlassian.plugin.web.api.descriptors.WeightedDescriptor moduleDescriptor) initialises the notification type plugin object with its module descriptorvoid
Initialise recipient with string based representation of its configuration datavoid
takes the map of config data from action and extracts the parameters it needs@NotNull ErrorCollection
Validate the data user provided.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.notification.NotificationRecipient
getTransports
-
Field Details
-
notificationRecipientModuleDescriptor
-
-
Constructor Details
-
AbstractNotificationRecipient
public AbstractNotificationRecipient()
-
-
Method Details
-
init
public void init(@NotNull @NotNull com.atlassian.plugin.web.api.descriptors.WeightedDescriptor moduleDescriptor) Description copied from interface:NotificationRecipient
initialises the notification type plugin object with its module descriptor- Specified by:
init
in interfaceNotificationRecipient
- Parameters:
moduleDescriptor
- for this plugin object
-
getModuleDescriptor
@Nullable public @Nullable com.atlassian.plugin.web.api.descriptors.WeightedDescriptor getModuleDescriptor()Description copied from interface:NotificationRecipient
returns the moduleDescriptor for this plugin object if it exists.- Specified by:
getModuleDescriptor
in interfaceNotificationRecipient
-
getDescription
Description copied from interface:NotificationRecipient
Returns generic string description of this notification type- Specified by:
getDescription
in interfaceNotificationRecipient
- Returns:
- string description - can not be null
-
getKey
Description copied from interface:NotificationRecipient
returns full key for this condition object- Specified by:
getKey
in interfaceNotificationRecipient
- Returns:
- string key (as in plugin definition), can not be null
-
init
Description copied from interface:NotificationRecipient
Initialise recipient with string based representation of its configuration data- Specified by:
init
in interfaceNotificationRecipient
-
getRecipientConfig
Description copied from interface:NotificationRecipient
Retrieve string representation of data - if none exists return empty string- Specified by:
getRecipientConfig
in interfaceNotificationRecipient
-
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
- 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
- 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
- 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
- Returns:
- HTML of data for view configuration. If this returns null the description will be used.
-
getScopes
- Specified by:
getScopes
in interfaceNotificationRecipient
- Returns:
- The scopes of the notification recipient, e.g. "system" or "chain" or "deployment" or empty.
-
getParam
-
compareTo
- Specified by:
compareTo
in interfaceComparable
-
getTransports
-