com.ibm.commerce.inventory.facade.server.commands

Class 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 reservation
      static java.lang.String DELTA_RESERVE_YES
      the value indicating it is a delta reservation
      static java.lang.String PARTIAL_RESERVE_DEFAULT
      the default value indicating that if allow partial reservation
      static 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.
      • Fields inherited from class com.ibm.websphere.command.TargetableCommandImpl

        LOCAL
      • Fields inherited from interface com.ibm.websphere.command.Command

        serialVersionUID
    • 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 the InventoryRequirementType passed from the caller command is a valid order.
      • 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.websphere.command.Command

        execute, isReadyToCallExecute, reset
      • Methods inherited from interface com.ibm.websphere.command.TargetableCommand

        getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
    • 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

      • 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 the InventoryRequirementType, actually the order. Results from the outbound services will be returned to the caller command.
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Specified by:
        performExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Throws:
        java.lang.Exception