java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl | +--com.ibm.commerce.inventory.commands.ExpectedInventoryRecordUpdateCmdImpl
Default implementation of the ExpectedInventoryRecordUpdateCmd
interface. Updates an expected inventory record.
If a redirect URL is not provided, calls generic RedirectView when successfully completed, or GenericApplicationError upon failure.
Utilizes these access beans
BaseItemAccessBean
ExpectedInventoryRecordsAccessBean
ExpectedInventoryRecordsDetailAccessBean
ItemFulfillmentCenterAccessBean
ItemSpecificationAccessBean
StoreEntityAccessBean
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT The internal copyright field. |
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.inventory.commands. ExpectedInventoryRecordUpdateCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.tools.common. ECToolsConstants |
EC_LINE_SEPARATOR,
EC_TOOLS_FULFILLMENT_CENTER_ID,
EC_TOOLS_MERCHANT_CENTER_URL,
EC_TOOLS_STORE_LANGUAGE_URL,
EC_TOOLS_STORES_ACCESS_CONTROL_REQUIRED,
EC_TOOLS_STORES_EMPTY,
EC_TOOLS_STORES_NO_ACCESS,
EC_TOOLS_STORES_NOT_ADMINISTRATOR,
EC_XML,
EC_XMLFILE,
EC_XMLFILEOBJECT,
EC_XMLOBJECT,
EC_XMLSTRING |
Constructor Summary | |
---|---|
ExpectedInventoryRecordUpdateCmdImpl() |
Method Summary | |
---|---|
protected
void |
checkEIRDetailException() Checks if the detailed information about items on the expected inventory record are missing or not in the right data type. |
protected
void |
checkIllegalArgumentException() Checks if the timestamp fields are not in the right timestamp format. |
protected
void |
checkNumberFormatException() Checks if the numeric fields are not in the right numeric format. |
protected
void |
checkParametersException() Checks that the expected inventory record exists. |
void |
createItemffmctr(java.lang.Long itemspcId) Adds a new row in itemffmctr table for this item, store and fulfillment center if row does not yet exist when the expected inventory record is updated. |
java.lang.String |
getAction() Returns the action to be performed on the expected inventory record detail. |
java.util.Vector |
getAddedItem() Returns the list of items added to the expected inventory record. |
int |
getAddedSize() Returns the number of items added to the expected inventory record. |
java.util.Vector |
getChangedItem() Returns the list of items updated in the expected inventory record. |
int |
getChangedSize() Returns the number of items updated in the expected inventory record. |
java.lang.String |
getExpectedDate() Returns the date the inventory is expected. |
java.lang.String |
getExternalId() Returns the external identifier. |
java.lang.String |
getFfmcenterId() Returns the fulfillment center identifier. |
java.lang.String |
getItemspcId() Returns the item identifier. |
java.lang.String |
getOrderDate() Returns the date this order is created with the vendor. |
java.lang.String |
getQtyOrdered() Returns quantity ordered from vendor. |
java.lang.String |
getRaDetailComment() Returns the comment. |
java.lang.String |
getRaDetailId() Returns the new expected inventory record detail identifier. |
java.lang.String |
getRaId() Returns the expected inventory record identifier. |
java.util.Vector |
getRemovedItem() Returns the list of items deleted from the expected inventory record. |
int |
getRemovedSize() Returns the number of items deleted from the expected inventory record. |
AccessVector |
getResources() Gets the access vector accessed by this command. |
protected
void |
handleSubmitError(
ECException e) Constructs and returns the error message. |
void |
performExecute() Performs the execution of updating an expected inventory record. |
void |
setAction(java.lang.String newAction) Sets the action to be performed on the expected inventory record detail. |
void |
setAddedItem(java.util.Vector newAddedItem) Sets the list of items added to the expected inventory record. |
void |
setAddedSize(java.lang.String newAddedSize) Sets the number of items added to the expected inventory record. |
void |
setChangedItem(java.util.Vector newChangedItem) Sets the list of items updated in the expected inventory record. |
void |
setChangedSize(java.lang.String newChangedSize) Sets the number of items updated in the expected inventory record. |
void |
setExpectedDate(java.lang.String newExpectedDate) Sets the date the inventory is expected. |
void |
setExternalId(java.lang.String newExternalId) Sets the external identifier. |
void |
setFfmcenterId(java.lang.String newFfmcenterId) Sets the fulfillment center identifier. |
void |
setItemspcId(java.lang.String newItemspcId) Sets item identifier. |
void |
setOrderDate(java.lang.String newOrderDate) Sets the date this order is created with the vendor. |
void |
setQtyOrdered(java.lang.String newQtyOrdered) Sets quantity ordered from vendor. |
void |
setRaDetailComment(java.lang.String newRaDetailComment) Sets the comment. |
void |
setRaDetailId(java.lang.String newRaDetailId) Sets the new expected inventory record detail identifier. |
void |
setRaId(java.lang.String newRaId) Sets the expected inventory record identifer. |
void |
setRemovedItem(java.util.Vector newRemovedItem) Sets the list of items deleted from the expected inventory record. |
void |
setRemovedSize(java.lang.String newRemovedSize) Sets the number of items deleted from the expected inventory record. |
void |
validateParameters() Gets the information of expected inventory record to be updated and sets the information into the command local variable. |
Methods inherited from class com.ibm.commerce.tools.command. ToolsControllerCommandImpl |
getViewInputProperties,
setRequestProperties |
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
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,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Methods inherited from interface com.ibm.commerce.command. ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public ExpectedInventoryRecordUpdateCmdImpl()
Method Detail |
---|
public java.lang.String getAction()
public java.util.Vector getAddedItem()
public int getAddedSize()
public java.util.Vector getChangedItem()
public int getChangedSize()
public java.util.Vector getRemovedItem()
public int getRemovedSize()
public java.lang.String getExpectedDate()
public java.lang.String getExternalId()
public java.lang.String getFfmcenterId()
public java.lang.String getItemspcId()
public java.lang.String getOrderDate()
public java.lang.String getQtyOrdered()
public java.lang.String getRaDetailComment()
public java.lang.String getRaDetailId()
public java.lang.String getRaId()
public void setAction(java.lang.String newAction)
newAction
- actionpublic void setAddedItem(java.util.Vector newAddedItem)
ExpectedInventoryRecordUpdateCmd
setAddedItem
in interface
ExpectedInventoryRecordUpdateCmd
newAddedItem
- list of itemsExpectedInventoryRecordUpdateCmd.setAddedItem(java.util.Vector)
public void setAddedSize(java.lang.String newAddedSize)
ExpectedInventoryRecordUpdateCmd
setAddedSize
in interface
ExpectedInventoryRecordUpdateCmd
newAddedSize
- quantityExpectedInventoryRecordUpdateCmd.setAddedSize(java.lang.String)
public void setChangedItem(java.util.Vector newChangedItem)
ExpectedInventoryRecordUpdateCmd
setChangedItem
in interface
ExpectedInventoryRecordUpdateCmd
newChangedItem
- list of itemsExpectedInventoryRecordUpdateCmd.setChangedItem(java.util.Vector)
public void setChangedSize(java.lang.String newChangedSize)
ExpectedInventoryRecordUpdateCmd
setChangedSize
in interface
ExpectedInventoryRecordUpdateCmd
newChangedSize
- quantityExpectedInventoryRecordUpdateCmd.setChangedSize(java.lang.String)
public void setRemovedItem(java.util.Vector newRemovedItem)
ExpectedInventoryRecordUpdateCmd
setRemovedItem
in interface
ExpectedInventoryRecordUpdateCmd
newRemovedItem
- list of itemsExpectedInventoryRecordUpdateCmd.setRemovedItem(java.util.Vector)
public void setRemovedSize(java.lang.String newRemovedSize)
ExpectedInventoryRecordUpdateCmd
setRemovedSize
in interface
ExpectedInventoryRecordUpdateCmd
newRemovedSize
- quantityExpectedInventoryRecordUpdateCmd.setRemovedSize(java.lang.String)
public void setExpectedDate(java.lang.String newExpectedDate)
newExpectedDate
- expected datepublic void setExternalId(java.lang.String newExternalId)
ExpectedInventoryRecordUpdateCmd
setExternalId
in interface
ExpectedInventoryRecordUpdateCmd
newExternalId
- external idExpectedInventoryRecordUpdateCmd.setExternalId(java.lang.String)
public void setFfmcenterId(java.lang.String newFfmcenterId)
newFfmcenterId
- fulfillment center idpublic void setItemspcId(java.lang.String newItemspcId)
newItemspcId
- item idpublic void setOrderDate(java.lang.String newOrderDate)
ExpectedInventoryRecordUpdateCmd
setOrderDate
in interface
ExpectedInventoryRecordUpdateCmd
newOrderDate
- order create dateExpectedInventoryRecordUpdateCmd.setOrderDate(java.lang.String)
public void setQtyOrdered(java.lang.String newQtyOrdered)
newQtyOrdered
- quantitypublic void setRaDetailComment(java.lang.String newRaDetailComment)
newRaDetailComment
- commentpublic void setRaDetailId(java.lang.String newRaDetailId)
newRaDetailId
- record detail idpublic void setRaId(java.lang.String newRaId)
ExpectedInventoryRecordUpdateCmd
setRaId
in interface
ExpectedInventoryRecordUpdateCmd
newRaId
- expected inventory record idExpectedInventoryRecordUpdateCmd.setRaId(java.lang.String)
public void validateParameters() throws ECException
checkParametersException()
to check required parms.
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- If the XMLObject cannot be parsed as
expected.ECException
checkParametersException()
protected void checkParametersException() throws ECApplicationException
ECApplicationException.
- Specify
ERR_BAD_MISSING_CMD_PARAMETER to indicate which field is missing or bad.
ECApplicationException
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
-
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECSystemException
- Create error, _ERR_CREATE_EXCEPTION
ECSystemException
- Finder error, _ERR_FINDER_EXCEPTION
ECSystemException
- Naming error, _ERR_NAMING_EXCEPTIONECException
protected void checkNumberFormatException() throws ECApplicationException
ECApplicationException.
- Specify ERR_CMD_INVALID_PARAM to
indicate which field is bad.
ECApplicationException
protected void checkIllegalArgumentException() throws ECApplicationException
ECApplicationException.
- Specify ERR_CMD_INVALID_PARAM to
indicate which field is bad.
ECApplicationException
protected void checkEIRDetailException() throws ECApplicationException
ECApplicationException.
- Specify
ERR_BAD_MISSING_CMD_PARAMETER to indicate which field is missing or bad.
ECApplicationException
public void createItemffmctr(java.lang.Long itemspcId) throws ECException
performExecute()
.
itemspcId
- item specification idECException
- If the row cannot be created:
protected void handleSubmitError(ECException e) throws ECApplicationException
e
- exceptionECApplicationException.
- Throw ECApplicationException with
the newly constructed message.
ECApplicationException