com.elasticpath.service.misc.impl
Class EmailServiceImpl

java.lang.Object
  extended by com.elasticpath.service.impl.AbstractEpServiceImpl
      extended by com.elasticpath.service.misc.impl.EmailServiceImpl
All Implemented Interfaces:
EpService, EmailService

public class EmailServiceImpl
extends AbstractEpServiceImpl
implements EmailService

Provides image rendering service.


Constructor Summary
EmailServiceImpl()
           
 
Method Summary
 void sendMail(java.util.List toEmailList, java.lang.String subject, java.lang.String txtTemplate, java.util.Map templateResources)
          Sends a txt only email to a list of recipients using the provided velocity Templates.
 void sendMail(java.util.List toEmailList, java.lang.String subject, java.lang.String htmlTemplate, java.lang.String txtTemplate, java.util.Map templateResources)
          Sends a multipart mime (html & txt) email to a list of recipients using the provided velocity Templates.
 void sendMail(java.lang.String toEmail, java.lang.String subject, java.lang.String txtTemplate, java.util.Map templateResources)
          Sends a txt only email to a recipient using the provided velocity Templates.
 void sendMail(java.lang.String toEmail, java.lang.String subject, java.lang.String htmlTemplate, java.lang.String txtTemplate, java.util.Map templateResources)
          Sends a multipart mime (html & txt) email to a recipient using the provided velocity Templates.
 void setGeography(Geography geography)
          Set the geography properties map.
 void setMailer(Mailer mailer)
          Set the mailer.
 void setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)
          Set the velocity engine.
 
Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Constructor Detail

EmailServiceImpl

public EmailServiceImpl()
Method Detail

sendMail

public void sendMail(java.util.List toEmailList,
                     java.lang.String subject,
                     java.lang.String txtTemplate,
                     java.util.Map templateResources)
Sends a txt only email to a list of recipients using the provided velocity Templates.

Specified by:
sendMail in interface EmailService
Parameters:
toEmailList - a list of recipient email addresses.
subject - the subject of the email.
txtTemplate - the txt version of the velocity template to render.
templateResources - a map of resources required to render the provided template.

sendMail

public void sendMail(java.util.List toEmailList,
                     java.lang.String subject,
                     java.lang.String htmlTemplate,
                     java.lang.String txtTemplate,
                     java.util.Map templateResources)
Sends a multipart mime (html & txt) email to a list of recipients using the provided velocity Templates.

Specified by:
sendMail in interface EmailService
Parameters:
toEmailList - a list of recipient email addresses.
subject - the subject of the email.
htmlTemplate - the html version of the velocity template to render.
txtTemplate - the txt version of the velocity template to render.
templateResources - a map of resources required to render the provided template.

sendMail

public void sendMail(java.lang.String toEmail,
                     java.lang.String subject,
                     java.lang.String txtTemplate,
                     java.util.Map templateResources)
Sends a txt only email to a recipient using the provided velocity Templates.

Specified by:
sendMail in interface EmailService
Parameters:
toEmail - the email address of the recipient.
subject - the subject of the email.
txtTemplate - the txt version of the velocity template to render.
templateResources - a map of resources required to render the provided template.

sendMail

public void sendMail(java.lang.String toEmail,
                     java.lang.String subject,
                     java.lang.String htmlTemplate,
                     java.lang.String txtTemplate,
                     java.util.Map templateResources)
Sends a multipart mime (html & txt) email to a recipient using the provided velocity Templates.

Specified by:
sendMail in interface EmailService
Parameters:
toEmail - the email address of the recipient.
subject - the subject of the email.
htmlTemplate - the html version of the velocity template to render.
txtTemplate - the txt version of the velocity template to render.
templateResources - a map of resources required to render the provided template.

setGeography

public void setGeography(Geography geography)
Set the geography properties map.

Parameters:
geography - the geography properties map.

setMailer

public void setMailer(Mailer mailer)
Set the mailer.

Parameters:
mailer - the mailer

setVelocityEngine

public void setVelocityEngine(org.apache.velocity.app.VelocityEngine velocityEngine)
Set the velocity engine.

Parameters:
velocityEngine - the velocity engine