Class EmailNotificationTrigger
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.events.BaseTrigger
com.softslate.commerce.businessobjects.events.EmailNotificationTrigger
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,Runnable
- Direct Known Subclasses:
OrderStatusEmailNotificationTriggerImpl
-
Field Summary
Modifier and TypeFieldDescriptionprotected BusinessObjectFactory
protected Email
protected String
protected Template
protected String
protected TemplateParser
protected TemplateProcessor
Fields inherited from class com.softslate.commerce.businessobjects.events.BaseTrigger
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Email
protected Email
createEmailFromOrder
(Order order) protected TemplateParser
(package private) abstract void
void
protected void
Methods inherited from class com.softslate.commerce.businessobjects.events.BaseTrigger
addMessage, getExecuteInSeparateThread, getIsActive, getSwallowExceptions, process, processInSameThread, processInSeparateThread, run, setExecuteInSeparateThread, setIsActive, setSwallowExceptions
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
-
Field Details
-
templateCode
-
emailType
-
template
-
templateProcessor
-
templateParser
-
email
-
extraTemplateObjects
-
bof
-
-
Constructor Details
-
EmailNotificationTrigger
public EmailNotificationTrigger()
-
-
Method Details
-
initializeTemplateCodeAndType
- Throws:
Exception
-
processTrigger
- Specified by:
processTrigger
in classBaseTrigger
- Throws:
Exception
-
createEmail
- Throws:
Exception
-
createEmailFromOrder
- Throws:
Exception
-
createExtraTemplateObjects
- Throws:
Exception
-
createTemplateParser
- Throws:
Exception
-
sendEmail
- Throws:
Exception
-