com.ibm.commerce.order.commands
Interface OrderCalculateCmd

All Superinterfaces:
AccCommand, ControllerCommand, ECCommand, Protectable
All Known Implementing Classes:
OrderCalculateCmdImpl

public interface OrderCalculateCmd
extends ControllerCommand

For each specified Order, determines a list of catalog items to be included in the Order, adds them to the Order if they are not already in it, and recalculates specified CalculationUsages. If ATP inventory is not enabled, items are not added to an Order when there is insufficient inventory available. The specified Orders are unlocked.


Field Summary
static java.lang.String COPYRIGHT
The IBM copyright string.
static java.lang.String defaultCommandClassName
The default implementation of this command.
static java.lang.String NAME
The name of this command.
Method Summary
java.lang.Long[] getOutOfInventoryCatalogEntryIds()
Returns the identifiers of CatalogEntries that do not have sufficient inventory, when ATP inventory is not enabled.
void setOrders(OrderAccessBean[] aabOrders)
Sets the Orders.
void setUsageIds(java.lang.Integer[] anUsageIds)
Sets the CalculationUsages.
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
The IBM copyright string.
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
The name of this command.
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation of this command.
See Also:
Constant Field Values
Method Detail

setOrders

public void setOrders(OrderAccessBean[] aabOrders)
Sets the Orders.
Parameters:
aabOrders - the Orders.

setUsageIds

public void setUsageIds(java.lang.Integer[] anUsageIds)
Sets the CalculationUsages.
Parameters:
anUsageIds - the CalculationUsage identifiers.

getOutOfInventoryCatalogEntryIds

public java.lang.Long[] getOutOfInventoryCatalogEntryIds()
Returns the identifiers of CatalogEntries that do not have sufficient inventory, when ATP inventory is not enabled.
Returns:
the CatalogEntry identifiers.

Feedback