public class ApplyOrderTaxesTIKCmdImpl extends TaskCommandImpl implements com.ibm.commerce.order.utils.ApplyCalculationUsagesCmd, ApplyOrderTaxesCmd
ApplyOrderTaxesTIKCmd Task Command Implementation is called
by the OrderPrepareCmd Controller Command to set the different tax
amounts (for example GST,
PSTand so forth) for each OrderItem supplied by
OrderPrepare. It uses the TaxOrderCmd and TaxOrderItemCmd interfaces to calculate the different tax amounts for each of the OrderItems.
If the command is successful, it will set the tax amounts in ORDERITEMS.
If unsuccessful, the command throws the ECApplicationException specifying an Error Code of
ERRCODE_NO_TAXand the Error View named CALCODE_ERRVIEW.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
NAME| Constructor and Description |
|---|
ApplyOrderTaxesTIKCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
void |
performExecute()
This method performs the business logic for this command.
|
void |
setOrderCurrency(java.lang.String orderCurrency) |
void |
setOrderItems(java.util.Enumeration orderItems) |
void |
setOrderItems(OrderItemAccessBean[] orderItems) |
void |
setTaxCategoryIds(java.lang.Integer[] taxCategoryIds) |
void |
validateParameters()
This method extracts and validates the input parameters of this command implementation.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public void init()
throws ECException
ECExceptionpublic void performExecute()
throws ECException
AbstractECTargetableCommandperformExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void setOrderCurrency(java.lang.String orderCurrency)
setOrderCurrency in interface com.ibm.commerce.order.utils.ApplyCalculationUsagesCmdpublic void setOrderItems(OrderItemAccessBean[] orderItems) throws ECSystemException
setOrderItems in interface com.ibm.commerce.order.utils.ApplyCalculationUsagesCmdECSystemExceptionpublic void setOrderItems(java.util.Enumeration orderItems)
throws ECSystemException
setOrderItems in interface com.ibm.commerce.order.utils.ApplyCalculationUsagesCmdECSystemExceptionpublic void setTaxCategoryIds(java.lang.Integer[] taxCategoryIds)
setTaxCategoryIds in interface com.ibm.commerce.order.utils.ApplyCalculationUsagesCmdpublic void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException