public class CalculateOrderCmdImpl extends TaskCommandImpl implements CalculateOrderCmd
CalculateOrderCmd task command. | Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
CalculateOrderCmdImpl()
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.HashMap |
getCustomProperties()
This method returns the customer properties.
|
java.util.Vector |
getNonBuyableCatentryIds()
This method returns the identifiers of free gifts that are not buyable.
|
OrderAccessBean[] |
getOrders()
This method returns the array of OrderAccessBean
|
java.lang.Long[] |
getOutOfInventoryCatalogEntryIds()
This method returns the CatalogEntry identifiers of free gifts that could not be added to the Order due to
insufficient inventory.
|
void |
performExecute()
Executes the main business logic of the command implementation.
|
void |
reset()
Resets instance variables to their initial values.
|
void |
setCustomProperties(java.util.HashMap newhshCustomProperties)
This method sets the customer properties.
|
void |
setDoFreeGift(boolean doFreegift)
This method sets the flag whether free gift handling logic will be called.
|
void |
setOrders(OrderAccessBean[] aabOrders)
This method sets the OrderAccessBean[]
|
void |
setUsageIds(java.lang.Integer[] anUsageIds)
This method sets the calculation usages will be used
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersexecuteFromCache, 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, setDefaultProperties, validateParameterspublic static final java.lang.String COPYRIGHT
public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionECCommand#performExecute()public java.lang.Long[] getOutOfInventoryCatalogEntryIds()
getOutOfInventoryCatalogEntryIds in interface CalculateOrderCmdCalculateOrderCmd.getOutOfInventoryCatalogEntryIds()public java.util.Vector getNonBuyableCatentryIds()
getNonBuyableCatentryIds in interface CalculateOrderCmdCalculateOrderCmd.getNonBuyableCatentryIds()public java.util.HashMap getCustomProperties()
getCustomProperties in interface CalculateOrderCmdpublic void setOrders(OrderAccessBean[] aabOrders)
setOrders in interface CalculateOrderCmdaabOrders - the orderspublic OrderAccessBean[] getOrders()
getOrders in interface CalculateOrderCmdpublic void setUsageIds(java.lang.Integer[] anUsageIds)
setUsageIds in interface CalculateOrderCmdanUsageIds - array of calculation usagepublic void setDoFreeGift(boolean doFreegift)
setDoFreeGift in interface CalculateOrderCmddoFreegift - flag of whether to do free gift handlingpublic void setCustomProperties(java.util.HashMap newhshCustomProperties)
setCustomProperties in interface CalculateOrderCmdnewhshCustomProperties - the customer properties