Class TmaDeliveryModeResourceStrategy
java.lang.Object
de.hybris.platform.b2ctelcoservices.order.resourcestrategies.impl.TmaDeliveryModeResourceStrategy
- All Implemented Interfaces:
TmaAbstractOrderResourceStrategy
public class TmaDeliveryModeResourceStrategy
extends Object
implements TmaAbstractOrderResourceStrategy
Resource strategy implementation. Validates and updates delivery mode.
- Since:
- 1911
-
Constructor Summary
ConstructorsConstructorDescriptionTmaDeliveryModeResourceStrategy(de.hybris.platform.commerceservices.delivery.DeliveryService deliveryService, de.hybris.platform.commerceservices.order.CommerceDeliveryModeStrategy commerceDeliveryModeStrategy) -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.commerceservices.order.CommerceDeliveryModeStrategyprotected de.hybris.platform.commerceservices.delivery.DeliveryServicevoidupdateResource(CommerceCartParameter commerceCartParameter, CommerceCartModification commerceCartModification) Updates the resource from the @CommerceCartParameteron the given order entry.validateResource(CommerceCartParameter commerceCartParameter) Validates that the resources from theCommerceCartParameterare valid to be stored on cart.
-
Constructor Details
-
TmaDeliveryModeResourceStrategy
public TmaDeliveryModeResourceStrategy(de.hybris.platform.commerceservices.delivery.DeliveryService deliveryService, de.hybris.platform.commerceservices.order.CommerceDeliveryModeStrategy commerceDeliveryModeStrategy)
-
-
Method Details
-
validateResource
Description copied from interface:TmaAbstractOrderResourceStrategyValidates that the resources from theCommerceCartParameterare valid to be stored on cart.- Specified by:
validateResourcein interfaceTmaAbstractOrderResourceStrategy- Parameters:
commerceCartParameter- the commerce cart parameter storing information to be stored on cart- Returns:
TmaCartValidationResult
-
updateResource
public void updateResource(CommerceCartParameter commerceCartParameter, CommerceCartModification commerceCartModification) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Description copied from interface:TmaAbstractOrderResourceStrategyUpdates the resource from the @CommerceCartParameteron the given order entry.- Specified by:
updateResourcein interfaceTmaAbstractOrderResourceStrategy- Parameters:
commerceCartParameter- contains attributes used for cart entry updatescommerceCartModification- contains the updates made on the cart- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException- in case of any error occurs during cart update
-
getDeliveryService
protected de.hybris.platform.commerceservices.delivery.DeliveryService getDeliveryService() -
getCommerceDeliveryModeStrategy
protected de.hybris.platform.commerceservices.order.CommerceDeliveryModeStrategy getCommerceDeliveryModeStrategy()
-