com.softslate.commerce.businessobjects.shipping
Class BasicShippingProcessor

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.shipping.BaseShippingProcessor
              extended by com.softslate.commerce.businessobjects.shipping.BasicShippingProcessor
All Implemented Interfaces:
BusinessObject, BusinessProcessor, ShippingProcessor

public class BasicShippingProcessor
extends BaseShippingProcessor
implements ShippingProcessor

Loads shipping options and processes shipping charges in the store. This implementation looks up the shipping methods and rates configured in the sscShippingMethod and sscShippingRates tables, which provide for number of table-based shipping methods.

BasicShippingProcessor is the default implementation of the ShippingProcessor interface for the application.

Author:
David Tobey
See Also:
ShippingProcessor

Field Summary
(package private) static org.apache.commons.logging.Log log
           
 
Fields inherited from class com.softslate.commerce.businessobjects.shipping.BaseShippingProcessor
currentDropShipperID, dropShipperIDs, dropShippers
 
Constructor Summary
BasicShippingProcessor()
           
 
Method Summary
 java.util.Collection computeShippingOptions(java.util.Collection methodsAndRates)
           
 java.util.Collection loadActiveMethodsAndRates()
           
 java.util.Collection loadActiveRatesByMethodCode(java.lang.String code)
           
 java.util.Collection loadShippingOptions()
           
 int processShipping()
           
 
Methods inherited from class com.softslate.commerce.businessobjects.shipping.BaseShippingProcessor
doEstimatedDeliveryDate, findPackageWeight, getAvailableOptions, getShippingOption, isPackageOkToCreate, loadShippingOptions, mergeRates, processShipping, retrieveDropShippersFromOrder, setAvailableOptions, setShippingOption, updateOrderWithOption, updateOrderWithOptionPrice, updateTotalsAndStatuses, updateTotalsAndStatusesInDatabase, verifyOption
 
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, 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.shipping.ShippingProcessor
loadShippingOptions, processShipping
 
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
 

Field Detail

log

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

BasicShippingProcessor

public BasicShippingProcessor()
Method Detail

loadShippingOptions

public java.util.Collection loadShippingOptions()
                                         throws java.lang.Exception
Specified by:
loadShippingOptions in class BaseShippingProcessor
Throws:
java.lang.Exception

processShipping

public int processShipping()
                    throws java.lang.Exception
Specified by:
processShipping in class BaseShippingProcessor
Throws:
java.lang.Exception

loadActiveMethodsAndRates

public java.util.Collection loadActiveMethodsAndRates()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

loadActiveRatesByMethodCode

public java.util.Collection loadActiveRatesByMethodCode(java.lang.String code)
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

computeShippingOptions

public java.util.Collection computeShippingOptions(java.util.Collection methodsAndRates)
                                            throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © SoftSlate, LLC 2003–2005