Class DefaultTmaCommerceCartResourceService
- java.lang.Object
-
- de.hybris.platform.b2ctelcoservices.order.impl.DefaultTmaCommerceCartResourceService
-
- All Implemented Interfaces:
TmaCommerceCartResourceService
public class DefaultTmaCommerceCartResourceService extends java.lang.Object implements TmaCommerceCartResourceService
Default implementation forTmaCommerceCartResourceServiceinterface.- Since:
- 1911
-
-
Constructor Summary
Constructors Constructor Description DefaultTmaCommerceCartResourceService(de.hybris.platform.servicelayer.model.ModelService modelService, java.util.List<TmaAbstractOrderResourceStrategy> tmaAbstractOrderResourceStrategies)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected de.hybris.platform.servicelayer.model.ModelServicegetModelService()protected java.util.List<TmaAbstractOrderResourceStrategy>getTmaAbstractOrderResourceStrategies()voidupdateResources(CommerceCartParameter commerceCartParameter, CommerceCartModification commerceCartModification)Updates the resources on cart based on the information from the {@param CommerceCartParameter}.java.util.List<TmaCartValidationResult>validateResources(CommerceCartParameter parameter)Validates the resources to be stored on cart.
-
-
-
Constructor Detail
-
DefaultTmaCommerceCartResourceService
public DefaultTmaCommerceCartResourceService(de.hybris.platform.servicelayer.model.ModelService modelService, java.util.List<TmaAbstractOrderResourceStrategy> tmaAbstractOrderResourceStrategies)
-
-
Method Detail
-
validateResources
public java.util.List<TmaCartValidationResult> validateResources(CommerceCartParameter parameter)
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 {@param CommerceCartParameter}. The {@param CommerceCartModification} 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
protected java.util.List<TmaAbstractOrderResourceStrategy> getTmaAbstractOrderResourceStrategies()
-
-