Class DefaultB2BEmailService

java.lang.Object
de.hybris.platform.b2b.services.impl.DefaultB2BEmailService
All Implemented Interfaces:
B2BEmailService
Direct Known Subclasses:
MockB2BEmailService

public class DefaultB2BEmailService extends Object implements B2BEmailService
Default implementation of the B2BEmailService.
Spring Bean ID:
b2bEmailService
  • Constructor Details

    • DefaultB2BEmailService

      public DefaultB2BEmailService()
  • Method Details

    • createOrderApprovalEmail

      public org.apache.commons.mail.HtmlEmail createOrderApprovalEmail(String emailTemplateCode, OrderModel order, B2BCustomerModel user, javax.mail.internet.InternetAddress from, String subject) throws org.apache.commons.mail.EmailException
      Description copied from interface: B2BEmailService
      Creates an Approval email to be sent to the B2BCustomer.
      Specified by:
      createOrderApprovalEmail in interface B2BEmailService
      Parameters:
      emailTemplateCode - used to determine the RendererTemplateModel to be used
      order - the order
      user - the user the email will be sent to
      from - the email address of the sender
      subject - the title of the email message
      Returns:
      the html encoded email message
      Throws:
      org.apache.commons.mail.EmailException
    • createOrderRejectionEmail

      public org.apache.commons.mail.HtmlEmail createOrderRejectionEmail(String emailTemplateCode, OrderModel order, B2BCustomerModel user, javax.mail.internet.InternetAddress from, String subject) throws org.apache.commons.mail.EmailException
      Description copied from interface: B2BEmailService
      Creates a Rejection email to be sent to the B2BCustomer.
      Specified by:
      createOrderRejectionEmail in interface B2BEmailService
      Parameters:
      emailTemplateCode - used to determine the RendererTemplateModel to be used
      user - the user the email will be sent to
      from - the email address of the sender
      subject - the title of the email message
      Returns:
      the html encoded email message
      Throws:
      org.apache.commons.mail.EmailException
    • sendEmail

      public void sendEmail(org.apache.commons.mail.HtmlEmail email) throws org.apache.commons.mail.EmailException
      Description copied from interface: B2BEmailService
      Sends the email out to the B2BCustomer
      Specified by:
      sendEmail in interface B2BEmailService
      Parameters:
      email - the html email message to be sent
      Throws:
      org.apache.commons.mail.EmailException
    • getRendererService

      protected RendererService getRendererService()
    • setRendererService

      public void setRendererService(RendererService rendererService)
    • getOrderInfoContextDtoFactory

      protected OrderInfoContextDtoFactory<OrderInfoContextDto> getOrderInfoContextDtoFactory()
    • setOrderInfoContextDtoFactory

      public void setOrderInfoContextDtoFactory(OrderInfoContextDtoFactory<OrderInfoContextDto> orderInfoContextDtoFactory)