Package de.hybris.platform.b2b.mock
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 Summary
Constructors Constructor Description MockB2BEmailService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.mail.HtmlEmailcreateOrderApprovalEmail(java.lang.String emailTemplateCode, OrderModel order, B2BCustomerModel user, javax.mail.internet.InternetAddress from, java.lang.String subject)Creates an Approval email to be sent to the B2BCustomer.org.apache.commons.mail.HtmlEmailcreateOrderRejectionEmail(java.lang.String emailTemplateCode, OrderModel order, B2BCustomerModel user, javax.mail.internet.InternetAddress from, java.lang.String subject)Creates a Rejection email to be sent to the B2BCustomer.voidsendEmail(org.apache.commons.mail.HtmlEmail email)Sends the email out to the B2BCustomer-
Methods inherited from class de.hybris.platform.b2b.services.impl.DefaultB2BEmailService
getOrderInfoContextDtoFactory, getRendererService, setOrderInfoContextDtoFactory, setRendererService
-
-
-
-
Method Detail
-
sendEmail
public void sendEmail(org.apache.commons.mail.HtmlEmail email) throws org.apache.commons.mail.EmailExceptionDescription copied from interface:B2BEmailServiceSends the email out to the B2BCustomer- Specified by:
sendEmailin interfaceB2BEmailService- Overrides:
sendEmailin classDefaultB2BEmailService- Parameters:
email- the html email message to be sent- Throws:
org.apache.commons.mail.EmailException
-
createOrderApprovalEmail
public org.apache.commons.mail.HtmlEmail createOrderApprovalEmail(java.lang.String emailTemplateCode, OrderModel order, B2BCustomerModel user, javax.mail.internet.InternetAddress from, java.lang.String subject) throws org.apache.commons.mail.EmailExceptionDescription copied from interface:B2BEmailServiceCreates an Approval email to be sent to the B2BCustomer.- Specified by:
createOrderApprovalEmailin interfaceB2BEmailService- Overrides:
createOrderApprovalEmailin classDefaultB2BEmailService- 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(java.lang.String emailTemplateCode, OrderModel order, B2BCustomerModel user, javax.mail.internet.InternetAddress from, java.lang.String subject) throws org.apache.commons.mail.EmailExceptionDescription copied from interface:B2BEmailServiceCreates a Rejection email to be sent to the B2BCustomer.- Specified by:
createOrderRejectionEmailin interfaceB2BEmailService- Overrides:
createOrderRejectionEmailin classDefaultB2BEmailService- 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
-
-