com.atlassian.jira.mail
Class MailServiceImpl

java.lang.Object
  extended by com.atlassian.jira.mail.MailServiceImpl
All Implemented Interfaces:
MailService

public class MailServiceImpl
extends Object
implements MailService

Default implementation of MailService.

Since:
v5.0

Constructor Summary
MailServiceImpl(com.atlassian.mail.queue.MailQueue mailQueue)
           
 
Method Summary
 void sendRenderedMail(com.atlassian.crowd.embedded.api.User replyTo, NotificationRecipient recipient, String subjectTemplatePath, String bodyTemplatePath, Map<String,Object> context)
          Sends a Velocity-rendered email by adding the template and context to a MailQueueItem and adding that item to the queue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailServiceImpl

public MailServiceImpl(com.atlassian.mail.queue.MailQueue mailQueue)
Method Detail

sendRenderedMail

public void sendRenderedMail(com.atlassian.crowd.embedded.api.User replyTo,
                             NotificationRecipient recipient,
                             String subjectTemplatePath,
                             String bodyTemplatePath,
                             Map<String,Object> context)
Description copied from interface: MailService
Sends a Velocity-rendered email by adding the template and context to a MailQueueItem and adding that item to the queue. The final email will be rendered as the MailQueue is processed.

Specified by:
sendRenderedMail in interface MailService
Parameters:
replyTo - the user sending the email
recipient - the recipient of the email
subjectTemplatePath - the relative path to the Velocity template with the email's subject line
bodyTemplatePath - the relative path to the Velocity template with the email's body
context - the context map that will be used to render the templates


Copyright © 2002-2014 Atlassian. All Rights Reserved.