Class DefaultB2BEmailService
java.lang.Object
de.hybris.platform.b2b.services.impl.DefaultB2BEmailService
- All Implemented Interfaces:
B2BEmailService
- Direct Known Subclasses:
MockB2BEmailService
Default implementation of the
B2BEmailService.- Spring Bean ID:
- b2bEmailService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.mail.HtmlEmailcreateOrderApprovalEmail(String emailTemplateCode, OrderModel order, B2BCustomerModel user, javax.mail.internet.InternetAddress from, String subject) Creates an Approval email to be sent to the B2BCustomer.org.apache.commons.mail.HtmlEmailcreateOrderRejectionEmail(String emailTemplateCode, OrderModel order, B2BCustomerModel user, javax.mail.internet.InternetAddress from, String subject) Creates a Rejection email to be sent to the B2BCustomer.protected OrderInfoContextDtoFactory<OrderInfoContextDto>protected RendererServicevoidsendEmail(org.apache.commons.mail.HtmlEmail email) Sends the email out to the B2BCustomervoidsetOrderInfoContextDtoFactory(OrderInfoContextDtoFactory<OrderInfoContextDto> orderInfoContextDtoFactory) voidsetRendererService(RendererService rendererService)
-
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:B2BEmailServiceCreates an Approval email to be sent to the B2BCustomer.- Specified by:
createOrderApprovalEmailin interfaceB2BEmailService- Parameters:
emailTemplateCode- used to determine theRendererTemplateModelto be usedorder- the orderuser- the user the email will be sent tofrom- the email address of the sendersubject- 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:B2BEmailServiceCreates a Rejection email to be sent to the B2BCustomer.- Specified by:
createOrderRejectionEmailin interfaceB2BEmailService- Parameters:
emailTemplateCode- used to determine theRendererTemplateModelto be useduser- the user the email will be sent tofrom- the email address of the sendersubject- 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:B2BEmailServiceSends the email out to the B2BCustomer- Specified by:
sendEmailin interfaceB2BEmailService- Parameters:
email- the html email message to be sent- Throws:
org.apache.commons.mail.EmailException
-
getRendererService
-
setRendererService
-
getOrderInfoContextDtoFactory
-
setOrderInfoContextDtoFactory
public void setOrderInfoContextDtoFactory(OrderInfoContextDtoFactory<OrderInfoContextDto> orderInfoContextDtoFactory)
-