public class AddItemsToFulfillmentOrderCmdImpl extends TaskCommandImpl implements AddItemsToFulfillmentOrderCmd
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:
defaultCommandClassName, NAME
Constructor and Description |
---|
AddItemsToFulfillmentOrderCmdImpl()
AddItemsToFulfillmentOrderCmdImpl constructor comment.
|
Modifier and Type | Method and Description |
---|---|
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.
|
void |
setQuantity(java.util.Hashtable ahshQuantity)
Sets the quantity 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, validateParameters
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, validateParameters
public AddItemsToFulfillmentOrderCmdImpl()
public java.lang.String getOrderReferenceNumber()
For this implementation, the order 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 interface com.ibm.websphere.command.TargetableCommand
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 interface com.ibm.websphere.command.Command
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.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.