Class TmaRegionResourceStrategy
- java.lang.Object
-
- de.hybris.platform.b2ctelcoservices.order.impl.TmaRegionResourceStrategy
-
- All Implemented Interfaces:
TmaAbstractOrderResourceStrategy
public class TmaRegionResourceStrategy extends java.lang.Object implements TmaAbstractOrderResourceStrategy
Resource strategy implementation. Validates and updates region resource.- Since:
- 2003
-
-
Constructor Summary
Constructors Constructor Description TmaRegionResourceStrategy(TmaRegionService tmaRegionService, TmaCommercePriceService commercePriceService, de.hybris.platform.servicelayer.model.ModelService modelService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TmaCommercePriceServicegetCommercePriceService()protected de.hybris.platform.servicelayer.model.ModelServicegetModelService()protected TmaRegionServicegetTmaRegionService()voidupdateResource(CommerceCartParameter commerceCartParameter, CommerceCartModification commerceCartModification)Updates the resource from the @CommerceCartParameteron the given order entry.TmaCartValidationResultvalidateResource(CommerceCartParameter parameter)Validates that the resources from theCommerceCartParameterare valid to be stored on cart.
-
-
-
Constructor Detail
-
TmaRegionResourceStrategy
public TmaRegionResourceStrategy(TmaRegionService tmaRegionService, TmaCommercePriceService commercePriceService, de.hybris.platform.servicelayer.model.ModelService modelService)
-
-
Method Detail
-
validateResource
public TmaCartValidationResult validateResource(CommerceCartParameter parameter)
Description copied from interface:TmaAbstractOrderResourceStrategyValidates that the resources from theCommerceCartParameterare valid to be stored on cart.- Specified by:
validateResourcein interfaceTmaAbstractOrderResourceStrategy- Parameters:
parameter- 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
-
getTmaRegionService
protected TmaRegionService getTmaRegionService()
-
getCommercePriceService
protected TmaCommercePriceService getCommercePriceService()
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()
-
-