public class MockB2BEmailService extends DefaultB2BEmailService
AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
MockB2BEmailService() |
| Modifier and Type | Method and Description |
|---|---|
HtmlEmail |
createOrderApprovalEmail(String emailTemplateCode,
OrderModel order,
B2BCustomerModel user,
InternetAddress from,
String subject)
Creates an Approval email to be sent to the B2BCustomer.
|
HtmlEmail |
createOrderRejectionEmail(String emailTemplateCode,
OrderModel order,
B2BCustomerModel user,
InternetAddress from,
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, setRendererServicegetModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplacepublic void sendEmail(HtmlEmail email)
throws EmailException
B2BEmailServicesendEmail in interface B2BEmailServicesendEmail in class DefaultB2BEmailServiceemail - the html email message to be sentEmailExceptionpublic HtmlEmail createOrderApprovalEmail(String emailTemplateCode, OrderModel order, B2BCustomerModel user, InternetAddress from, 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(String emailTemplateCode, OrderModel order, B2BCustomerModel user, InternetAddress from, 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 © 2017 SAP SE. All Rights Reserved.