org.sonar.api.notifications
Class NotificationChannel
java.lang.Object
org.sonar.api.notifications.NotificationChannel
- All Implemented Interfaces:
- Extension, ServerComponent, ServerExtension
public abstract class NotificationChannel
- extends Object
- implements ServerExtension
Plugins should extend this class to provide implementation on a specific way to deliver notifications.
For example:
- email - sends email as soon as possible
- email (digest) - collects notifications and sends them together once a day
- gtalk - sends a chat message as soon as possible
- Since:
- 2.10
NotificationChannel
public NotificationChannel()
getKey
public String getKey()
- Returns the unique key of this channel.
- Returns:
- the key
deliver
public abstract void deliver(Notification notification,
String userlogin)
- Implements the delivery of the given notification to the given user.
- Parameters:
notification
- the notification to deliveruserlogin
- the login of the user who should receive the notification
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009–2015 SonarSource. All rights reserved.