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, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public void init() throws ECException
ECException
public void performExecute() throws ECException
AbstractECTargetableCommand
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void setOrderCurrency(java.lang.String orderCurrency)
setOrderCurrency
in interface com.ibm.commerce.order.utils.ApplyCalculationUsagesCmd
public void setOrderItems(OrderItemAccessBean[] orderItems) throws ECSystemException
setOrderItems
in interface com.ibm.commerce.order.utils.ApplyCalculationUsagesCmd
ECSystemException
public void setOrderItems(java.util.Enumeration orderItems) throws ECSystemException
setOrderItems
in interface com.ibm.commerce.order.utils.ApplyCalculationUsagesCmd
ECSystemException
public void setTaxCategoryIds(java.lang.Integer[] taxCategoryIds)
setTaxCategoryIds
in interface com.ibm.commerce.order.utils.ApplyCalculationUsagesCmd
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException