Class BasicSKUProcessor
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.product.BasicSKUProcessor
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,SKUProcessor
Processes business logic having to do with skus. Created in the Struts layer
in response to requests for viewing, editing, adding, and deleting skus.
BasicSKUProcessor
is the default implementation of the
SKUProcessor
interface for the application.
- Author:
- David Tobey
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildProductSKUs
(int productID, List<Integer> includedAttributeIds, List<Integer> includedOptionIds) void
editDeleteSKUs
(Map parameters) editSKUAssignment
(Map parameters) int
loadSKUFromID
(int skuID) loadSKUFromID
(Map parameters) loadSKUFromNumber
(String skuNumber) loadSKUFromNumber
(Map parameters) loadSKUsAndCount
(Map parameters) boolean
nullOrEqual
(Object o1, Object o2) postChangingSKUEvent
(SKU sku, Map parameters) validateSKU
(SKU sku) 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
-
BasicSKUProcessor
public BasicSKUProcessor()
-
-
Method Details
-
loadSKUsAndCount
- Specified by:
loadSKUsAndCount
in interfaceSKUProcessor
- Throws:
Exception
-
addSKU
- Specified by:
addSKU
in interfaceSKUProcessor
- Throws:
Exception
-
loadSKUFromID
- Specified by:
loadSKUFromID
in interfaceSKUProcessor
- Throws:
Exception
-
loadSKUFromID
- Specified by:
loadSKUFromID
in interfaceSKUProcessor
- Throws:
Exception
-
loadSKUFromNumber
- Specified by:
loadSKUFromNumber
in interfaceSKUProcessor
- Throws:
Exception
-
loadSKUFromNumber
- Specified by:
loadSKUFromNumber
in interfaceSKUProcessor
- Throws:
Exception
-
editSKU
- Specified by:
editSKU
in interfaceSKUProcessor
- Throws:
Exception
-
postChangingSKUEvent
- Specified by:
postChangingSKUEvent
in interfaceSKUProcessor
- Throws:
Exception
-
editDeleteSKUs
- Specified by:
editDeleteSKUs
in interfaceSKUProcessor
- Throws:
Exception
-
deleteSKU
- Specified by:
deleteSKU
in interfaceSKUProcessor
- Throws:
Exception
-
validateSKU
- Throws:
Exception
-
buildProductSKUs
public Map buildProductSKUs(int productID, List<Integer> includedAttributeIds, List<Integer> includedOptionIds) throws Exception - Specified by:
buildProductSKUs
in interfaceSKUProcessor
- Throws:
Exception
-
buildAllProductSKUs
- Specified by:
buildAllProductSKUs
in interfaceSKUProcessor
- Throws:
Exception
-
buildAllAttributeSKUs
- Specified by:
buildAllAttributeSKUs
in interfaceSKUProcessor
- Throws:
Exception
-
nullOrEqual
-
loadMaxSKUID
- Specified by:
loadMaxSKUID
in interfaceSKUProcessor
- Throws:
Exception
-
editSKUAssignment
- Specified by:
editSKUAssignment
in interfaceSKUProcessor
- Throws:
Exception
-