Class InventoryNotificationTriggerImpl
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.InventoryNotificationTriggerImpl
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,InventoryNotificationTrigger
,Runnable
public class InventoryNotificationTriggerImpl
extends BaseTrigger
implements InventoryNotificationTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprotected BusinessObjectFactory
(package private) static org.apache.commons.logging.Log
protected Collection
protected Settings
protected User
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
void
void
Sends low stock emails related to the item or items being added to the cart or being ordered.Methods inherited from class com.softslate.commerce.businessobjects.events.BaseTrigger
addMessage, 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
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
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessProcessor
getAppComponents, getAppSettings, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getSettings, getUser, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, utils
-
Field Details
-
log
static org.apache.commons.logging.Log log -
lowStockEmails
-
settings
-
user
-
bof
-
-
Constructor Details
-
InventoryNotificationTriggerImpl
public InventoryNotificationTriggerImpl()
-
-
Method Details
-
getExecuteInSeparateThread
public boolean getExecuteInSeparateThread()- Overrides:
getExecuteInSeparateThread
in classBaseTrigger
-
processLowStockNotification
- Specified by:
processLowStockNotification
in interfaceInventoryNotificationTrigger
- Throws:
Exception
-
initializeFromEvent
- Throws:
Exception
-
processTrigger
Sends low stock emails related to the item or items being added to the cart or being ordered. Settings defining how these emails are produced exist in thesscSetting
and (for specific products) in thesscProductSetting
database tables. Among the settings are who receives the low-stock emails, what inventory level triggers the emails, and a template for the subject and body of the emails.- Specified by:
processTrigger
in classBaseTrigger
- Throws:
Exception
-