public class DefaultB2BEmailService extends java.lang.Object implements B2BEmailService
B2BEmailService.| Constructor and Description |
|---|
DefaultB2BEmailService() |
| 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.
|
protected OrderInfoContextDtoFactory<OrderInfoContextDto> |
getOrderInfoContextDtoFactory() |
protected RendererService |
getRendererService() |
void |
sendEmail(HtmlEmail email)
Sends the email out to the B2BCustomer
|
void |
setOrderInfoContextDtoFactory(OrderInfoContextDtoFactory<OrderInfoContextDto> orderInfoContextDtoFactory) |
void |
setRendererService(RendererService rendererService) |
public HtmlEmail createOrderApprovalEmail(java.lang.String emailTemplateCode,
OrderModel order,
B2BCustomerModel user,
InternetAddress from,
java.lang.String subject)
throws EmailException
B2BEmailServicecreateOrderApprovalEmail in interface B2BEmailServiceemailTemplateCode - 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 B2BEmailServiceemailTemplateCode - 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 messageEmailExceptionpublic void sendEmail(HtmlEmail email)
throws EmailException
B2BEmailServicesendEmail in interface B2BEmailServiceemail - the html email message to be sentEmailExceptionprotected RendererService getRendererService()
public void setRendererService(RendererService rendererService)
protected OrderInfoContextDtoFactory<OrderInfoContextDto> getOrderInfoContextDtoFactory()
public void setOrderInfoContextDtoFactory(OrderInfoContextDtoFactory<OrderInfoContextDto> orderInfoContextDtoFactory)
Copyright © 2018 SAP SE. All Rights Reserved.