public interface AdjustInventoryReservationCmd extends TaskCommand
If quantity argument is negative it means release inventory. If this is the case, see if there is enough inventory reserved to satisfy the release amount.
If quantity argument is positive it means add inventory to the reservation. If this is the case, see if there is enough inventory to satisfy the additional reservation amount.
Assuming the above edit checks are successful, adjust the quantity reserved by the amount of the quantity argument.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
static java.lang.String |
defaultCommandClassName
The default implementation class is "com.ibm.commerce.inventory.commands.AdjustInventoryReservationCmdImpl".
|
static java.lang.String |
NAME
The name of this interface is "com.ibm.commerce.inventory.commands.AdjustInventoryReservationCmd".
|
Modifier and Type | Method and Description |
---|---|
void |
setInvRsrvId(java.lang.Long argInvRsrvId)
Identifies the inventory reservation to be adjusted.
|
void |
setQuantity(java.lang.Integer argQuantity)
Sets the adjustment quantity for the inventory reservation
negatively or positively.
|
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
void setInvRsrvId(java.lang.Long argInvRsrvId)
argInvRsrvId
- reservation identifiervoid setQuantity(java.lang.Integer argQuantity)
argQuantity
- number of items to adjust in the inventory reservation.