Class TmaCommerceCartParameterPopulator
java.lang.Object
de.hybris.platform.b2ctelcofacades.order.converters.populator.TmaCommerceCartParameterPopulator
- All Implemented Interfaces:
de.hybris.platform.converters.Populator<CartActionInput,CommerceCartParameter>
public class TmaCommerceCartParameterPopulator
extends Object
implements de.hybris.platform.converters.Populator<CartActionInput,CommerceCartParameter>
Populator for
CommerceCartParameter- Since:
- 1907
-
Constructor Summary
ConstructorsConstructorDescriptionTmaCommerceCartParameterPopulator(Map<TmaPlaceRoleType, de.hybris.platform.servicelayer.dto.converter.Converter> placeConverters, de.hybris.platform.order.DeliveryModeService deliveryModeService, de.hybris.platform.servicelayer.model.ModelService modelService, de.hybris.platform.servicelayer.dto.converter.Converter<CartActionInput, CommerceCartParameter> commerceCartParameterConverter, TmaAbstractOrderEntryService abstractOrderEntryService) -
Method Summary
Modifier and TypeMethodDescriptionprotected TmaAbstractOrderEntryServiceprotected de.hybris.platform.site.BaseSiteServiceprotected CartModelgetCart(CartActionInput cartActionInput) Returns a cart for the parameters provided.protected de.hybris.platform.order.CartServiceprotected de.hybris.platform.servicelayer.dto.converter.Converter<CartActionInput,CommerceCartParameter> protected de.hybris.platform.commerceservices.order.CommerceCartServiceprotected TmaCustomerInventoryServiceprotected DeliveryModeModelgetDeliveryMode(String deliveryModeId) protected de.hybris.platform.order.DeliveryModeServiceprotected AbstractOrderEntryModelgetEntryFor(AbstractOrderModel abstractOrder, int entryNumber) Returns the entry for the provided entry number.getEntryGroupNumbers(CartActionInput cartActionInput) protected de.hybris.platform.servicelayer.model.ModelServiceprotected Map<TmaPlaceRoleType,de.hybris.platform.servicelayer.dto.converter.Converter> getPlaces(CartActionInput cartActionInput) Returns the places found on the product from theCartActionInputprovided.protected PointOfServiceModelgetPointOfService(String storeId) protected de.hybris.platform.storelocator.pos.PointOfServiceServiceprotected ProductModelgetProduct(String productCode) protected ProductModelgetProductOfferingFromSubscribedProduct(TmaSubscribedProductModel subscribedProductInput, UserModel user) Deprecated.since 2102protected de.hybris.platform.product.ProductServiceprotected TmaSubscribedProductModelgetSubscribedProduct(String subscribedProductCode, UserModel customer) This method gets a subscribed product with the given code from the customer's product inventory.protected UserModelgetUser(CartActionInput cartActionInput) Returns a user for the parameters provided.protected de.hybris.platform.servicelayer.user.UserServicevoidpopulate(CartActionInput cartActionInput, CommerceCartParameter commerceCartParameter) voidsetBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService) voidsetCartService(de.hybris.platform.order.CartService cartService) voidsetCommerceCartService(de.hybris.platform.commerceservices.order.CommerceCartService commerceCartService) voidsetCustomerInventoryService(TmaCustomerInventoryService customerInventoryService) voidsetPointOfServiceService(de.hybris.platform.storelocator.pos.PointOfServiceService pointOfServiceService) voidsetProductService(de.hybris.platform.product.ProductService productService) voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
Constructor Details
-
TmaCommerceCartParameterPopulator
public TmaCommerceCartParameterPopulator(Map<TmaPlaceRoleType, de.hybris.platform.servicelayer.dto.converter.Converter> placeConverters, de.hybris.platform.order.DeliveryModeService deliveryModeService, de.hybris.platform.servicelayer.model.ModelService modelService, de.hybris.platform.servicelayer.dto.converter.Converter<CartActionInput, CommerceCartParameter> commerceCartParameterConverter, TmaAbstractOrderEntryService abstractOrderEntryService)
-
-
Method Details
-
populate
public void populate(CartActionInput cartActionInput, CommerceCartParameter commerceCartParameter) throws de.hybris.platform.servicelayer.dto.converter.ConversionException - Specified by:
populatein interfacede.hybris.platform.converters.Populator<CartActionInput,CommerceCartParameter> - Throws:
de.hybris.platform.servicelayer.dto.converter.ConversionException
-
getDeliveryMode
-
getEntryGroupNumbers
-
getProduct
-
getPointOfService
-
getCart
Returns a cart for the parameters provided.- Parameters:
cartActionInput- contains attributes used for cart entry updates- Returns:
- CartModel
-
getPlaces
Returns the places found on the product from theCartActionInputprovided.- Parameters:
cartActionInput- the input.- Returns:
- the places found on the cartAction given as input.
-
getUser
Returns a user for the parameters provided.- Parameters:
cartActionInput- contains attributes used for cart updates- Returns:
- CartModel
-
getProductOfferingFromSubscribedProduct
@Deprecated(since="2102") protected ProductModel getProductOfferingFromSubscribedProduct(TmaSubscribedProductModel subscribedProductInput, UserModel user) Deprecated.since 2102In the case of keep or remove CPI actions we obtain the productOffering from the subscribedProduct not from the request.- Parameters:
subscribedProductInput- the subscribed productuser- the customer- Returns:
- the productOffering corresponding to the subscribedProduct if found; null otherwise.
-
getSubscribedProduct
protected TmaSubscribedProductModel getSubscribedProduct(String subscribedProductCode, UserModel customer) This method gets a subscribed product with the given code from the customer's product inventory.- Parameters:
subscribedProductCode- the id of the subscribedProductcustomer- the customer- Returns:
- The subscribed product if found;otherwise it will throw an exception.
-
getEntryFor
Returns the entry for the provided entry number.- Parameters:
abstractOrder- the abstract orderentryNumber- the entry number- Returns:
- The entry if found;otherwise it will throw an exception.
-
getCartService
protected de.hybris.platform.order.CartService getCartService() -
getProductService
protected de.hybris.platform.product.ProductService getProductService() -
getPointOfServiceService
protected de.hybris.platform.storelocator.pos.PointOfServiceService getPointOfServiceService() -
getCommerceCartService
protected de.hybris.platform.commerceservices.order.CommerceCartService getCommerceCartService() -
getUserService
protected de.hybris.platform.servicelayer.user.UserService getUserService() -
getCustomerInventoryService
-
getPlaceConverters
protected Map<TmaPlaceRoleType,de.hybris.platform.servicelayer.dto.converter.Converter> getPlaceConverters() -
setCartService
public void setCartService(de.hybris.platform.order.CartService cartService) -
setProductService
public void setProductService(de.hybris.platform.product.ProductService productService) -
setPointOfServiceService
public void setPointOfServiceService(de.hybris.platform.storelocator.pos.PointOfServiceService pointOfServiceService) -
setCommerceCartService
public void setCommerceCartService(de.hybris.platform.commerceservices.order.CommerceCartService commerceCartService) -
setUserService
public void setUserService(de.hybris.platform.servicelayer.user.UserService userService) -
setCustomerInventoryService
-
getDeliveryModeService
protected de.hybris.platform.order.DeliveryModeService getDeliveryModeService() -
getBaseSiteService
protected de.hybris.platform.site.BaseSiteService getBaseSiteService() -
setBaseSiteService
public void setBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService) -
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
getCommerceCartParameterConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<CartActionInput,CommerceCartParameter> getCommerceCartParameterConverter() -
getAbstractOrderEntryService
-