public class AllocateExistingInventoryCmdImpl extends TaskCommandImpl implements AllocateExistingInventoryCmd
AllocateExistingInventory task command
interface.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
AllocateExistingInventoryCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Vector |
getFulfillmentCenters()
Deprecated.
This method will be changed to protected.
|
java.lang.Integer |
getNextStrategy()
Gets the next allocation strategy set by the command.
|
OrderItemAccessBean |
getOrderItem()
Deprecated.
This method will be changed to protected.
|
java.lang.Integer |
getStrategy()
Deprecated.
This method will be changed to protected. External callers should use
getNextStrategy(). |
void |
performExecute()
Performs the actual business logic of the command.
|
void |
reset()
This method should be called after a command has been executed to reset its instance variables.
|
void |
setFulfillmentCenters(java.util.Vector newFulfillmentCenters)
Sets a prioritized list of fulfillment centers from which the inventory should be allocated.
|
void |
setNextStrategy(java.lang.Integer newNextStrategy)
Deprecated.
This method will be changed to protected.
|
void |
setOrderItem(OrderItemAccessBean anOrderItem)
Sets the order item for which existing inventory is to be allocated.
|
void |
setStrategy(java.lang.Integer newStrategy)
Sets the allocation strategy to be used.
|
void |
validateParameters()
Performs server side parameter checking.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public java.util.Vector getFulfillmentCenters()
public java.lang.Integer getNextStrategy()
getNextStrategy in interface AllocateExistingInventoryCmdpublic OrderItemAccessBean getOrderItem()
public java.lang.Integer getStrategy()
getNextStrategy().public void performExecute()
throws ECException
AllocateExistingInventory task command
calls the getitems database stored procedure.
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void setFulfillmentCenters(java.util.Vector newFulfillmentCenters)
setFulfillmentCenters in interface AllocateExistingInventoryCmdnewFulfillmentCenters - a prioritized list of fulfillment center identifiers (Vector of Integer).public void setNextStrategy(java.lang.Integer newNextStrategy)
newNextStrategy - the next allocation strategy.
public void setOrderItem(OrderItemAccessBean anOrderItem)
setOrderItem in interface AllocateExistingInventoryCmdanOrderItem - the order item.public void setStrategy(java.lang.Integer newStrategy)
setStrategy in interface AllocateExistingInventoryCmdnewStrategy - the strategy to be used.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException - thrown when the order item or the fulfillment centers have not been set.