com.konakart.bl.modules.shipping
Class BaseShippingModule

java.lang.Object
  extended by com.konakart.bl.modules.BaseModule
      extended by com.konakart.bl.modules.shipping.BaseShippingModule
Direct Known Subclasses:
DigitalDownload, Fedex, Flat, Free, FreeProduct, Item, PickUpInStore, Table, Ups, Usps, Uspsint, Zones

public class BaseShippingModule
extends BaseModule

The Base class for shipping modules


Field Summary
protected  org.apache.commons.logging.Log log
          The Log instance for this application.
 
Fields inherited from class com.konakart.bl.modules.BaseModule
basePackage
 
Constructor Summary
BaseShippingModule()
           
 
Method Summary
protected  void checkForProducts(ShippingInfo info)
          If there are no products it throws an exception since shipping isn't required.
protected  void checkZone(ShippingInfo info, int zone)
          Ensures that the zone is within one of the Geo Zones contained in the ShippingInfo object.
 
Methods inherited from class com.konakart.bl.modules.BaseModule
getBasketMgr, getCatMgr, getConfigMgr, getCurrMgr, getCustMgr, getEmailMgr, getEng, getLangMgr, getMultiStoreMgr, getOrderMgr, getOrderTotalMgr, getPaymentMgr, getProdMgr, getPromMgr, getResourceBundle, getRewardPointMgr, getSecMgr, getShippingMgr, getSolrMgr, getStoreId, getTaxMgr, init, isAvailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log
The Log instance for this application.

Constructor Detail

BaseShippingModule

public BaseShippingModule()
Method Detail

checkZone

protected void checkZone(ShippingInfo info,
                         int zone)
                  throws KKException
Ensures that the zone is within one of the Geo Zones contained in the ShippingInfo object.

Parameters:
info -
zone -
Throws:
KKException

checkForProducts

protected void checkForProducts(ShippingInfo info)
                         throws KKException
If there are no products it throws an exception since shipping isn't required. They may be all digital download products.

Parameters:
info - ShippingInfo object - this defines the items to be shipped
Throws:
KKException


Copyright © 2011 DS Data Systems UK Ltd.