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 Details

    • DefaultTmaCommerceCartResourceService

      public DefaultTmaCommerceCartResourceService(de.hybris.platform.servicelayer.model.ModelService modelService, List<TmaAbstractOrderResourceStrategy> tmaAbstractOrderResourceStrategies)
  • Method Details

    • validateResources

      public List<TmaCartValidationResult> validateResources(CommerceCartParameter parameter)
      Description copied from interface: TmaCommerceCartResourceService
      Validates the resources to be stored on cart.
      Specified by:
      validateResources in interface TmaCommerceCartResourceService
      Parameters:
      parameter - commerce cart parameter containing resources to be stored on cart
      Returns:
      List of TmaCartValidationResult containing 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: TmaCommerceCartResourceService
      Updates the resources on cart based on the information from the . The will be updated to reflect the result of the this operation.
      Specified by:
      updateResources in interface TmaCommerceCartResourceService
      Parameters:
      commerceCartParameter - commerce cart parameter containing resources to be stored on cart
      commerceCartModification - 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 List<TmaAbstractOrderResourceStrategy> getTmaAbstractOrderResourceStrategies()