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 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:
      populate in interface de.hybris.platform.converters.Populator<CartActionInput,CommerceCartParameter>
      Throws:
      de.hybris.platform.servicelayer.dto.converter.ConversionException
    • getDeliveryMode

      protected DeliveryModeModel getDeliveryMode(String deliveryModeId)
    • getEntryGroupNumbers

      protected Set<Integer> getEntryGroupNumbers(CartActionInput cartActionInput)
    • getProduct

      protected ProductModel getProduct(String productCode)
    • getPointOfService

      protected PointOfServiceModel getPointOfService(String storeId)
    • getCart

      protected CartModel getCart(CartActionInput cartActionInput)
      Returns a cart for the parameters provided.
      Parameters:
      cartActionInput - contains attributes used for cart entry updates
      Returns:
      CartModel
    • getPlaces

      protected List<TmaPlace> getPlaces(CartActionInput cartActionInput)
      Returns the places found on the product from the CartActionInput provided.
      Parameters:
      cartActionInput - the input.
      Returns:
      the places found on the cartAction given as input.
    • getUser

      protected UserModel getUser(CartActionInput cartActionInput)
      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 2102
      In the case of keep or remove CPI actions we obtain the productOffering from the subscribedProduct not from the request.
      Parameters:
      subscribedProductInput - the subscribed product
      user - 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 subscribedProduct
      customer - the customer
      Returns:
      The subscribed product if found;otherwise it will throw an exception.
    • getEntryFor

      protected AbstractOrderEntryModel getEntryFor(AbstractOrderModel abstractOrder, int entryNumber)
      Returns the entry for the provided entry number.
      Parameters:
      abstractOrder - the abstract order
      entryNumber - 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

      protected TmaCustomerInventoryService 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

      public void setCustomerInventoryService(TmaCustomerInventoryService customerInventoryService)
    • 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

      protected TmaAbstractOrderEntryService getAbstractOrderEntryService()