Class DefaultTmaCommerceCartResourceService
java.lang.Object
de.hybris.platform.b2ctelcoservices.order.impl.DefaultTmaCommerceCartResourceService
- All Implemented Interfaces:
TmaCommerceCartResourceService
public class DefaultTmaCommerceCartResourceService
extends Object
implements TmaCommerceCartResourceService
Default implementation for
TmaCommerceCartResourceService interface.- Since:
- 1911
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaCommerceCartResourceService(de.hybris.platform.servicelayer.model.ModelService modelService, List<TmaAbstractOrderResourceStrategy> tmaAbstractOrderResourceStrategies) -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.servicelayer.model.ModelServiceprotected List<TmaAbstractOrderResourceStrategy>voidupdateResources(CommerceCartParameter commerceCartParameter, CommerceCartModification commerceCartModification) Updates the resources on cart based on the information from the .validateResources(CommerceCartParameter parameter) Validates the resources to be stored on cart.
-
Constructor Details
-
DefaultTmaCommerceCartResourceService
public DefaultTmaCommerceCartResourceService(de.hybris.platform.servicelayer.model.ModelService modelService, List<TmaAbstractOrderResourceStrategy> tmaAbstractOrderResourceStrategies)
-
-
Method Details
-
validateResources
Description copied from interface:TmaCommerceCartResourceServiceValidates the resources to be stored on cart.- Specified by:
validateResourcesin interfaceTmaCommerceCartResourceService- Parameters:
parameter- commerce cart parameter containing resources to be stored on cart- Returns:
- List of
TmaCartValidationResultcontaining information about the validation of the parameter
-
updateResources
public void updateResources(CommerceCartParameter commerceCartParameter, CommerceCartModification commerceCartModification) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Description copied from interface:TmaCommerceCartResourceServiceUpdates the resources on cart based on the information from the . The will be updated to reflect the result of the this operation.- Specified by:
updateResourcesin interfaceTmaCommerceCartResourceService- Parameters:
commerceCartParameter- commerce cart parameter containing resources to be stored on cartcommerceCartModification- contains the updates made on the cart- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- in case of any error occurs during cart update
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
getTmaAbstractOrderResourceStrategies
-