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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildProductSKUs(int productID, List<Integer> includedAttributeIds, List<Integer> includedOptionIds) voideditDeleteSKUs(Map parameters) editSKUAssignment(Map parameters) intloadSKUFromID(int skuID) loadSKUFromID(Map parameters) loadSKUFromNumber(String skuNumber) loadSKUFromNumber(Map parameters) loadSKUsAndCount(Map parameters) booleannullOrEqual(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, utilsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initializeMethods 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:
loadSKUsAndCountin interfaceSKUProcessor- Throws:
Exception
-
addSKU
- Specified by:
addSKUin interfaceSKUProcessor- Throws:
Exception
-
loadSKUFromID
- Specified by:
loadSKUFromIDin interfaceSKUProcessor- Throws:
Exception
-
loadSKUFromID
- Specified by:
loadSKUFromIDin interfaceSKUProcessor- Throws:
Exception
-
loadSKUFromNumber
- Specified by:
loadSKUFromNumberin interfaceSKUProcessor- Throws:
Exception
-
loadSKUFromNumber
- Specified by:
loadSKUFromNumberin interfaceSKUProcessor- Throws:
Exception
-
editSKU
- Specified by:
editSKUin interfaceSKUProcessor- Throws:
Exception
-
postChangingSKUEvent
- Specified by:
postChangingSKUEventin interfaceSKUProcessor- Throws:
Exception
-
editDeleteSKUs
- Specified by:
editDeleteSKUsin interfaceSKUProcessor- Throws:
Exception
-
deleteSKU
- Specified by:
deleteSKUin interfaceSKUProcessor- Throws:
Exception
-
validateSKU
- Throws:
Exception
-
buildProductSKUs
public Map buildProductSKUs(int productID, List<Integer> includedAttributeIds, List<Integer> includedOptionIds) throws Exception - Specified by:
buildProductSKUsin interfaceSKUProcessor- Throws:
Exception
-
buildAllProductSKUs
- Specified by:
buildAllProductSKUsin interfaceSKUProcessor- Throws:
Exception
-
buildAllAttributeSKUs
- Specified by:
buildAllAttributeSKUsin interfaceSKUProcessor- Throws:
Exception
-
nullOrEqual
-
loadMaxSKUID
- Specified by:
loadMaxSKUIDin interfaceSKUProcessor- Throws:
Exception
-
editSKUAssignment
- Specified by:
editSKUAssignmentin interfaceSKUProcessor- Throws:
Exception
-