Class AbstractOrderEmailJob
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.jobs.AbstractJob
com.softslate.commerce.businessobjects.jobs.AbstractOrderEmailJob
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,org.quartz.Job
- Direct Known Subclasses:
AbandonedCartEmailJob
,CustomerFollowUpJob
,OrderShippedJob
-
Field Summary
Modifier and TypeFieldDescriptionprotected ActionUtils
protected String
protected String
protected EmailOptOutProcessor
protected EmailProcessor
protected String
(package private) static org.apache.commons.logging.Log
protected String
protected OrderProcessor
protected int
protected Template
protected String
protected TemplateProcessor
Fields inherited from class com.softslate.commerce.businessobjects.jobs.AbstractJob
isOn, useXMLData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Email
createEmailFromOrder
(Order order, String emailType, Template template, String ccEmails, String bccEmails) createExtraTemplateObjects
(Order order) protected TemplateParser
void
executeJob
(org.quartz.JobExecutionContext context) protected String
protected void
initialize
(org.quartz.JobExecutionContext context) protected abstract Collection<Order>
protected boolean
processOrder
(Order order) protected void
protected boolean
Methods inherited from class com.softslate.commerce.businessobjects.jobs.AbstractJob
destroy, execute, getJobName, getServletContext, getSettingsPrefix, initSoftSlate, intFromJobDataMap, intFromSettings, setJobName, setServletContext, setSettingsPrefix, stringFromJobDataMap, stringFromSettings
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 org.quartz.Job
execute
-
Field Details
-
log
static org.apache.commons.logging.Log log -
templateProcessor
-
orderProcessor
-
emailProcessor
-
emailOptOutProcessor
-
actionUtils
-
template
-
templateCode
-
emailType
-
optOutType
-
sendEmailsPerRun
protected int sendEmailsPerRun -
ccEmails
-
bccEmails
-
-
Constructor Details
-
AbstractOrderEmailJob
public AbstractOrderEmailJob()
-
-
Method Details
-
executeJob
- Specified by:
executeJob
in classAbstractJob
- Throws:
Exception
-
initialize
- Overrides:
initialize
in classAbstractJob
- Throws:
Exception
-
loadOrdersToProcess
- Throws:
Exception
-
processOrder
- Throws:
Exception
-
skipOrder
- Throws:
Exception
-
findEmailFromOrderOrCustomer
-
createEmailFromOrder
protected Email createEmailFromOrder(Order order, String emailType, Template template, String ccEmails, String bccEmails) throws Exception - Throws:
Exception
-
createExtraTemplateObjects
- Throws:
Exception
-
createTemplateParser
protected TemplateParser createTemplateParser(Template template, Email email, Map<String, Object> extraTemplateObjects) throws Exception- Throws:
Exception
-
sendEmail
- Throws:
Exception
-