Class CommitterRecipient
- java.lang.Object
-
- com.atlassian.bamboo.notification.recipients.AbstractNotificationRecipient
-
- com.atlassian.bamboo.notification.recipients.CommitterRecipient
-
- All Implemented Interfaces:
NotificationRecipient
,NotificationRecipient.RequiresPlan
,NotificationRecipient.RequiresResultSummary
,NotificationRecipient.UserRecipientExpandable
,BambooPluginModule
,Comparable
public class CommitterRecipient extends AbstractNotificationRecipient implements NotificationRecipient.RequiresResultSummary, NotificationRecipient.UserRecipientExpandable, NotificationRecipient.RequiresPlan
Represents a notification recipient for whoever has committed to a build Only relevant for a build completed notification related events.
-
-
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 inherited from class com.atlassian.bamboo.notification.recipients.AbstractNotificationRecipient
notificationRecipientModuleDescriptor
-
-
Constructor Summary
Constructors Constructor Description CommitterRecipient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull List<NotificationTransport>
getTransports()
Evaluates the appropriate mediums for sending notifications for this recipient, returning a list of appropriate transports.@NotNull Set<UserRecipient>
getUserRecipients()
@NotNull String
getViewHtml()
Returns the HTML representing the notification type for the notificationvoid
setCommitManager(CommitManager commitManager)
void
setCommits(Set<? extends CommitContext> commits)
void
setNotificationFactory(NotificationFactory notificationFactory)
void
setPermissionManager(BambooPermissionManager permissionManager)
void
setPlan(@Nullable ImmutablePlan plan)
void
setResultsSummary(@Nullable ResultsSummary resultsSummary)
-
Methods inherited from class com.atlassian.bamboo.notification.recipients.AbstractNotificationRecipient
compareTo, getDescription, getEditHtml, getKey, getModuleDescriptor, getParam, getRecipientConfig, getScopes, getTransports, init, init, populate, validate
-
-
-
-
Method Detail
-
getTransports
@NotNull public @NotNull List<NotificationTransport> getTransports()
Description copied from interface:NotificationRecipient
Evaluates the appropriate mediums for sending notifications for this recipient, returning a list of appropriate transports.- Specified by:
getTransports
in interfaceNotificationRecipient
-
getUserRecipients
@NotNull public @NotNull Set<UserRecipient> getUserRecipients()
- Specified by:
getUserRecipients
in interfaceNotificationRecipient.UserRecipientExpandable
-
getViewHtml
@NotNull public @NotNull String getViewHtml()
Description copied from interface:NotificationRecipient
Returns the HTML representing the notification type for the notification- Specified by:
getViewHtml
in interfaceNotificationRecipient
- Overrides:
getViewHtml
in classAbstractNotificationRecipient
- Returns:
- HTML of data for view configuration. If this returns null the description will be used.
-
setResultsSummary
public void setResultsSummary(@Nullable @Nullable ResultsSummary resultsSummary)
- Specified by:
setResultsSummary
in interfaceNotificationRecipient.RequiresResultSummary
-
setNotificationFactory
public void setNotificationFactory(NotificationFactory notificationFactory)
-
setCommits
public void setCommits(Set<? extends CommitContext> commits)
-
setPlan
public void setPlan(@Nullable @Nullable ImmutablePlan plan)
- Specified by:
setPlan
in interfaceNotificationRecipient.RequiresPlan
-
setPermissionManager
public void setPermissionManager(BambooPermissionManager permissionManager)
-
setCommitManager
public void setCommitManager(CommitManager commitManager)
-
-