public class MockB2BEmailService extends DefaultB2BEmailService
| Constructor and Description |
|---|
MockB2BEmailService() |
| Modifier and Type | Method and Description |
|---|---|
HtmlEmail |
createOrderApprovalEmail(java.lang.String emailTemplateCode,
OrderModel order,
B2BCustomerModel user,
InternetAddress from,
java.lang.String subject)
Creates an Approval email to be sent to the B2BCustomer.
|
HtmlEmail |
createOrderRejectionEmail(java.lang.String emailTemplateCode,
OrderModel order,
B2BCustomerModel user,
InternetAddress from,
java.lang.String subject)
Creates a Rejection email to be sent to the B2BCustomer.
|
void |
sendEmail(HtmlEmail email)
Sends the email out to the B2BCustomer
|
getOrderInfoContextDtoFactory, getRendererService, setOrderInfoContextDtoFactory, setRendererServicepublic void sendEmail(HtmlEmail email)
throws EmailException
B2BEmailServicesendEmail in interface B2BEmailServicesendEmail in class DefaultB2BEmailServiceemail - the html email message to be sentEmailExceptionpublic HtmlEmail createOrderApprovalEmail(java.lang.String emailTemplateCode,
OrderModel order,
B2BCustomerModel user,
InternetAddress from,
java.lang.String subject)
throws EmailException
B2BEmailServicecreateOrderApprovalEmail in interface B2BEmailServicecreateOrderApprovalEmail in class DefaultB2BEmailServiceemailTemplateCode - used to determine the RendererTemplateModel to be usedorder - the orderuser - the user the email will be sent tofrom - the email address of the sendersubject - the title of the email messageEmailExceptionpublic HtmlEmail createOrderRejectionEmail(java.lang.String emailTemplateCode,
OrderModel order,
B2BCustomerModel user,
InternetAddress from,
java.lang.String subject)
throws EmailException
B2BEmailServicecreateOrderRejectionEmail in interface B2BEmailServicecreateOrderRejectionEmail in class DefaultB2BEmailServiceemailTemplateCode - used to determine the RendererTemplateModel to be useduser - the user the email will be sent tofrom - the email address of the sendersubject - the title of the email messageEmailExceptionCopyright © 2018 SAP SE. All Rights Reserved.