Bamboo 2.2 : Notification Recipient Module
This page last changed on Mar 09, 2009 by bmccoy.
Description The Notification Recipient module allows you to create a custom recipient. A recipient is responsible for evaluating the methods of delivery and destinations of the notification. They do this by generating the appropriate Notification Transports. A Recipient can also take in configuration information from the user As a user can configure any Recipient with any Notification Type you need to ensure your recipient will behave when it doesn't have the required contextual information as sometimes a particular Recipient won't really apply (e.g. a committer recipient when there is no build). Notification Transport You can find more information on the various Notification components on the Building a Notification Plugin page. Interface Notification Recipients must implement the com.atlassian.bamboo.notification.NotificationRecipient interface. There is an abstract class com.atlassian.bamboo.notification.recipients.AbstractNotificationRecipient which you can extend that implements some of these methods for you with default values. Sample Module Descriptor <notificationRecipient key="recipient.user" name="User Recipient" class="com.atlassian.bamboo.notification.recipients.UserRecipient" weight="10"> <description>User</description> <resource type="freemarker" name="edit" location="templates/plugins/notifications/userRecipientEdit.ftl"/> </notificationRecipient> |
![]() |
Document generated by Confluence on Mar 09, 2009 17:07 |