Class BasicDiscountProcessor
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.product.BasicDiscountProcessor
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,DiscountProcessor
Processes business logic having to do with discounts. Created in the Struts
layer in response to requests for viewing, editing, adding, and deleting
discounts.
BasicDiscountProcessor
is the default implementation of the
DiscountProcessor
interface for the application.
- Author:
- David Tobey
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddDiscount
(Map parameters) void
deleteDiscount
(Map parameters) editDeleteDiscounts
(Map parameters) editDiscount
(Map parameters) loadDiscountFromCode
(Map parameters) loadDiscountFromID
(Map parameters) loadDiscountsAndCount
(Map parameters) validateDiscount
(Discount discount) 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
-
-
Constructor Details
-
BasicDiscountProcessor
public BasicDiscountProcessor()
-
-
Method Details
-
loadStoreDiscounts
- Specified by:
loadStoreDiscounts
in interfaceDiscountProcessor
- Throws:
Exception
-
loadDiscountsAndCount
- Specified by:
loadDiscountsAndCount
in interfaceDiscountProcessor
- Throws:
Exception
-
addDiscount
- Specified by:
addDiscount
in interfaceDiscountProcessor
- Throws:
Exception
-
loadDiscountFromID
- Specified by:
loadDiscountFromID
in interfaceDiscountProcessor
- Throws:
Exception
-
loadDiscountFromCode
- Specified by:
loadDiscountFromCode
in interfaceDiscountProcessor
- Throws:
Exception
-
editDiscount
- Specified by:
editDiscount
in interfaceDiscountProcessor
- Throws:
Exception
-
editDeleteDiscounts
- Specified by:
editDeleteDiscounts
in interfaceDiscountProcessor
- Throws:
Exception
-
deleteDiscount
- Specified by:
deleteDiscount
in interfaceDiscountProcessor
- Throws:
Exception
-
validateDiscount
- Throws:
Exception
-
loadAllCoupons
- Specified by:
loadAllCoupons
in interfaceDiscountProcessor
- Throws:
Exception
-