Class CatalogFilterGetContractUnitPriceCmdImpl

  • java.lang.Object
  • All Implemented Interfaces:,,,, GetContractSpecialPriceCmd, GetContractUnitPriceCmd, GetProductContractUnitPriceCmd,,

    public class CatalogFilterGetContractUnitPriceCmdImpl
    extends AbstractGetPriceCmdImpl
    CatalogFilterGetContractUnitPriceCmdImpl is a price command that can be used to enhance other commands to support catalog entry entitlement. This command implementation cannot be used independently.

    To use this command, register the interface name in the command registry similar to the example below.

    Interface name Command <Next Implementation of> <Next Implementation of > <Next Implementation of>

    Note that this command can be called by other price commands to form a chain.

    This command implementation has the following steps:

    1. Creates all combinations of catalog entries and trading agreements that were requested through the input parameters using PriceInputCase.createPriceCases(GetPriceCmdInput).
    2. Uses the CheckCatalogEntryEntitlementCmd to discover which combinations of catalog entry and trading agreement are not valid.
    3. If there are any remaining combinations, calls the next command in the command registry using AbstractGetPriceCmdImpl.executeNextInChain(GetPriceCmdInput, String) with a suffix of "AfterCatalogFilter".
    4. If there are no remaining combinations, does not call the next command.
    5. Any prices that were not attempted due to filtering by this command will be null. All other prices will be calculated according to the registered next command.
    • Constructor Detail

      • CatalogFilterGetContractUnitPriceCmdImpl

        public CatalogFilterGetContractUnitPriceCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
        Performs the steps described in the class description.
        Specified by:
        performExecute in interface
        performExecute in class
        Throws: - If an error occurred while obtaining or executing CheckCatalogEntryEntitlementCmd, or while getting a trading agreement to determine entitlement. This error will not be thrown if AbstractGetPriceCmdImpl.setErrorMode(boolean) was set to false.