com.softslate.commerce.businessobjects.product
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
public class BasicDiscountProcessor
- extends BaseBusinessProcessor
- implements 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 |
(package private) static org.apache.commons.logging.Log |
log
|
| Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor |
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getProductIDs, getSettings, getUser, initialize, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPPost, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setSettings, setUser, 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.BusinessProcessor |
getAppComponents, getAppSettings, getBusinessObjectFactory, getDaoFactory, getSettings, getUser, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setSettings, setUser, utils |
log
static org.apache.commons.logging.Log log
BasicDiscountProcessor
public BasicDiscountProcessor()
loadStoreDiscounts
public java.util.Collection loadStoreDiscounts()
throws java.lang.Exception
- Specified by:
loadStoreDiscounts in interface DiscountProcessor
- Throws:
java.lang.Exception
loadDiscountsAndCount
public java.util.Map loadDiscountsAndCount(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
loadDiscountsAndCount in interface DiscountProcessor
- Throws:
java.lang.Exception
addDiscount
public java.util.Map addDiscount(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
addDiscount in interface DiscountProcessor
- Throws:
java.lang.Exception
loadDiscountFromID
public Discount loadDiscountFromID(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
loadDiscountFromID in interface DiscountProcessor
- Throws:
java.lang.Exception
editDiscount
public java.util.Map editDiscount(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
editDiscount in interface DiscountProcessor
- Throws:
java.lang.Exception
editDeleteDiscounts
public void editDeleteDiscounts(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
editDeleteDiscounts in interface DiscountProcessor
- Throws:
java.lang.Exception
deleteDiscount
public void deleteDiscount(java.util.Map parameters)
throws java.lang.Exception
- Specified by:
deleteDiscount in interface DiscountProcessor
- Throws:
java.lang.Exception
validateDiscount
public java.util.Map validateDiscount(Discount discount)
throws java.lang.Exception
- Throws:
java.lang.Exception
loadAllCoupons
public java.util.Collection loadAllCoupons()
throws java.lang.Exception
- Specified by:
loadAllCoupons in interface DiscountProcessor
- Throws:
java.lang.Exception
Copyright © SoftSlate, LLC 2003–2012