Class DefaultTmaPriceContextService

java.lang.Object
de.hybris.platform.b2ctelcoservices.pricing.services.impl.DefaultTmaPriceContextService
All Implemented Interfaces:
TmaPriceContextService

public class DefaultTmaPriceContextService extends Object implements TmaPriceContextService
Default implementation of the TmaPriceContextService.
Since:
2007
  • Constructor Details

    • DefaultTmaPriceContextService

      public DefaultTmaPriceContextService(de.hybris.platform.enumeration.EnumerationService enumerationService, TmaPoService tmaPoService, de.hybris.platform.order.CartService cartService, TmaAbstractOrderEntryService abstractOrderEntryService)
  • Method Details

    • createPriceContext

      public TmaPriceContext createPriceContext(CommerceCartParameter parameter)
      Description copied from interface: TmaPriceContextService
      Creates a TmaPriceContext based on the attributes values set on the CommerceCartParameter. If a bundle product offering exists on the CommerceCartParameter then a bundle product offering price context is created, otherwise a simple price context is created
      Specified by:
      createPriceContext in interface TmaPriceContextService
      Parameters:
      parameter - CommerceCartParameter for which the context is created
      Returns:
      newly created TmaPriceContext with the configured parameters
    • createPriceContext

      public TmaPriceContext createPriceContext(AbstractOrderEntryModel entry)
      Description copied from interface: TmaPriceContextService
      Creates a TmaPriceContext based on the attributes values set on the order entry. If a bundle product offering exists on the order entry then a bundle product offering price context is created, otherwise a simple price context is created. For components part of a Fixed Bundled Product Offering, a simple price context is created.
      Specified by:
      createPriceContext in interface TmaPriceContextService
      Parameters:
      entry - order entry for which the context is created
      Returns:
      newly created TmaPriceContext with the configured parameters
    • createPriceContext

      public TmaPriceContext createPriceContext(AbstractOrderEntryModel entry, TmaBundledProductOfferingModel bundledProductOffering)
      Description copied from interface: TmaPriceContextService
      Creates a TmaPriceContext based on the attributes values set on the order entry. If a bundle product offering exists on the order entry then a bundle product offering price context is created, otherwise a simple price context is created
      Specified by:
      createPriceContext in interface TmaPriceContextService
      Parameters:
      entry - order entry for which the context is created
      bundledProductOffering - bundled product offering used for context creation
      Returns:
      newly created TmaPriceContext with the configured parameters
    • getRequiredProductsFromCart

      @Deprecated(since="2105") protected Set<TmaProductOfferingModel> getRequiredProductsFromCart(AbstractOrderEntryModel entry, ProductModel affectedProduct)
      Deprecated.
      since 2105.
      Determines the required products from an entry group.
      Parameters:
      entry - the entry starting from which other offerings part of the same group as the given affected product are identified
      affectedProduct - the affected product
      Returns:
      set of required products.
    • getEnumerationService

      protected de.hybris.platform.enumeration.EnumerationService getEnumerationService()
    • getTmaPoService

      protected TmaPoService getTmaPoService()
    • getCartService

      protected de.hybris.platform.order.CartService getCartService()
    • getAbstractOrderEntryService

      protected TmaAbstractOrderEntryService getAbstractOrderEntryService()