org.sonar.plugins.emailnotifications
Class EmailNotificationChannel

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

public class EmailNotificationChannel
extends NotificationChannel

References:

Since:
2.10

Constructor Summary
EmailNotificationChannel(EmailConfiguration configuration, EmailTemplate[] templates, UserFinder userFinder)
           
 
Method Summary
 void deliver(Notification notification, String username)
           
 void sendTestEmail(String toAddress, String subject, String message)
          Send test email.
 
Methods inherited from class org.sonar.api.notifications.NotificationChannel
getKey, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmailNotificationChannel

public EmailNotificationChannel(EmailConfiguration configuration,
                                EmailTemplate[] templates,
                                UserFinder userFinder)
Method Detail

deliver

public void deliver(Notification notification,
                    String username)
Specified by:
deliver in class NotificationChannel

sendTestEmail

public void sendTestEmail(String toAddress,
                          String subject,
                          String message)
                   throws org.apache.commons.mail.EmailException
Send test email. This method called from Ruby.

Throws:
org.apache.commons.mail.EmailException - when unable to send


Copyright © 2009-2011 SonarSource. All Rights Reserved.