Class TmaContractStartDateResourceStrategy
java.lang.Object
de.hybris.platform.b2ctelcoservices.order.resourcestrategies.impl.TmaContractStartDateResourceStrategy
- All Implemented Interfaces:
TmaAbstractOrderResourceStrategy
public class TmaContractStartDateResourceStrategy
extends Object
implements TmaAbstractOrderResourceStrategy
Resource strategy implementation. Validates and updates contract start date.
- Since:
- 2003
-
Constructor Summary
ConstructorsConstructorDescriptionTmaContractStartDateResourceStrategy(de.hybris.platform.servicelayer.model.ModelService modelService, de.hybris.platform.order.CartService cartService, TmaSubscriptionTermService subscriptionTermService) -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.order.CartServiceprotected de.hybris.platform.servicelayer.model.ModelServiceprotected TmaSubscriptionTermServicevoidupdateResource(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
-
TmaContractStartDateResourceStrategy
public TmaContractStartDateResourceStrategy(de.hybris.platform.servicelayer.model.ModelService modelService, de.hybris.platform.order.CartService cartService, TmaSubscriptionTermService subscriptionTermService)
-
-
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
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
getCartService
protected de.hybris.platform.order.CartService getCartService() -
getSubscriptionTermService
-