Class DefaultTmaPriceContextService
java.lang.Object
de.hybris.platform.b2ctelcoservices.pricing.services.impl.DefaultTmaPriceContextService
- All Implemented Interfaces:
TmaPriceContextService
Default implementation of the
TmaPriceContextService.- Since:
- 2007
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaPriceContextService(de.hybris.platform.enumeration.EnumerationService enumerationService, TmaPoService tmaPoService, de.hybris.platform.order.CartService cartService, TmaAbstractOrderEntryService abstractOrderEntryService) -
Method Summary
Modifier and TypeMethodDescriptioncreatePriceContext(CommerceCartParameter parameter) Creates aTmaPriceContextbased on the attributes values set on the CommerceCartParameter.Creates aTmaPriceContextbased on the attributes values set on the order entry.createPriceContext(AbstractOrderEntryModel entry, TmaBundledProductOfferingModel bundledProductOffering) Creates aTmaPriceContextbased on the attributes values set on the order entry.protected TmaAbstractOrderEntryServiceprotected de.hybris.platform.order.CartServiceprotected de.hybris.platform.enumeration.EnumerationServiceprotected Set<TmaProductOfferingModel>getRequiredProductsFromCart(AbstractOrderEntryModel entry, ProductModel affectedProduct) Deprecated.since 2105.protected TmaPoService
-
Constructor Details
-
DefaultTmaPriceContextService
public DefaultTmaPriceContextService(de.hybris.platform.enumeration.EnumerationService enumerationService, TmaPoService tmaPoService, de.hybris.platform.order.CartService cartService, TmaAbstractOrderEntryService abstractOrderEntryService)
-
-
Method Details
-
createPriceContext
Description copied from interface:TmaPriceContextServiceCreates aTmaPriceContextbased 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:
createPriceContextin interfaceTmaPriceContextService- Parameters:
parameter- CommerceCartParameter for which the context is created- Returns:
- newly created
TmaPriceContextwith the configured parameters
-
createPriceContext
Description copied from interface:TmaPriceContextServiceCreates aTmaPriceContextbased 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:
createPriceContextin interfaceTmaPriceContextService- Parameters:
entry- order entry for which the context is created- Returns:
- newly created
TmaPriceContextwith the configured parameters
-
createPriceContext
public TmaPriceContext createPriceContext(AbstractOrderEntryModel entry, TmaBundledProductOfferingModel bundledProductOffering) Description copied from interface:TmaPriceContextServiceCreates aTmaPriceContextbased 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:
createPriceContextin interfaceTmaPriceContextService- Parameters:
entry- order entry for which the context is createdbundledProductOffering- bundled product offering used for context creation- Returns:
- newly created
TmaPriceContextwith 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 identifiedaffectedProduct- the affected product- Returns:
- set of required products.
-
getEnumerationService
protected de.hybris.platform.enumeration.EnumerationService getEnumerationService() -
getTmaPoService
-
getCartService
protected de.hybris.platform.order.CartService getCartService() -
getAbstractOrderEntryService
-