java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.command.BusinessPolicyCommandImpl
com.ibm.commerce.order.calculation.CalculationCmdImpl
com.ibm.commerce.order.calculation.CalculationCodeCombineCmdImpl
The default implementation of CalculationCodeCombineCmd.
Its behaviour is as follows:
Commands used:
Access beans used:Field Summary | |
static java.lang.String | COPYRIGHT The IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command.BusinessPolicyCommandImpl |
policyId, requestProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.order.calculation.CalculationCodeCombineCmd |
defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
CalculationCodeCombineCmdImpl() Constructor for CalculationCodeCombineCmdImpl. |
Method Summary | |
protected void | addItem(GroupKey aKey, Item aItem) Adds an item to a group with the specified key. |
protected Item[] | callCodeQualify(CalculationCodeAccessBean aabCode, Item[] aItems) Invokes the calculation method of type "CalculationCodeQualify" referenced by the calculation code (see CALCODE.CALMETHOD_ID_QFY, CalculationCodeQualifyCmd) to determine the qualifying items. |
protected GroupKey | createGroupKey(CalculationCodeAccessBean aabCode, Item aItem) Generates a group key from a calculation code and an item. |
protected Group[] | createGroups() Generates the groups. |
protected CalculationCodeAccessBean[] | getCodes(Item aItem) Returns the calculation codes attached to an item. |
protected CalculationCodeAccessBean | getDefaultCode() Returns the default calculation code. |
protected CalculationCodeAccessBean[] | getDirectlyAttachedCodes(Item aItem) Returns the calculation codes directly attached to an item. |
Group[] | getGroups() Returns the groups. |
protected CalculationCodeAccessBean[] | getIndirectlyAttachedCodes(Item aItem) Returns the calculation codes indirectly attached to an item. |
protected Item[] | getItems() Returns the items. |
protected java.lang.Integer[] | getTaxCategoryIds() Returns the tax categories. |
protected boolean | isDirectAttachmentsOverride(Item aItem) Returns whether the calculation codes directly attached to an item should override the ones indirectly attached to it. |
protected boolean | isRestricted(CalculationCodeAccessBean aabCode) Returns whether a calculation code is restricted. |
void | performExecute() The business logic for this command. |
protected void | processItem(Item aItem) Processes an item. |
void | reset() This method should be called after a command has been executed to reset its states variables. |
protected void | setGroups(Group[] aGroups) Sets the groups. |
void | setItems(Item[] aItems) Sets the items. |
void | setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds) Sets the tax categories that should be active during execution. |
protected java.lang.String | toString(CalculationCodeAccessBean[] aabCodes) Returns the string representation of a list of calculation codes for diagnostic purposes. |
Methods inherited from class com.ibm.commerce.order.calculation.CalculationCmdImpl |
createCommand, getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, recycleCommand, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId |
Methods inherited from class com.ibm.commerce.command.BusinessPolicyCommandImpl |
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties |
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, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.order.calculation.CalculationCmd |
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId |
Methods inherited from interface com.ibm.commerce.command.BusinessPolicyCommand |
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public CalculationCodeCombineCmdImpl()
Method Detail |
protected void addItem(GroupKey aKey, Item aItem)
protected Item[] callCodeQualify(CalculationCodeAccessBean aabCode, Item[] aItems) throws ECException
protected GroupKey createGroupKey(CalculationCodeAccessBean aabCode, Item aItem) throws ECException
protected Group[] createGroups() throws ECException
protected CalculationCodeAccessBean[] getCodes(Item aItem) throws ECException
protected CalculationCodeAccessBean getDefaultCode() throws ECException
protected CalculationCodeAccessBean[] getDirectlyAttachedCodes(Item aItem) throws ECException
public Group[] getGroups()
protected CalculationCodeAccessBean[] getIndirectlyAttachedCodes(Item aItem) throws ECException
protected Item[] getItems()
protected java.lang.Integer[] getTaxCategoryIds()
protected boolean isDirectAttachmentsOverride(Item aItem) throws ECException
protected boolean isRestricted(CalculationCodeAccessBean aabCode) throws ECException
public void performExecute() throws ECException
protected void processItem(Item aItem) throws ECException
public void reset()
protected void setGroups(Group[] aGroups)
public void setItems(Item[] aItems)
public void setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
protected java.lang.String toString(CalculationCodeAccessBean[] aabCodes) throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.