Class BaseTrigger
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.events.BaseTrigger
- All Implemented Interfaces:
BusinessObject,BusinessProcessor,Runnable
- Direct Known Subclasses:
AvaTaxTriggerImpl,CapturePaymentTriggerImpl,EmailNotificationTrigger,InventoryNotificationTriggerImpl,QboOrderTriggerImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate boolean(package private) static org.apache.commons.logging.Logprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(Map results, ApplicationMessage.Level level, String message) booleanbooleanbooleanvoidprocess()voidvoidabstract voidvoidrun()voidsetExecuteInSeparateThread(boolean executeInSeparateThread) voidsetIsActive(boolean isActive) voidsetSwallowExceptions(boolean swallowExceptions) 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
-
log
static org.apache.commons.logging.Log log -
isActive
private boolean isActive -
swallowExceptions
private boolean swallowExceptions -
executeInSeparateThread
private boolean executeInSeparateThread
-
-
Constructor Details
-
BaseTrigger
public BaseTrigger()
-
-
Method Details
-
processTrigger
- Throws:
Exception
-
getIsActive
public boolean getIsActive() -
setIsActive
public void setIsActive(boolean isActive) -
getSwallowExceptions
public boolean getSwallowExceptions() -
setSwallowExceptions
public void setSwallowExceptions(boolean swallowExceptions) -
getExecuteInSeparateThread
public boolean getExecuteInSeparateThread() -
setExecuteInSeparateThread
public void setExecuteInSeparateThread(boolean executeInSeparateThread) -
process
- Throws:
Exception
-
processInSeparateThread
public void processInSeparateThread() -
processInSameThread
- Throws:
Exception
-
run
public void run() -
addMessage
-