com.ibm.commerce.inventory.commands
Class GenericInventoryReserveCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.inventory.commands.GenericInventoryBaseCmdImpl
|
+--com.ibm.commerce.inventory.commands.GenericInventoryReserveCmdImpl
- All Implemented Interfaces:
-
ECCommand,
ECTargetableCommand,
GenericInventoryReserveCmd,
TaskCommand
- public class GenericInventoryReserveCmdImpl
- extends
GenericInventoryBaseCmdImpl
- implements
GenericInventoryReserveCmd
This command reserves inventory for a specified product. This command can be
used for both ATP and non-ATP stores.
- See Also:
- Serialized
Form
Method Summary |
protected
void |
createReservationForATP()
Create a reservation for ATP enabled store. |
java.lang.String |
getDescription()
Get the description for this reservation. |
java.lang.Long |
getReservationType()
Get reservation type. |
void |
performExecute()
Reserve inventory for the specified catalog entry based on the
fulfillment center and quantity. |
void |
reset()
Reset command's parameter. |
void |
setDescription(java.lang.String newDescription)
Set the description for this reservation. |
void |
setReservationType(java.lang.Long param)
Set the type of reservation. |
void |
validateParameters()
Validate the command's parameters. |
Methods inherited from class
com.ibm.commerce.inventory.commands.
GenericInventoryBaseCmdImpl |
getCatEntryId,
getFulfillmentCenterId,
getItemSpecId,
getQuantity,
getReservationId,
getStore,
initParameters,
isGeneric,
isReadyToCallExecute,
resetParameters,
setCatEntryId,
setFulfillmentCenterId,
setItemSpecId,
setQuantity,
setReservationId,
setStore,
updateInventoryForNonATP |
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,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
reservationType
protected java.lang.Long reservationType
description
protected java.lang.String description
GenericInventoryReserveCmdImpl
public GenericInventoryReserveCmdImpl()
- Default constructor.
createReservationForATP
protected void createReservationForATP()
throws ECException
- Create a reservation for ATP enabled store. Creation date: (9/7/2001
11:44:23 AM)
-
- Returns:
- void
-
ECException
getDescription
public java.lang.String getDescription()
- Get the description for this reservation. Creation date: (9/7/2001 1:30:09
PM)
-
- Returns:
- java.lang.String
getReservationType
public java.lang.Long getReservationType()
- Get reservation type. This is for ATP enabled stores only. Creation date:
(9/7/2001 1:14:17 PM)
-
- Returns:
- java.lang.Long
public void performExecute()
throws ECException
- Reserve inventory for the specified catalog entry based on the fulfillment
center and quantity.
-
- Specified by:
-
performExecute
in interface
ECCommand
- Overrides:
-
performExecute
in class
AbstractECTargetableCommand
-
-
ECException
reset
public void reset()
- Reset command's parameter.
-
- Overrides:
-
reset
in class
GenericInventoryBaseCmdImpl
setDescription
public void setDescription(java.lang.String newDescription)
- Set the description for this reservation. Creation date: (9/7/2001 1:30:09
PM)
-
- Specified by:
-
setDescription
in interface
GenericInventoryReserveCmd
-
- Parameters:
newDescription
- java.lang.String
setReservationType
public void setReservationType(java.lang.Long param)
- Set the type of reservation. Not required for non-ATP store. Creation date:
(9/7/2001 10:03:40 AM)
-
- Specified by:
-
setReservationType
in interface
GenericInventoryReserveCmd
-
- Parameters:
param
- java.lang.Long
validateParameters
public void validateParameters()
throws ECException
- Validate the command's parameters.
-
- Specified by:
-
validateParameters
in interface
ECCommand
- Overrides:
-
validateParameters
in class
GenericInventoryBaseCmdImpl
-
-
ECException