com.konakart.bl.modules.ordertotal.shipping
Class Shipping

java.lang.Object
  extended by com.konakart.bl.modules.BaseModule
      extended by com.konakart.bl.modules.ordertotal.BaseOrderTotalModule
          extended by com.konakart.bl.modules.ordertotal.shipping.Shipping
All Implemented Interfaces:
OrderTotalInterface

public class Shipping
extends BaseOrderTotalModule
implements OrderTotalInterface

Module that creates an OrderTotal object for Shipping cost.


Field Summary
 
Fields inherited from class com.konakart.bl.modules.BaseModule
basePackage, log
 
Constructor Summary
Shipping()
          Constructor
 
Method Summary
 java.lang.String getCode()
           
 com.konakart.app.OrderTotal getOrderTotal(com.konakart.app.Order order, boolean dispPriceWithTax, java.util.Locale locale)
          Create and return an OrderTotal object for the shipping cost.
 int getSortOrder()
           
 boolean isAvailable()
          Returns true or false
 void setStaticVariables()
          Sets some static variables during setup
 
Methods inherited from class com.konakart.bl.modules.ordertotal.BaseOrderTotalModule
getCurrMgr, getCustomBigDecimal, getCustomBoolean, getCustomInt, getCustomString, getDiscountOrderTotalFromList
 
Methods inherited from class com.konakart.bl.modules.BaseModule
getResourceBundle, isAvailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shipping

public Shipping()
         throws org.apache.torque.TorqueException,
                com.konakart.app.KKException,
                com.workingdogs.village.DataSetException
Constructor

Throws:
com.workingdogs.village.DataSetException
com.konakart.app.KKException
org.apache.torque.TorqueException
Method Detail

setStaticVariables

public void setStaticVariables()
                        throws com.konakart.app.KKException
Sets some static variables during setup

Specified by:
setStaticVariables in interface OrderTotalInterface
Throws:
com.konakart.app.KKException

isAvailable

public boolean isAvailable()
                    throws com.konakart.app.KKException
Returns true or false

Specified by:
isAvailable in interface OrderTotalInterface
Returns:
True or False
Throws:
com.konakart.app.KKException

getOrderTotal

public com.konakart.app.OrderTotal getOrderTotal(com.konakart.app.Order order,
                                                 boolean dispPriceWithTax,
                                                 java.util.Locale locale)
                                          throws java.lang.Exception
Create and return an OrderTotal object for the shipping cost.

Specified by:
getOrderTotal in interface OrderTotalInterface
Parameters:
order -
dispPriceWithTax -
locale -
Returns:
Returns an OrderTotal object for this module
Throws:
java.lang.Exception

getSortOrder

public int getSortOrder()
Specified by:
getSortOrder in interface OrderTotalInterface
Returns:
Return the order in which the module gets called and displayed

getCode

public java.lang.String getCode()
Specified by:
getCode in interface OrderTotalInterface
Returns:
Returns the code for the module


Copyright © 2006 DS Data Systems UK Ltd.