com.ibm.commerce.inventory.facade.server.commands
Class ProcessInventoryRequirementReserveInventoryActionCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.foundation.server.command.bod.AbstractProcessNounActionCmdImpl
-
- com.ibm.commerce.inventory.facade.server.commands.ProcessInventoryRequirementReserveInventoryActionCmdImpl
-
- All Implemented Interfaces:
- AbstractProcessNounActionCmd, ProcessInventoryRequirementActionCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class ProcessInventoryRequirementReserveInventoryActionCmdImpl extends AbstractProcessNounActionCmdImpl implements ProcessInventoryRequirementActionCmd
The process command is the task command for process InvnetoryRequirement service with action code ReserveInventory to reserve the inventory from out DOM inventory system. With DOM inventory management system, if some products have been added into the shopping cart, when submitting the order, process InvnetoryRequirement service with action code ReserveInventory should be invoked to reverve the inventory from the DOM inventory management system.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
CONFIG_GROUPING_SIDE_BY_SIDE_INTEGRATION
Name of the configuration grouping for the side-by-side integration flow.static java.lang.String
CONFIG_PROPERTY_PARTIAL_RESERVE
Name of the configuration property for allow partial reservation.static java.lang.String
COPYRIGHT
IBM Copyright notice field.static java.lang.String
DELTA_RESERVE_DEFAULT
the default value indicating that if it is a delta reservationstatic java.lang.String
DELTA_RESERVE_YES
the value indicating it is a delta reservationstatic java.lang.String
PARTIAL_RESERVE_DEFAULT
the default value indicating that if allow partial reservationstatic java.lang.String
USERDATAFIELD_DELTA_RESERVE
Name of the userdata field to indicate whether it is a delta reservation.static java.lang.String
USERDATAFIELD_PARTIAL_RESERVE
Name of the userdata field for allow partial reservation.
-
Constructor Summary
Constructors Constructor and Description ProcessInventoryRequirementReserveInventoryActionCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
performExecute()
This method performs the main business logic of the class.void
validate()
This method to validate if theInventoryRequirementType
passed from the caller command is a valid order.-
Methods inherited from class com.ibm.commerce.foundation.server.command.bod.AbstractProcessNounActionCmdImpl
getActionExpression, getNoun, isGeneric, isReadyToCallExecute, reset, setActionExpression, setNoun, setPersistentObjects
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.foundation.server.command.bod.AbstractProcessNounActionCmd
isGeneric, setActionExpression, setNoun, setPersistentObjects
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM Copyright notice field.- See Also:
- Constant Field Values
-
CONFIG_GROUPING_SIDE_BY_SIDE_INTEGRATION
public static final java.lang.String CONFIG_GROUPING_SIDE_BY_SIDE_INTEGRATION
Name of the configuration grouping for the side-by-side integration flow.- See Also:
- Constant Field Values
-
CONFIG_PROPERTY_PARTIAL_RESERVE
public static final java.lang.String CONFIG_PROPERTY_PARTIAL_RESERVE
Name of the configuration property for allow partial reservation.- See Also:
- Constant Field Values
-
USERDATAFIELD_PARTIAL_RESERVE
public static final java.lang.String USERDATAFIELD_PARTIAL_RESERVE
Name of the userdata field for allow partial reservation.- See Also:
- Constant Field Values
-
USERDATAFIELD_DELTA_RESERVE
public static final java.lang.String USERDATAFIELD_DELTA_RESERVE
Name of the userdata field to indicate whether it is a delta reservation.- See Also:
- Constant Field Values
-
PARTIAL_RESERVE_DEFAULT
public static final java.lang.String PARTIAL_RESERVE_DEFAULT
the default value indicating that if allow partial reservation- See Also:
- Constant Field Values
-
DELTA_RESERVE_DEFAULT
public static final java.lang.String DELTA_RESERVE_DEFAULT
the default value indicating that if it is a delta reservation- See Also:
- Constant Field Values
-
DELTA_RESERVE_YES
public static final java.lang.String DELTA_RESERVE_YES
the value indicating it is a delta reservation- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProcessInventoryRequirementReserveInventoryActionCmdImpl
public ProcessInventoryRequirementReserveInventoryActionCmdImpl()
-
-
Method Detail
-
validate
public void validate() throws AbstractApplicationException
This method to validate if theInventoryRequirementType
passed from the caller command is a valid order.- Specified by:
validate
in interfaceAbstractProcessNounActionCmd
- Throws:
AbstractApplicationException
- Throws an exception with message to indicate that theInventoryRequirementType
is not valid.
-
performExecute
public void performExecute() throws java.lang.Exception
This method performs the main business logic of the class. It simply calls the outbound services of DOM to ask to reserve inventory of the products in theInventoryRequirementType
, actually the order. Results from the outbound services will be returned to the caller command.- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Specified by:
performExecute
in classcom.ibm.websphere.command.TargetableCommandImpl
- Throws:
java.lang.Exception
-
-