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

Class AbstractProcessInventoryRequirementActionCmdImpl

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright notice field.
      • 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
      SelectionCriteria buildInternalSelectionCriteria(java.lang.String catEntryId, java.lang.String onlineStoreId, java.lang.String physicalStoreId)
      Build the internal selection criteria to get inventory availability from read mediator.
      java.util.List getInventoryAvailabilityFromDOM(java.lang.String catalogEntryPartNumber, java.lang.String onlineStoreNameIdentifier, java.lang.String physicalStoreExternalIdentifier)
      This method gets the inventory availability from an external Order Management System.
      Invcnf getInventoryConfiguration(java.lang.String catEntryId, java.lang.String onlineStoreId, java.lang.String physicalStoreId)
      Get the configuration of inventory availability of catEntryId/physicalStoreId or catEntryId/onlineStoreId.
      boolean isValidStoreId(java.lang.String storeId)
      Validate the store id.
      void performExecute() 
      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
    • Constructor Detail

      • AbstractProcessInventoryRequirementActionCmdImpl

        public AbstractProcessInventoryRequirementActionCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Specified by:
        performExecute in class com.ibm.websphere.command.TargetableCommandImpl
        Throws:
        java.lang.Exception
      • getInventoryAvailabilityFromDOM

        public java.util.List getInventoryAvailabilityFromDOM(java.lang.String catalogEntryPartNumber,
                                                              java.lang.String onlineStoreNameIdentifier,
                                                              java.lang.String physicalStoreExternalIdentifier)
        This method gets the inventory availability from an external Order Management System.
        Parameters:
        catalogEntryPartNumber - catalog entry part number.
        onlineStoreNameIdentifier - online store name identifier.
        physicalStoreExternalIdentifier - physical store external identifier.
        Returns:
        a list of InventoryAvailability Noun
      • buildInternalSelectionCriteria

        public SelectionCriteria buildInternalSelectionCriteria(java.lang.String catEntryId,
                                                                java.lang.String onlineStoreId,
                                                                java.lang.String physicalStoreId)
        Build the internal selection criteria to get inventory availability from read mediator.
        Parameters:
        catEntryId - catalog entry id.
        onlineStoreId - online store id.
        physicalStoreId - physical store id.
        Returns:
        selection criteria with catEntryId/physicalStoreId or catEntryId/onlineStoreId.
      • isValidStoreId

        public boolean isValidStoreId(java.lang.String storeId)
        Validate the store id.
        Parameters:
        storeId - the store identifier.
        Returns:
        true if valid, false if not valid.
      • getInventoryConfiguration

        public Invcnf getInventoryConfiguration(java.lang.String catEntryId,
                                                java.lang.String onlineStoreId,
                                                java.lang.String physicalStoreId)
                                         throws AbstractApplicationException
        Get the configuration of inventory availability of catEntryId/physicalStoreId or catEntryId/onlineStoreId. If physicalStoreId is valid, then it or onlineStoreID is used.
        Parameters:
        catEntryId - catalog entry id.
        onlineStoreId - online store id.
        physicalStoreId - physical store id.
        Returns:
        inventory availability configuration.
        Throws:
        AbstractApplicationException