Class DefaultTmaPriceContextService
- java.lang.Object
-
- de.hybris.platform.b2ctelcoservices.pricing.services.impl.DefaultTmaPriceContextService
-
- All Implemented Interfaces:
TmaPriceContextService
public class DefaultTmaPriceContextService extends java.lang.Object implements TmaPriceContextService
Default implementation of theTmaPriceContextService.- Since:
- 2007
-
-
Constructor Summary
Constructors Constructor Description DefaultTmaPriceContextService(de.hybris.platform.enumeration.EnumerationService enumerationService, TmaPoService tmaPoService, de.hybris.platform.order.CartService cartService)Initializes a new instance of DefaultTmaPriceContextService
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TmaPriceContextcreatePriceContext(CommerceCartParameter parameter)Creates aTmaPriceContextbased on the attributes values set on the CommerceCartParameter.TmaPriceContextcreatePriceContext(AbstractOrderEntryModel entry)Creates aTmaPriceContextbased on the attributes values set on the order entry.protected de.hybris.platform.order.CartServicegetCartService()protected de.hybris.platform.enumeration.EnumerationServicegetEnumerationService()protected java.util.Set<TmaProductOfferingModel>getRequiredProductsFromCart(AbstractOrderEntryModel entry, ProductModel affectedProduct)protected TmaPoServicegetTmaPoService()
-
-
-
Constructor Detail
-
DefaultTmaPriceContextService
public DefaultTmaPriceContextService(de.hybris.platform.enumeration.EnumerationService enumerationService, TmaPoService tmaPoService, de.hybris.platform.order.CartService cartService)Initializes a new instance of DefaultTmaPriceContextService- Parameters:
enumerationService- enumerationService ofEnumerationServicetmaPoService- tmaPoService ofTmaPoServicecartService- cartService ofCartService
-
-
Method Detail
-
createPriceContext
public TmaPriceContext createPriceContext(CommerceCartParameter parameter)
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
public TmaPriceContext createPriceContext(AbstractOrderEntryModel entry)
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 created- Returns:
- newly created
TmaPriceContextwith the configured parameters
-
getRequiredProductsFromCart
protected java.util.Set<TmaProductOfferingModel> getRequiredProductsFromCart(AbstractOrderEntryModel entry, ProductModel affectedProduct)
-
getEnumerationService
protected de.hybris.platform.enumeration.EnumerationService getEnumerationService()
-
getTmaPoService
protected TmaPoService getTmaPoService()
-
getCartService
protected de.hybris.platform.order.CartService getCartService()
-
-