Class DefaultSavedCartIntegrationFacade
java.lang.Object
de.hybris.platform.cpq.productconfig.facades.impl.DefaultSavedCartIntegrationFacade
- All Implemented Interfaces:
SavedCartIntegrationFacade
Default implementation of
SavedCartIntegrationFacade-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSavedCartIntegrationFacade(AbstractOrderIntegrationService abstractOrderIntegrationService, de.hybris.platform.commerceservices.order.CommerceCartService commerceCartService, de.hybris.platform.servicelayer.user.UserService userService) Default constructor for dependency injection. -
Method Summary
Modifier and TypeMethodDescriptionprotected CartModelfindSavedCart(String code) protected AbstractOrderEntryModelfindSavedCartEntry(String cartCode, int entryNumber) protected AbstractOrderIntegrationServiceprotected de.hybris.platform.commerceservices.order.CommerceCartServicegetConfigurationId(String cartCode, int entryNumber) Retrieves configuration id for a cart entrygetProductCode(String cartCode, int entryNumber) Retrieves product code for a cart entryprotected de.hybris.platform.servicelayer.user.UserService
-
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 entrycommerceCartService- for reading the saved cartsuserService- 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:SavedCartIntegrationFacadeRetrieves configuration id for a cart entry- Specified by:
getConfigurationIdin interfaceSavedCartIntegrationFacade- Parameters:
cartCode- cart codeentryNumber- 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:SavedCartIntegrationFacadeRetrieves product code for a cart entry- Specified by:
getProductCodein interfaceSavedCartIntegrationFacade- Parameters:
cartCode- cart codeentryNumber- 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
-
getCommerceCartService
protected de.hybris.platform.commerceservices.order.CommerceCartService getCommerceCartService() -
getUserService
protected de.hybris.platform.servicelayer.user.UserService getUserService()
-