org.sonar.api.notifications
Class NotificationChannel

java.lang.Object
  extended by 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:

Since:
2.10

Constructor Summary
NotificationChannel()
           
 
Method Summary
abstract  void deliver(Notification notification, String userlogin)
          Implements the delivery of the given notification to the given user.
 String getKey()
          Returns the unique key of this channel.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotificationChannel

public NotificationChannel()
Method Detail

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 deliver
userlogin - the login of the user who should receive the notification

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 SonarSource. All Rights Reserved.