org.sonar.plugins.emailnotifications.newviolations
Class NewViolationsOnMyFavouriteProject

java.lang.Object
  extended by org.sonar.api.notifications.NotificationDispatcher
      extended by org.sonar.plugins.emailnotifications.newviolations.NewViolationsOnMyFavouriteProject
All Implemented Interfaces:
Extension, ServerComponent, ServerExtension

public class NewViolationsOnMyFavouriteProject
extends NotificationDispatcher

This dispatcher means: "notify me when new violations are introduced on projects that I flagged as favourite".

Since:
2.14

Nested Class Summary
 
Nested classes/interfaces inherited from class org.sonar.api.notifications.NotificationDispatcher
NotificationDispatcher.Context
 
Constructor Summary
NewViolationsOnMyFavouriteProject(PropertiesDao propertiesDao)
           
 
Method Summary
 void dispatch(Notification notification, NotificationDispatcher.Context context)
           Implements the logic that defines which users will receive the notification.
 
Methods inherited from class org.sonar.api.notifications.NotificationDispatcher
getKey, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewViolationsOnMyFavouriteProject

public NewViolationsOnMyFavouriteProject(PropertiesDao propertiesDao)
Method Detail

dispatch

public void dispatch(Notification notification,
                     NotificationDispatcher.Context context)
Description copied from class: NotificationDispatcher

Implements the logic that defines which users will receive the notification.

The purpose of this method is to populate the context object with users, based on the type of notification and the content of the notification.

Specified by:
dispatch in class NotificationDispatcher
Parameters:
notification - the notification that will be sent


Copyright © 2009-2012 SonarSource. All Rights Reserved.