java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.taxation.commands.GetDisplayTaxesCmdImpl
The GetDisplayTaxesCmd Task Command default Implementation can be called by any commands and databeans to set the different categories of tax amounts (e.g. GST, PST etc.) for the input catalog entry. It uses CalculationCodes with calculationUsage of Taxation to calculate the tax amounts for each of the tax categories that have been marked for display.
If the command is successful, it will populate two hashtables:
If unsuccessful, the two hashtables will be empty.
Field Summary | |
static java.lang.String | COPYRIGHT |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.taxation.commands.GetDisplayTaxesCmd |
defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
GetDisplayTaxesCmdImpl() |
Method Summary | |
java.util.Hashtable | getCategorizedTaxAmount() Returns the monetary amounts of all tax categories and their names. |
java.util.Hashtable | getTaxDescriptionHash() Gets the descriptions of all tax categories. |
void | performExecute() Executes main business logic of the command. |
void | reset() Resets the command properties. |
void | setAddressId(java.lang.Long aAddressId) Sets the id of the input ship-to address (Optional). |
void | setCatEntryId(java.lang.Long aCatEntryId) Sets the id of the input catalog entry. |
void | setCurrency(java.lang.String aCurrency) Sets the currency of the input price amount. |
void | setDisplayOnly(boolean abDisplayOnly) Sets the flag to indicate if the taxes are calculated for display purpose (Optional). |
void | setFulfillmentCenterId(java.lang.Integer aFulfillmentCenterId) Sets the id of the fulfillment center (Optional). |
void | setPrice(java.math.BigDecimal aPrice) Sets the product price for calculating the taxes. |
void | setQuantity(java.lang.Double aQuantity) Sets the product quantity for calculating the taxes. |
void | setShippingCharge(java.math.BigDecimal aShippingCharge) Sets the shipping charge for the shipping the product. |
void | setUOM(java.lang.String astrUOM) Sets the unit of measure for the product. |
void | validateParameters() Checks mandatory parameters. |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public GetDisplayTaxesCmdImpl()
Method Detail |
public void reset()
public java.util.Hashtable getCategorizedTaxAmount()
public java.util.Hashtable getTaxDescriptionHash()
public void performExecute() throws ECException
public void setAddressId(java.lang.Long aAddressId)
public void setCatEntryId(java.lang.Long aCatEntryId)
public void setCurrency(java.lang.String aCurrency)
public void setDisplayOnly(boolean abDisplayOnly)
public void setFulfillmentCenterId(java.lang.Integer aFulfillmentCenterId)
public void setPrice(java.math.BigDecimal aPrice)
public void setQuantity(java.lang.Double aQuantity)
public void setShippingCharge(java.math.BigDecimal aShippingCharge)
public void setUOM(java.lang.String astrUOM)
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.