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
FieldsModifier and TypeFieldDescriptionprotected BusinessObjectFactory(package private) static org.apache.commons.logging.Logprotected Collectionprotected Settingsprotected User -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidvoidvoidSends 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, setSwallowExceptionsMethods 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
initializeMethods 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:
getExecuteInSeparateThreadin classBaseTrigger
-
processLowStockNotification
- Specified by:
processLowStockNotificationin 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 thesscSettingand (for specific products) in thesscProductSettingdatabase 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:
processTriggerin classBaseTrigger- Throws:
Exception
-