Class MockB2BEmailService

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

public class MockB2BEmailService extends DefaultB2BEmailService
  • Constructor Details

    • MockB2BEmailService

      public MockB2BEmailService()
  • Method Details

    • 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
      Overrides:
      sendEmail in class DefaultB2BEmailService
      Parameters:
      email - the html email message to be sent
      Throws:
      org.apache.commons.mail.EmailException
    • 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
      Overrides:
      createOrderApprovalEmail in class DefaultB2BEmailService
      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
      Overrides:
      createOrderRejectionEmail in class DefaultB2BEmailService
      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