com.softslate.commerce.businessobjects.product
Class BasicSKUProcessor

java.lang.Object
  extended by com.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended by com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
          extended by com.softslate.commerce.businessobjects.product.BasicSKUProcessor
All Implemented Interfaces:
BusinessObject, BusinessProcessor, SKUProcessor

public class BasicSKUProcessor
extends BaseBusinessProcessor
implements 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
(package private) static org.apache.commons.logging.Log log
           
 
Constructor Summary
BasicSKUProcessor()
           
 
Method Summary
 void addSKU(java.util.Map parameters)
           
 java.util.Map buildAllAttributeSKUs()
           
 java.util.Map buildAllProductSKUs()
           
 java.util.Map buildProductSKUs(int productID)
           
 void deleteSKU(java.util.Map parameters)
           
 void editDeleteSKUs(java.util.Map parameters)
           
 void editSKU(java.util.Map parameters)
           
 SKU loadSKUFromID(java.util.Map parameters)
           
 java.util.Map loadSKUsAndCount(java.util.Map parameters)
           
 boolean nullOrEqual(java.lang.Object o1, java.lang.Object o2)
           
 
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, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setSettings, setUser, 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
 
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
 

Field Detail

log

static org.apache.commons.logging.Log log
Constructor Detail

BasicSKUProcessor

public BasicSKUProcessor()
Method Detail

loadSKUsAndCount

public java.util.Map loadSKUsAndCount(java.util.Map parameters)
                               throws java.lang.Exception
Specified by:
loadSKUsAndCount in interface SKUProcessor
Throws:
java.lang.Exception

addSKU

public void addSKU(java.util.Map parameters)
            throws java.lang.Exception
Specified by:
addSKU in interface SKUProcessor
Throws:
java.lang.Exception

loadSKUFromID

public SKU loadSKUFromID(java.util.Map parameters)
                  throws java.lang.Exception
Specified by:
loadSKUFromID in interface SKUProcessor
Throws:
java.lang.Exception

editSKU

public void editSKU(java.util.Map parameters)
             throws java.lang.Exception
Specified by:
editSKU in interface SKUProcessor
Throws:
java.lang.Exception

editDeleteSKUs

public void editDeleteSKUs(java.util.Map parameters)
                    throws java.lang.Exception
Specified by:
editDeleteSKUs in interface SKUProcessor
Throws:
java.lang.Exception

deleteSKU

public void deleteSKU(java.util.Map parameters)
               throws java.lang.Exception
Specified by:
deleteSKU in interface SKUProcessor
Throws:
java.lang.Exception

buildProductSKUs

public java.util.Map buildProductSKUs(int productID)
                               throws java.lang.Exception
Specified by:
buildProductSKUs in interface SKUProcessor
Throws:
java.lang.Exception

buildAllProductSKUs

public java.util.Map buildAllProductSKUs()
                                  throws java.lang.Exception
Specified by:
buildAllProductSKUs in interface SKUProcessor
Throws:
java.lang.Exception

buildAllAttributeSKUs

public java.util.Map buildAllAttributeSKUs()
                                    throws java.lang.Exception
Specified by:
buildAllAttributeSKUs in interface SKUProcessor
Throws:
java.lang.Exception

nullOrEqual

public boolean nullOrEqual(java.lang.Object o1,
                           java.lang.Object o2)


Copyright ? SoftSlate, LLC 2003?2005