Package no.kommune.bergen.soa.common.util

Examples of no.kommune.bergen.soa.common.util.MailSender


    return velocityTemplateEngine;
  }

  @SuppressWarnings("unused")
  protected EmailFacade createEmailFacadeDocumentAlert(JavaMailSenderImpl javaMailSender, MessageTemplateAssembly templates) {
    MailSender mailSender = createMailSender(javaMailSender);
    EmailFacadeDocumentAlert emailFacade = new EmailFacadeDocumentAlert(templateEngine, mailSender, velocityModelFactory, pdfGenerator);
    emailFacade.setBodyTemplate(templates.getBodyTemplate());
    emailFacade.setBodyTemplateNoAttachment(templates.getBodyTemplateNoAttachment());
    emailFacade.setSubjectTemplate(templates.getSubjectTemplate());
    emailFacade.setPdfTemplate(templates.getPdfTemplate());
View Full Code Here


    emailFacade.setToTemplate(templates.getToTemplate());
    return emailFacade;
  }

  protected EmailFacade createEmailFacadeDocumentAttached(JavaMailSenderImpl javaMailSender, MessageTemplateAssembly templates) {
    MailSender mailSender = createMailSender(javaMailSender);
    EmailFacade emailFacade = new EmailFacade(templateEngine, mailSender, velocityModelFactory);
    emailFacade.setBodyTemplate(templates.getBodyTemplate());
    emailFacade.setBodyTemplateNoAttachment(templates.getBodyTemplateNoAttachment());
    emailFacade.setSubjectTemplate(templates.getSubjectTemplate());
    emailFacade.setReplyTo(templates.getReplyTo());
View Full Code Here

    emailFacade.setToTemplate(templates.getToTemplate());
    return emailFacade;
  }

  private MailSender createMailSender(JavaMailSenderImpl javaMailSender) {
    MailSender mailSender = new MailSender();
    mailSender.setJavaMailSender(javaMailSender);
    return mailSender;
  }
View Full Code Here

TOP

Related Classes of no.kommune.bergen.soa.common.util.MailSender

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.