Class BasicEmailProcessor
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.email.BasicEmailProcessor
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,EmailProcessor
- Author:
- Auto-Generated by SoftSlate Extender
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Email
createEmailFromCustomer
(Customer customer, String emailType, Template template, String toEmails, String ccEmails, String bccEmails) protected Email
createEmailFromOrder
(Order order, String emailType, Template template, String toEmails, String ccEmails, String bccEmails) createExtraTemplateObjects
(Customer customer) createExtraTemplateObjects
(Order order) protected TemplateParser
void
deleteEmail
(Map parameters) void
editDeleteEmails
(Map parameters) emailsCountByTypeAndCustomerID
(String type, int customerID) emailsCountByTypeAndEmailAddress
(String type, String emailAddress) emailsCountByTypeAndEmailAddressAfterCreatedTime
(String type, String emailAddress, String createdTime) emailsCountByTypeAndOrderID
(String type, int orderID) loadEmailFromID
(Map parameters) loadEmailsAndCount
(Map parameters) boolean
sendCustomerEmail
(Customer customer, String templateCode, String toEmails, String ccEmails, String bccEmails, Map<String, Object> extraTemplateObjects) protected void
boolean
sendGiftCertificateEmail
(Order order, String templateCode, String toEmails, String ccEmails, String bccEmails, Map<String, Object> extraTemplateObjects) boolean
sendOrderEmail
(Order order, String templateCode, String toEmails, String ccEmails, String bccEmails, Map<String, Object> extraTemplateObjects) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getProductIDs, getSettings, getUser, initialize, isProcessorClassActive, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPGet, sendHTTPPost, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, updateOrderTotals, updateOrderTotals, updateOrderTotals, utils
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
-
Field Details
-
log
static org.apache.commons.logging.Log log
-
-
Constructor Details
-
BasicEmailProcessor
public BasicEmailProcessor()
-
-
Method Details
-
loadEmailsAndCount
- Specified by:
loadEmailsAndCount
in interfaceEmailProcessor
- Throws:
Exception
-
addEmail
- Specified by:
addEmail
in interfaceEmailProcessor
- Throws:
Exception
-
loadEmailFromID
- Specified by:
loadEmailFromID
in interfaceEmailProcessor
- Throws:
Exception
-
editEmail
- Specified by:
editEmail
in interfaceEmailProcessor
- Throws:
Exception
-
editDeleteEmails
- Specified by:
editDeleteEmails
in interfaceEmailProcessor
- Throws:
Exception
-
deleteEmail
- Specified by:
deleteEmail
in interfaceEmailProcessor
- Throws:
Exception
-
loadAllEmails
- Specified by:
loadAllEmails
in interfaceEmailProcessor
- Throws:
Exception
-
emailsCountByTypeAndOrderID
- Specified by:
emailsCountByTypeAndOrderID
in interfaceEmailProcessor
- Throws:
Exception
-
emailsCountByTypeAndCustomerID
- Specified by:
emailsCountByTypeAndCustomerID
in interfaceEmailProcessor
- Throws:
Exception
-
emailsCountByTypeAndEmailAddress
- Specified by:
emailsCountByTypeAndEmailAddress
in interfaceEmailProcessor
- Throws:
Exception
-
emailsCountByTypeAndEmailAddressAfterCreatedTime
public Integer emailsCountByTypeAndEmailAddressAfterCreatedTime(String type, String emailAddress, String createdTime) throws Exception - Specified by:
emailsCountByTypeAndEmailAddressAfterCreatedTime
in interfaceEmailProcessor
- Throws:
Exception
-
sendCustomerEmail
public boolean sendCustomerEmail(Customer customer, String templateCode, String toEmails, String ccEmails, String bccEmails, Map<String, Object> extraTemplateObjects) throws Exception- Specified by:
sendCustomerEmail
in interfaceEmailProcessor
- Throws:
Exception
-
sendOrderEmail
public boolean sendOrderEmail(Order order, String templateCode, String toEmails, String ccEmails, String bccEmails, Map<String, Object> extraTemplateObjects) throws Exception- Specified by:
sendOrderEmail
in interfaceEmailProcessor
- Throws:
Exception
-
sendGiftCertificateEmail
public boolean sendGiftCertificateEmail(Order order, String templateCode, String toEmails, String ccEmails, String bccEmails, Map<String, Object> extraTemplateObjects) throws Exception- Specified by:
sendGiftCertificateEmail
in interfaceEmailProcessor
- Throws:
Exception
-
createEmailFromCustomer
protected Email createEmailFromCustomer(Customer customer, String emailType, Template template, String toEmails, String ccEmails, String bccEmails) throws Exception - Throws:
Exception
-
createEmailFromOrder
protected Email createEmailFromOrder(Order order, String emailType, Template template, String toEmails, String ccEmails, String bccEmails) throws Exception - Throws:
Exception
-
createExtraTemplateObjects
- Throws:
Exception
-
createExtraTemplateObjects
- Throws:
Exception
-
createTemplateParser
protected TemplateParser createTemplateParser(Template template, Email email, Map<String, Object> extraTemplateObjects) throws Exception- Throws:
Exception
-
sendEmail
- Throws:
Exception
-