com.ibm.commerce.price.commands

Class GetExternalEntitledPriceWithCacheCheckCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, GetContractSpecialPriceCmd, GetContractUnitPriceCmd, GetEntitledPriceCmd, GetProductContractUnitPriceCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class GetExternalEntitledPriceWithCacheCheckCmdImpl
    extends AbstractGetEntitledPriceCmdImpl
    This command retrieves the best offer prices for one or more catalog entries from the cache. If some offer prices are not found in the cache, it calls price outbound service to get the prices from external system. After getting the response from external system, it creates or updates the cache records.

    Behavior

    It returns the best price for each catalog entry.

    If the command is successfully getting the price, it will return the best prices. If unsuccessfully, the command throws the ECApplicationException specifying an Error Message (ERR_RETRIEVE_PRICE) or returns null prices depending on Error Mode.

    This command accepts either one of the following inputs:

    • A catalog entry ID is required, and also the caller could provide quantity or currency
    • Catalog entry prices of type CatEntryPrices.

    This command uses the following AccessBeans :

    • CatalogEntryAccessBean
    • Constructor Detail

      • GetExternalEntitledPriceWithCacheCheckCmdImpl

        public GetExternalEntitledPriceWithCacheCheckCmdImpl()