public interface InventoryAdjustCmd extends ToolsControllerCommand
adjustinventory
database stored procedure.
This controller command requires that the store id is set in the command context.
Parameters
Example xml_string for adjusting an inventory:
<?xml version="1.0" encoding="UTF-8"?> <XML> <XMLFile>inventory.InventoryAdjustmentDialog</XMLFile> <adjustmentComment>Adjustment comment</adjustmentComment> <ffmcenterId>300</ffmcenterId> <invAdjCodeId>600</invAdjCodeId> <itemspcId>400</itemspcId> <quantity>250</quantity> <versionSpcId>400</versionSpcId> </XML>
Exceptions
When the required fields are missing or not in the right data type, this command will throw an exception. It indicates which field is missing or bad.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
static java.lang.String |
defaultCommandClassName
The default implementation class name is
"com.ibm.commerce.inventory.commands.InventoryAdjustCmdImpl".
|
static java.lang.String |
NAME
The name of this interface is
"com.ibm.commerce.inventory.commands.InventoryAdjustCmd".
|
Modifier and Type | Method and Description |
---|---|
void |
setAdjustmentComment(java.lang.String newAdjustmentComment)
This method sets the comment on the adjustment.
|
void |
setCatEntryId(java.lang.String newCatEntryId)
This method sets the item identifier.
|
void |
setFfmcenterId(java.lang.String newFfmcenterId)
This method sets the fulfillment center identifier.
|
void |
setInvAdjCodeId(java.lang.String newInvAdjCodeId)
This method sets the identifier for the adjustment type being made.
|
void |
setItemspcId(java.lang.String newItemspcId)
This method sets the item identifier.
|
void |
setMemberId(java.lang.String newMemberId)
This method sets the member identifier.
|
void |
setPartNumber(java.lang.String newPartNumber)
This method sets the part number.
|
void |
setQuantity(java.lang.String newQuantity)
This method sets the quantity to adjust.
|
void |
setVersionSpcId(java.lang.String newVersionSpcId)
This method sets the product version identifier of the item.
|
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
void setAdjustmentComment(java.lang.String newAdjustmentComment)
newAdjustmentComment
- commentvoid setFfmcenterId(java.lang.String newFfmcenterId)
newFfmcenterId
- fulfillment center idvoid setInvAdjCodeId(java.lang.String newInvAdjCodeId)
newInvAdjCodeId
- adjustment type idvoid setCatEntryId(java.lang.String newCatEntryId)
newCatEntryId
- item specified idvoid setItemspcId(java.lang.String newItemspcId)
newItemspcId
- item specified idvoid setMemberId(java.lang.String newMemberId)
newMemberId
- member owner idvoid setPartNumber(java.lang.String newPartNumber)
newPartNumber
- part numbervoid setQuantity(java.lang.String newQuantity)
newQuantity
- adjustment quantityvoid setVersionSpcId(java.lang.String newVersionSpcId)
newVersionSpcId
- product version id