Class DefaultSavedCartIntegrationFacade

java.lang.Object
de.hybris.platform.cpq.productconfig.facades.impl.DefaultSavedCartIntegrationFacade
All Implemented Interfaces:
SavedCartIntegrationFacade

public class DefaultSavedCartIntegrationFacade extends Object implements SavedCartIntegrationFacade
Default implementation of SavedCartIntegrationFacade
  • Constructor Details

    • DefaultSavedCartIntegrationFacade

      public DefaultSavedCartIntegrationFacade(AbstractOrderIntegrationService abstractOrderIntegrationService, de.hybris.platform.commerceservices.order.CommerceCartService commerceCartService, de.hybris.platform.servicelayer.user.UserService userService)
      Default constructor for dependency injection.
      Parameters:
      abstractOrderIntegrationService - for retrieving the configuration id from the abstract order entry
      commerceCartService - for reading the saved carts
      userService - for retrieving of current user, which is required to read the saved cart
  • Method Details

    • getConfigurationId

      public String getConfigurationId(String cartCode, int entryNumber) throws de.hybris.platform.commerceservices.order.CommerceSaveCartException
      Description copied from interface: SavedCartIntegrationFacade
      Retrieves configuration id for a cart entry
      Specified by:
      getConfigurationId in interface SavedCartIntegrationFacade
      Parameters:
      cartCode - cart code
      entryNumber - entry number
      Returns:
      configuration id
      Throws:
      de.hybris.platform.commerceservices.order.CommerceSaveCartException - in case cart or entry is not found
    • findSavedCartEntry

      protected AbstractOrderEntryModel findSavedCartEntry(String cartCode, int entryNumber) throws de.hybris.platform.commerceservices.order.CommerceSaveCartException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceSaveCartException
    • getProductCode

      public String getProductCode(String cartCode, int entryNumber) throws de.hybris.platform.commerceservices.order.CommerceSaveCartException
      Description copied from interface: SavedCartIntegrationFacade
      Retrieves product code for a cart entry
      Specified by:
      getProductCode in interface SavedCartIntegrationFacade
      Parameters:
      cartCode - cart code
      entryNumber - entry number
      Returns:
      product code
      Throws:
      de.hybris.platform.commerceservices.order.CommerceSaveCartException - in case cart or entry is not found
    • findSavedCart

      protected CartModel findSavedCart(String code) throws de.hybris.platform.commerceservices.order.CommerceSaveCartException
      Throws:
      de.hybris.platform.commerceservices.order.CommerceSaveCartException
    • getAbstractOrderIntegrationService

      protected AbstractOrderIntegrationService getAbstractOrderIntegrationService()
    • getCommerceCartService

      protected de.hybris.platform.commerceservices.order.CommerceCartService getCommerceCartService()
    • getUserService

      protected de.hybris.platform.servicelayer.user.UserService getUserService()