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

Class ComposeATPInventoryAvailabilityForDKCmdImpl

  • All Implemented Interfaces:
    ComposeInventoryAvailabilityCmd, com.ibm.websphere.command.Command, java.io.Serializable


    public class ComposeATPInventoryAvailabilityForDKCmdImpl
    extends com.ibm.commerce.inventory.facade.server.commands.ComposeATPInventoryAvailabilityCmdImpl
    implements ComposeInventoryAvailabilityCmd
    This command implementation is used to compose the InventoryAvailabilityType from ATP inventory system. It should be registered in the CMDREG with interface: com.ibm.commerce.inventory.facade.server.commands.ComposeInventoryAvailabilityCmd+ATPInventorySystem. This implementation extends ComposeATPInventoryAvailabilityCmdImpl to support dynamic kit.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ComposeATPInventoryAvailabilityForDKCmdImpl

        public ComposeATPInventoryAvailabilityForDKCmdImpl()
    • Method Detail

      • execute

        public void execute()
                     throws com.ibm.websphere.command.CommandException
        This method executes the main business logic of this class. It fetches the ATP inventory availability for every catalog entry/online store or catalog entry/physical store combination. Then it composes a list of InventoryAvailabilityType nouns and sets them. If the catalog entry type is ItemBean or PackageBean, the business logic is same as its super method. If the catalog entry type is DynamicKitBean, it resolves components of the dynamic kit from preconfiguration(the dynamic kit will be ignored if preconfiguration is not available). Then, it fetches available quantity and expected available date for each component. At last, it composes inventory availability at dynamic kit level for each online store and physical store.
        Specified by:
        execute in interface com.ibm.websphere.command.Command
        Overrides:
        execute in class com.ibm.commerce.inventory.facade.server.commands.ComposeATPInventoryAvailabilityCmdImpl
        Throws:
        com.ibm.websphere.command.CommandException