public class AddItemsToFulfillmentOrderCmdImpl extends TaskCommandImpl implements AddItemsToFulfillmentOrderCmd
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:
Constructor and Description |
---|
AddItemsToFulfillmentOrderCmdImpl()
AddItemsToFulfillmentOrderCmdImpl constructor comment.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public AddItemsToFulfillmentOrderCmdImpl()
protected java.lang.String getFulfillmentOrderId()
protected java.lang.String getFulfillmentOrderName()
public java.lang.String getOrderReferenceNumber()
For this implementation, the order reference number returned is the ID of the fulfillment order.
public void performExecute() throws ECException
This command implementation does not make use of the ItemSpec ID parameters set by the Caller.
public void reset()
This is useful if the command instance is to be called multiple times with different command parameters.
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.
public void setFulfillmentOrderId(java.lang.String strOrderId)
This parameter is required if we are adding to an existing fulfillment order.
public void setFulfillmentOrderName(java.lang.String strOrderName)
This parameter is ignored if we are adding to an existing order.
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.
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.
protected void setOrderReferenceNumber(java.lang.String strOrderRefNum)
For this implementation, this is the ID of the fulfillment order.
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.