|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.inventory.commands.InventoryAdjustCmdImpl
Make an adjustment to existing inventory by calling the stored procedure AdjustInventory. An adjustment can be made by either marking down quantities in one or more RECEIPT rows (when the adjustment is negative), or adding inventory to an existing RECEIPT row (when the adjustment is positive).
Field Summary | |
static java.lang.String |
COPYRIGHT
|
Fields inherited from interface com.ibm.commerce.inventory.commands.InventoryAdjustCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
InventoryAdjustCmdImpl()
|
Method Summary | |
protected void |
checkNumberFormatException()
This method checks if the numeric fields are not in the right numeric format. |
protected void |
checkParametersException()
This method checks if the required fields are missing or not in the right data type. |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
protected void |
handleSubmitError(ECException e)
This method constructs and returns the error message. |
void |
performExecute()
This method makes an adjustment to existing inventory by calling the stored procedure AdjustInventory. |
void |
setAdjustmentComment(java.lang.String newAdjustmentComment)
Set the comment on the adjustment. |
void |
setFfmcenterId(java.lang.String newFfmcenterId)
Set the fulfillment center identifier. |
void |
setInvAdjCodeId(java.lang.String newInvAdjCodeId)
Set the identifier for the adjustment type being made. |
void |
setInvadjustId(java.lang.String newInvadjustId)
Set the inventory adjustment identifier. |
void |
setItemspcId(java.lang.String newItemspcId)
Set the item identifier. |
void |
setMemberId(java.lang.String newMemberId)
Set the member identifier. |
void |
setPartNumber(java.lang.String newPartNumber)
Set the part number. |
void |
setQuantity(java.lang.String newQuantity)
Set the quantity to adjust. |
void |
setVersionSpcId(java.lang.String newVersionSpcId)
Set the product version identifier of the item. |
void |
validateParameters()
This method gets the information about the adjustment to be made and sets the information into the command local variable. |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
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, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public InventoryAdjustCmdImpl()
Method Detail |
protected void checkNumberFormatException() throws ECApplicationException
com.ibm.commerce.exception.ECApplicationException.
- Throw ECApplicationException to indicate which field is bad.protected void checkParametersException() throws ECApplicationException
com.ibm.commerce.exception.ECApplicationException.
- Throw ECApplicationException to indicate which field is missing or bad.public AccessVector getResources() throws ECException
getResources
in interface ECCommand
protected void handleSubmitError(ECException e) throws ECApplicationException
com.ibm.commerce.exception.ECApplicationException.
- Throw ECApplicationException with the newly constructed message.public void performExecute() throws ECException
performExecute
in interface ECCommand
ECException
- public void setAdjustmentComment(java.lang.String newAdjustmentComment)
setAdjustmentComment
in interface InventoryAdjustCmd
newAdjustmentComment
- java.lang.Stringpublic void setFfmcenterId(java.lang.String newFfmcenterId)
setFfmcenterId
in interface InventoryAdjustCmd
newFfmcenterId
- java.lang.Longpublic void setInvAdjCodeId(java.lang.String newInvAdjCodeId)
setInvAdjCodeId
in interface InventoryAdjustCmd
newInvAdjCodeId
- java.lang.Longpublic void setInvadjustId(java.lang.String newInvadjustId)
newInvadjustId
- java.lang.Longpublic void setItemspcId(java.lang.String newItemspcId)
setItemspcId
in interface InventoryAdjustCmd
newItemspcId
- java.lang.Longpublic void setMemberId(java.lang.String newMemberId)
setMemberId
in interface InventoryAdjustCmd
newMemberId
- java.lang.Stringpublic void setPartNumber(java.lang.String newPartNumber)
setPartNumber
in interface InventoryAdjustCmd
newPartNumber
- java.lang.Stringpublic void setQuantity(java.lang.String newQuantity)
setQuantity
in interface InventoryAdjustCmd
newQuantity
- java.lang.Stringpublic void setVersionSpcId(java.lang.String newVersionSpcId)
setVersionSpcId
in interface InventoryAdjustCmd
newVersionSpcId
- java.lang.Longpublic void validateParameters() throws ECException
validateParameters
in interface ECCommand
com.ibm.commerce.exception.ECApplicationException.
- If the
XMLObject cannot be parsed as expected, throw ECApplicationException.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |