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

Class FetchInventoryAvailabilityCmdImpl

    • Field Summary

      • 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
      java.util.Map getBaseItems() 
      java.util.Map getCatalogEntries() 
      java.lang.String getComposeCommandInterface() 
      java.util.List getNouns()
      This method returns the list of nouns retrieved by the fetch implementation.
      java.util.Map getOnlineStoreFulfillmentCenterIds() 
      java.util.Map getOnlineStores()
      Gets the map which contains the mapping from online store id to online store access bean.
      java.util.Map getPhysicalStoreFulfillmentCenterIds() 
      java.util.Map getPhysicalStores() 
      void initComposeCommand(ComposeInventoryAvailabilityCmd command)
      This method is used to initialaize the ComposeInventoryAvailabilityCmd command.
      void performExecute()
      This method performs the business flow of the class.
      void setNouns(java.util.List alistNouns)
      (non-Javadoc)
      • 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
    • Constructor Detail

      • FetchInventoryAvailabilityCmdImpl

        public FetchInventoryAvailabilityCmdImpl()
        The default constructor.
    • Method Detail

      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        This method performs the business flow of the class.

        Based on the xpath and access profile, this method resolves the catalog entry, online store and physical store, and the fulfillment centers of the stores.

        After the useable objects resoved, it get the an implementation command for the entry of cmdreg:
        com.ibm.commerce.inventory.facade.server.commands.ComposeInventoryAvailabilityCmd+DOMInventorySystem
        com.ibm.commerce.inventory.facade.server.commands.ComposeInventoryAvailabilityCmd+ATPInventorySystem
        com.ibm.commerce.inventory.facade.server.commands.ComposeInventoryAvailabilityCmd+NonATPInventorySystem
        It initalized the command and execute the command. Then get the InventoryAvailabilityType list from this 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 - Throws exception when error.
      • initComposeCommand

        public void initComposeCommand(ComposeInventoryAvailabilityCmd command)
        This method is used to initialaize the ComposeInventoryAvailabilityCmd command.
        Parameters:
        command - The ComposeInventoryAvailabilityCmd implementaion.
      • getComposeCommandInterface

        public java.lang.String getComposeCommandInterface()
        Returns:
        Returns the ComposeInventoryAvailabilityCmd interface name.
      • getNouns

        public java.util.List getNouns()
        Description copied from interface: AbstractFetchNounCmd
        This method returns the list of nouns retrieved by the fetch implementation.
        Specified by:
        getNouns in interface AbstractFetchNounCmd
        Returns:
        A list of nouns that matches the search expression.
      • setNouns

        public void setNouns(java.util.List alistNouns)
        (non-Javadoc)
        See Also:
        com.ibm.commerce.foundation.server.command.bod.AbstractFetchNounCmd#setNouns()
      • getCatalogEntries

        public java.util.Map getCatalogEntries()
        Returns:
        Returns the map which contains a catalog entry id as the key and catalog entry access bean as the value.
      • getBaseItems

        public java.util.Map getBaseItems()
        Returns:
        Returns the a map which contains the mapping from catalog entry id to base item access bean.
      • getPhysicalStores

        public java.util.Map getPhysicalStores()
        Returns:
        Returns a map which contains the mapping from physical sotre id to PhysicalStoreType.
      • getOnlineStoreFulfillmentCenterIds

        public java.util.Map getOnlineStoreFulfillmentCenterIds()
        Returns:
        Returns a map which contains the mapping from the online store id to fulfillment center ids as an array.
      • getPhysicalStoreFulfillmentCenterIds

        public java.util.Map getPhysicalStoreFulfillmentCenterIds()
        Returns:
        Returns a map which contains the mapping from the physical store id to fulfillment center ids as an array.
      • getOnlineStores

        public java.util.Map getOnlineStores()
        Gets the map which contains the mapping from online store id to online store access bean.
        Returns:
        The online store id to online store access bean map.