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
Modifier and TypeFieldDescriptionprivate boolean
private boolean
(package private) static org.apache.commons.logging.Log
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(Map results, ApplicationMessage.Level level, String message) boolean
boolean
boolean
void
process()
void
void
abstract void
void
run()
void
setExecuteInSeparateThread
(boolean executeInSeparateThread) void
setIsActive
(boolean isActive) void
setSwallowExceptions
(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
-