Interface DiscountProcessor
- All Superinterfaces:
BusinessObject
,BusinessProcessor
- All Known Implementing Classes:
BasicDiscountProcessor
Interface for business logic methods having to do with discounts. Created in
the Struts layer in response to requests for viewing, editing, adding, and
deleting discounts.
When the application needs to create an instance that implements
DiscountProcessor
,
BusinessObjectFactory
finds the name of the Java class to instantiate from the
"discountProcessorImplementer" setting in the
appComponents.properties
file.
The default "discountProcessorImplementer" is
DiscountProcessor
.
- Author:
- David Tobey
-
Method Summary
Modifier and TypeMethodDescriptionaddDiscount
(Map parameters) void
deleteDiscount
(Map parameters) editDeleteDiscounts
(Map parameters) editDiscount
(Map parameters) loadDiscountFromCode
(Map describe) loadDiscountFromID
(Map parameters) loadDiscountsAndCount
(Map parameters) 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
-
Method Details
-
loadStoreDiscounts
- Throws:
Exception
-
loadDiscountsAndCount
- Throws:
Exception
-
addDiscount
- Throws:
Exception
-
loadDiscountFromID
- Throws:
Exception
-
editDiscount
- Throws:
Exception
-
editDeleteDiscounts
- Throws:
Exception
-
deleteDiscount
- Throws:
Exception
-
loadAllCoupons
- Throws:
Exception
-
loadDiscountFromCode
- Throws:
Exception
-