java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.orderitems.commands.AddItemsToFulfillmentOrderCmdImpl
This AddItemsToFulfillmentOrderCmd
Task Command Implementation
is called by the AssignToSpecifiedFulfillmentCenterCmd
Controller
Command to add items to a fulfillment order at the fulfillment center
store.
The command could be used to add items to an existing fulfillment order if a
fulfillment order ID is specified. If no fulfillment order ID is specified, a
new fulfillment order is created. This command implementation class calls the
OrderItemAddCmd
Controller Command to add the items identified by
the Catalog Entry ID to a pending order in the specified Store.
This command implementation of the AddItemsToFulfillmentOrderCmd Task Command ignores the ItemSpec ID parameters and ItemSpecQuantity parameters.
This command calls the following TaskCommands:
Field Summary |
---|
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.orderitems.commands. AddItemsToFulfillmentOrderCmd |
COPYRIGHT,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
AddItemsToFulfillmentOrderCmdImpl() AddItemsToFulfillmentOrderCmdImpl constructor comment. |
Method Summary | |
---|---|
protected
java.lang.String |
getFulfillmentOrderId() Returns the fulfillmentOrderId parameter specified by the caller. |
protected
java.lang.String |
getFulfillmentOrderName() Returns the fulfillmentOrderName parameter specified by the caller. |
java.lang.String |
getOrderReferenceNumber() Returns the order reference number of the fulfillment order. |
void |
performExecute() Performs the main business logic of the command. |
void |
reset() Resets the instance variables of the command. |
void |
setCatalogEntryId(java.util.Hashtable ahshCatEntryId) Sets the Catalog Entry ID parameters. |
void |
setFulfillmentOrderId(java.lang.String strOrderId) Sets the fulfillmentOrderId property of the command. |
void |
setFulfillmentOrderName(java.lang.String strOrderName) Sets the fulfillmentOrderName property of the command. |
void |
setItemSpecId(java.util.Hashtable ahshItemSpecId) Sets the specified item ID parameters. |
void |
setItemSpecQuantity(java.util.Hashtable ahshQuantity) Sets the specified item quantity parameters. |
protected
void |
setOrderReferenceNumber(java.lang.String strOrderRefNum) Sets the order reference number returned from the execution of this command. |
void |
setQuantity(java.util.Hashtable ahshQuantity) Sets the quantity parameters. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Constructor Detail |
---|
public AddItemsToFulfillmentOrderCmdImpl()
Method Detail |
---|
protected java.lang.String getFulfillmentOrderId()
protected java.lang.String getFulfillmentOrderName()
public java.lang.String getOrderReferenceNumber()
For this implementation, the oredr reference number returned is the ID of the fulfillment order.
getOrderReferenceNumber
in interface
AddItemsToFulfillmentOrderCmd
public void performExecute() throws ECException
This command implementation does not make use of the ItemSpec ID parameters set by the Caller.
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException.
ECException
public void reset()
This is useful if the command instance is to be called multiple times with different command parameters.
reset
in class
AbstractECTargetableCommand
public void setCatalogEntryId(java.util.Hashtable ahshCatEntryId)
Specifies the IDs of the catalog entries to be added to the fulfillment order.
This is a mandatory parameter.
setCatalogEntryId
in interface
AddItemsToFulfillmentOrderCmd
ahshCatEntryId
- The Hashtable containing the string
representation of the IDs of the Catalog Entries that are to be added to the
fulfillment order. Each Catalog Entry ID is keyed by an Integer index starting
with the Integer with int value of 1.public void setFulfillmentOrderId(java.lang.String strOrderId)
This parameter is required if we are adding to an existing fulfillment order.
setFulfillmentOrderId
in interface
AddItemsToFulfillmentOrderCmd
strOrderId
- The ID of the fulfillment order that is to be the
target for this add operation.public void setFulfillmentOrderName(java.lang.String strOrderName)
This parameter is ignored if we are adding to an existing order.
setFulfillmentOrderName
in interface
AddItemsToFulfillmentOrderCmd
strOrderName
- The name to be used for the fulfillment order
if a new one is to be created by this add operation.public void setItemSpecId(java.util.Hashtable ahshItemSpecId)
Specifies the IDs of the specified items that are to be added to the fulfillment order.
For this command implementation, this parameter is ignored.
setItemSpecId
in interface
AddItemsToFulfillmentOrderCmd
ahshItemSpecId
- The Hashtable containing the string
representation of the IDs of the specified items that are to be added to the
fulfillment order. Each ItemSpec ID is keyed by an Integer index starting with
the Integer with int value of 1.public void setItemSpecQuantity(java.util.Hashtable ahshQuantity)
Specifies the quantities of the specified items we want to add to the fulfillment order.
For this command implementation, this parameter is ignored.
setItemSpecQuantity
in interface
AddItemsToFulfillmentOrderCmd
ahshQuantity
- The Hashtable containing the string
representation of the quantities of specified items that are to be added to the
fulfillment order. Each quantity value is keyed by an Integer index starting
with the Integer with int value of 1.protected void setOrderReferenceNumber(java.lang.String strOrderRefNum)
For this implementation, this is the ID of the fulfillment order.
strOrderRefNum
- The order reference
number.public void setQuantity(java.util.Hashtable ahshQuantity)
Specifies the quantities of the Catalog Entry items we want to add to the fulfillment order.
This is a mandatory parameter.
setQuantity
in interface
AddItemsToFulfillmentOrderCmd
ahshQuantity
- The Hashtable containing the string
representation of the quantities of items that are to be added to the
fulfillment order. Each quantity value is keyed by an Integer index starting
with the Integer with int value of 1.