public class AdjustInventoryCmdImpl extends TaskCommandImpl implements AdjustInventoryCmd
CreateInventoryCmd
interface.
Creates inventory of an item at a fulfillment center.
This command will create inventory with specified catEntryId,fulfillmentCenterId,quantity
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
AdjustInventoryCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getCatEntryId()
This method returns the catEntryId
|
java.lang.String |
getQuantity()
This method returns the quantity
|
java.lang.String |
getQuantityMeasure()
This method returns the quantity
|
boolean |
isReadyToCallExecute()
Ready to be executed.
|
void |
performExecute()
This method performs the execution of creating an inventory.
|
void |
reset()
Resets the command local variable.
|
void |
setCatEntryId(java.lang.Long catEntry_id)
This method sets the catEntry parameters to check inventory
It is optional if order item is set
|
void |
setFlagCheck(java.lang.String newFlag)
This method sets flagCheck
|
void |
setFlagUpdate(java.lang.String newFlag)
This method sets flagUpdate
|
void |
setFulfillmentCenterId(java.lang.Integer fulfillmentCenter_id)
This method sets the fulfillmentCenter parameters to check inventory on
It is optional if order item is set
|
void |
setQuantity(java.lang.String newQuantity)
This method sets the quantity to the new created inventory
|
void |
setQuantityMeasure(java.lang.String newQuantityMeasure)
This method sets the quantity measure
|
void |
setStoreId(java.lang.Integer storeId)
This method sets a store id to check the inventory.
|
void |
validateParameters()
Checks the information of the receipt to be created.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
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
public static final java.lang.String COPYRIGHT
public void setCatEntryId(java.lang.Long catEntry_id)
setCatEntryId
in interface AdjustInventoryCmd
catEntry_id
- public void setQuantity(java.lang.String newQuantity)
setQuantity
in interface AdjustInventoryCmd
newQuantity
- public java.lang.Long getCatEntryId()
getCatEntryId
in interface AdjustInventoryCmd
public java.lang.String getQuantity()
getQuantity
in interface AdjustInventoryCmd
public void setQuantityMeasure(java.lang.String newQuantityMeasure)
setQuantityMeasure
in interface AdjustInventoryCmd
newQuantityMeasure
- public java.lang.String getQuantityMeasure()
getQuantityMeasure
in interface AdjustInventoryCmd
public void setFulfillmentCenterId(java.lang.Integer fulfillmentCenter_id)
setFulfillmentCenterId
in interface AdjustInventoryCmd
fulfillmentCenter_id
- public void setStoreId(java.lang.Integer storeId)
setStoreId
in interface AdjustInventoryCmd
storeId
- integerpublic void setFlagCheck(java.lang.String newFlag)
setFlagCheck
in interface AdjustInventoryCmd
newFlag
- public void setFlagUpdate(java.lang.String newFlag)
setFlagUpdate
in interface AdjustInventoryCmd
newFlag
- public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
public void validateParameters() throws ECException
Checks the information of the receipt to be created. Make sure all the required parameters were passed in, or collected from somewhere. Fields required to be set beforehand
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- If mandatory parameters are not passed in, throw ECApplicationException
specifying _ERR_BAD_MISSING_CMD_PARAMETER, _ERR_DIDNT_SET_MERCHANTpublic void performExecute() throws ECException
If the receipt is created successfully, the inventory identifier will be returned
Utilizes the following beans
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
-