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 EmailcreateEmailFromCustomer(Customer customer, String emailType, Template template, String toEmails, String ccEmails, String bccEmails) protected EmailcreateEmailFromOrder(Order order, String emailType, Template template, String toEmails, String ccEmails, String bccEmails) createExtraTemplateObjects(Customer customer) createExtraTemplateObjects(Order order) protected TemplateParservoiddeleteEmail(Map parameters) voideditDeleteEmails(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) booleansendCustomerEmail(Customer customer, String templateCode, String toEmails, String ccEmails, String bccEmails, Map<String, Object> extraTemplateObjects) protected voidbooleansendGiftCertificateEmail(Order order, String templateCode, String toEmails, String ccEmails, String bccEmails, Map<String, Object> extraTemplateObjects) booleansendOrderEmail(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, utilsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
loadEmailsAndCountin interfaceEmailProcessor- Throws:
Exception
-
addEmail
- Specified by:
addEmailin interfaceEmailProcessor- Throws:
Exception
-
loadEmailFromID
- Specified by:
loadEmailFromIDin interfaceEmailProcessor- Throws:
Exception
-
editEmail
- Specified by:
editEmailin interfaceEmailProcessor- Throws:
Exception
-
editDeleteEmails
- Specified by:
editDeleteEmailsin interfaceEmailProcessor- Throws:
Exception
-
deleteEmail
- Specified by:
deleteEmailin interfaceEmailProcessor- Throws:
Exception
-
loadAllEmails
- Specified by:
loadAllEmailsin interfaceEmailProcessor- Throws:
Exception
-
emailsCountByTypeAndOrderID
- Specified by:
emailsCountByTypeAndOrderIDin interfaceEmailProcessor- Throws:
Exception
-
emailsCountByTypeAndCustomerID
- Specified by:
emailsCountByTypeAndCustomerIDin interfaceEmailProcessor- Throws:
Exception
-
emailsCountByTypeAndEmailAddress
- Specified by:
emailsCountByTypeAndEmailAddressin interfaceEmailProcessor- Throws:
Exception
-
emailsCountByTypeAndEmailAddressAfterCreatedTime
public Integer emailsCountByTypeAndEmailAddressAfterCreatedTime(String type, String emailAddress, String createdTime) throws Exception - Specified by:
emailsCountByTypeAndEmailAddressAfterCreatedTimein 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:
sendCustomerEmailin 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:
sendOrderEmailin 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:
sendGiftCertificateEmailin 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
-