java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.fulfillment.commands.AllocateExistingInventoryCmdImpl
The default implementation of the
AllocateExistingInventory
task command interface.
Refer to the
performExecute
method for a description of its behaviour.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
protected
static java.lang.String |
istrCheckParametersFunc Deprecated. Will be changed to private. |
protected
static java.lang.String |
istrPerformFunc Deprecated. Will be changed to private. |
protected
static java.lang.String |
istrThisClass Deprecated. Will be changed to private. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.fulfillment.commands. AllocateExistingInventoryCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
AllocateExistingInventoryCmdImpl() |
Method Summary | |
---|---|
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. |
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. |
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 |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected static java.lang.String istrThisClass
protected static java.lang.String istrPerformFunc
protected static java.lang.String istrCheckParametersFunc
Constructor Detail |
---|
public AllocateExistingInventoryCmdImpl()
Method Detail |
---|
public java.util.Vector getFulfillmentCenters()
public java.lang.Integer getNextStrategy()
getNextStrategy
in interface
AllocateExistingInventoryCmd
public OrderItemAccessBean getOrderItem()
public java.lang.Integer getStrategy()
public void performExecute() throws ECException
AllocateExistingInventory
task command calls the
getitems
database stored procedure.
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void reset()
reset
in class
AbstractECTargetableCommand
public void setFulfillmentCenters(java.util.Vector newFulfillmentCenters)
setFulfillmentCenters
in interface
AllocateExistingInventoryCmd
newFulfillmentCenters
- 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
AllocateExistingInventoryCmd
anOrderItem
- the order item.public void setStrategy(java.lang.Integer newStrategy)
setStrategy
in interface
AllocateExistingInventoryCmd
newStrategy
- the strategy to be used.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException
- thrown when the order item or the fulfillment centers have not been
set.