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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint@NotNull StringReturns generic string description of this notification type@NotNull StringReturns the html to be displayed on the edit screen (to input data into notification type)@NotNull StringgetKey()returns full key for this condition object@Nullable com.atlassian.plugin.web.api.descriptors.WeightedDescriptorreturns the moduleDescriptor for this plugin object if it exists.protected String@NotNull StringRetrieve string representation of data - if none exists return empty string@Nullable Set<NotificationRecipient.Scope>protected List<NotificationTransport>getTransports(Set<UserRecipient> userRecipients) @NotNull StringReturns the HTML representing the notification type for the notificationvoidinit(@NotNull com.atlassian.plugin.web.api.descriptors.WeightedDescriptor moduleDescriptor) initialises the notification type plugin object with its module descriptorvoidInitialise recipient with string based representation of its configuration datavoidtakes the map of config data from action and extracts the parameters it needs@NotNull ErrorCollectionValidate the data user provided.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:NotificationRecipientinitialises the notification type plugin object with its module descriptor- Specified by:
initin interfaceNotificationRecipient- Parameters:
moduleDescriptor- for this plugin object
-
getModuleDescriptor
@Nullable public @Nullable com.atlassian.plugin.web.api.descriptors.WeightedDescriptor getModuleDescriptor()Description copied from interface:NotificationRecipientreturns the moduleDescriptor for this plugin object if it exists.- Specified by:
getModuleDescriptorin interfaceNotificationRecipient
-
getDescription
Description copied from interface:NotificationRecipientReturns generic string description of this notification type- Specified by:
getDescriptionin interfaceNotificationRecipient- Returns:
- string description - can not be null
-
getKey
Description copied from interface:NotificationRecipientreturns full key for this condition object- Specified by:
getKeyin interfaceNotificationRecipient- Returns:
- string key (as in plugin definition), can not be null
-
init
Description copied from interface:NotificationRecipientInitialise recipient with string based representation of its configuration data- Specified by:
initin interfaceNotificationRecipient
-
getRecipientConfig
Description copied from interface:NotificationRecipientRetrieve string representation of data - if none exists return empty string- Specified by:
getRecipientConfigin interfaceNotificationRecipient
-
populate
Description copied from interface:NotificationRecipienttakes the map of config data from action and extracts the parameters it needs- Specified by:
populatein interfaceNotificationRecipient- 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- 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- Returns:
- String of html
-
getViewHtml
Description copied from interface:NotificationRecipientReturns the HTML representing the notification type for the notification- Specified by:
getViewHtmlin interfaceNotificationRecipient- Returns:
- HTML of data for view configuration. If this returns null the description will be used.
-
getScopes
- Specified by:
getScopesin interfaceNotificationRecipient- Returns:
- The scopes of the notification recipient, e.g. "system" or "chain" or "deployment" or empty.
-
getParam
-
compareTo
- Specified by:
compareToin interfaceComparable
-
getTransports
-