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, validateParameters
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, validateParameters
public static final java.lang.String COPYRIGHT
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
ECCommand#performExecute()
public java.lang.Long[] getOutOfInventoryCatalogEntryIds()
getOutOfInventoryCatalogEntryIds
in interface CalculateOrderCmd
CalculateOrderCmd.getOutOfInventoryCatalogEntryIds()
public java.util.Vector getNonBuyableCatentryIds()
getNonBuyableCatentryIds
in interface CalculateOrderCmd
CalculateOrderCmd.getNonBuyableCatentryIds()
public java.util.HashMap getCustomProperties()
getCustomProperties
in interface CalculateOrderCmd
public void setOrders(OrderAccessBean[] aabOrders)
setOrders
in interface CalculateOrderCmd
aabOrders
- the orderspublic OrderAccessBean[] getOrders()
getOrders
in interface CalculateOrderCmd
public void setUsageIds(java.lang.Integer[] anUsageIds)
setUsageIds
in interface CalculateOrderCmd
anUsageIds
- array of calculation usagepublic void setDoFreeGift(boolean doFreegift)
setDoFreeGift
in interface CalculateOrderCmd
doFreegift
- flag of whether to do free gift handlingpublic void setCustomProperties(java.util.HashMap newhshCustomProperties)
setCustomProperties
in interface CalculateOrderCmd
newhshCustomProperties
- the customer properties