public class ReturnItemToInventoryCmdImpl extends TaskCommandImpl implements ReturnItemToInventoryCmd
ReturnItemToInventoryCmd
interface.
Command used to return merchandise to pool of inventory which can be used for new
inventory allocations. If a new receipt must be created because of the trackable status
of the item, it is done by calling CreateReceiptCmd. The values required by CreateReceiptCmd
are calculated within this command.
Utilizes these access beans
COPYRIGHT, defaultCommandClassName, NAME
Constructor and Description |
---|
ReturnItemToInventoryCmdImpl()
ReturnItemToInventoryCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
createItemffmctr(java.lang.Long itemspcId)
The createItemffmctr method is called to add a new row in
itemffmctr for this item,
store and fulfillment center when a receipt is created. |
java.sql.Timestamp |
getDispositionDate()
This method gets the disposition date on which a part of a return receipt was disposed.
|
java.lang.Integer |
getFulfillmentCenter()
This method gets the fulfillment center id to which inventory is being returned.
|
java.lang.Long |
getOrderItemsId()
This method gets the order item id from which the merchandise in question came.
|
java.lang.Integer |
getQuantity()
This method gets the quantity to be returned to inventory.
|
RMAItemComponentAccessBean |
getRMAItemComponentAccessBean()
This method gets the RMA item component access bean.
|
java.lang.Long |
getRtnRcptDspId()
This method gets the return receipt disposition id.
|
java.lang.Long |
getVersionSpecId()
This method gets the version specification id.
|
void |
performExecute()
Execute the command.
|
void |
reset()
This method is called after a command has been executed.
|
void |
setDispositionDate(java.sql.Timestamp DispositionDate)
This method sets the date the new inventory receipt(s) are for
|
void |
setFulfillmentCenter(java.lang.Integer ffmCenterId)
This method sets the fulfillment center to which inventory is being returned.
|
void |
setOrderItemsId(java.lang.Long orderItemsId)
This method sets the order item from which the merchandise in question came.
|
void |
setQuantity(java.lang.Integer quantity)
This method sets the quantity to returned to inventory.
|
void |
setRMAItemComponentAccessBean(RMAItemComponentAccessBean rmaItemCmpAB)
This method sets the RMA item component access bean.
|
void |
setRtnRcptDspId(java.lang.Long rtnRcptDspId)
This method sets the Return Receipt Disposition id.
|
void |
setVersionSpecId(java.lang.Long versionSpecId)
This method sets the version specification id.
|
void |
validateParameters()
Check parameters.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, 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 ReturnItemToInventoryCmdImpl()
public void performExecute() throws ECException
There are 4 different scenarios that have to be covered and how we handle them
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
AbstractECTargetableCommand
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setDispositionDate(java.sql.Timestamp DispositionDate)
setDispositionDate
in interface ReturnItemToInventoryCmd
DispositionDate
- Return Receipt Dispostion Datepublic void setFulfillmentCenter(java.lang.Integer ffmCenterId)
setFulfillmentCenter
in interface ReturnItemToInventoryCmd
ffmCenterId
- Fulfillment Center identifierpublic void setOrderItemsId(java.lang.Long orderItemsId)
setOrderItemsId
in interface ReturnItemToInventoryCmd
orderItemsId
- Order Item identifierpublic void setQuantity(java.lang.Integer quantity)
setQuantity
in interface ReturnItemToInventoryCmd
quantity
- Inventory Quantitypublic void setRtnRcptDspId(java.lang.Long rtnRcptDspId)
setRtnRcptDspId
in interface ReturnItemToInventoryCmd
rtnRcptDspId
- Return Receipt Disposition IDpublic void setVersionSpecId(java.lang.Long versionSpecId)
setVersionSpecId
in interface ReturnItemToInventoryCmd
versionSpecId
- The version specification identifier.public java.sql.Timestamp getDispositionDate()
public java.lang.Integer getFulfillmentCenter()
public java.lang.Long getOrderItemsId()
public java.lang.Integer getQuantity()
public java.lang.Long getRtnRcptDspId()
public java.lang.Long getVersionSpecId()
public void setRMAItemComponentAccessBean(RMAItemComponentAccessBean rmaItemCmpAB)
rmaItemCmpAB
- The RMA item component access bean.public RMAItemComponentAccessBean getRMAItemComponentAccessBean()
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
- If required parameters not specified or parameters are invalid, throws com.ibm.commerce.exception.ECApplicationException
with ECMessage._ERR_BAD_MISSING_CMD_PARAMETERECException
public void createItemffmctr(java.lang.Long itemspcId) throws ECException
itemffmctr
for this item,
store and fulfillment center when a receipt is created.itemspcId
- item specified idECException