com.atlassian.bamboo.notification.recipients
Class WatcherRecipient
java.lang.Object
com.atlassian.bamboo.notification.recipients.AbstractNotificationRecipient
com.atlassian.bamboo.notification.recipients.WatcherRecipient
- All Implemented Interfaces:
- NotificationRecipient, NotificationRecipient.RequiresPlan, NotificationRecipient.UserRecipientExpandable, java.lang.Comparable
public class WatcherRecipient
- extends AbstractNotificationRecipient
- implements NotificationRecipient.RequiresPlan, NotificationRecipient.UserRecipientExpandable
Represents a watcher notification recipient. A watcher is somene who has marked this
build as their favourite. This is only applicable for build related notification events.
Methods inherited from class com.atlassian.bamboo.notification.recipients.AbstractNotificationRecipient |
compareTo, getDescription, getEditHtml, getKey, getModuleDescriptor, getParam, getRecipientConfig, getTransports, init, init, populate, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WatcherRecipient
public WatcherRecipient()
getTransports
@NotNull
public java.util.List<NotificationTransport> getTransports()
- Description copied from interface:
NotificationRecipient
- Evaluates the appropriate mediums for sending notificaions for this recipient,
returning a list of appropriate transports.
- Specified by:
getTransports
in interface NotificationRecipient
- Returns:
getUserRecipients
@NotNull
public java.util.Set<UserRecipient> getUserRecipients()
- Specified by:
getUserRecipients
in interface NotificationRecipient.UserRecipientExpandable
getViewHtml
@NotNull
public java.lang.String getViewHtml()
- Description copied from interface:
NotificationRecipient
- Returns the HTML representing the notification type for the notification
- Specified by:
getViewHtml
in interface NotificationRecipient
- Overrides:
getViewHtml
in class AbstractNotificationRecipient
- Returns:
- HTML of data for view configuration. If this returns null the description will be used.
setLabelManager
public void setLabelManager(LabelManager labelManager)
setPlan
public void setPlan(@Nullable
Plan plan)
- Specified by:
setPlan
in interface NotificationRecipient.RequiresPlan
setNotificationFactory
public void setNotificationFactory(NotificationFactory notificationFactory)
Copyright © 2012 Atlassian. All Rights Reserved.