Class TmaProcessTypeResourceStrategy
java.lang.Object
de.hybris.platform.b2ctelcoservices.order.resourcestrategies.impl.TmaProcessTypeResourceStrategy
- All Implemented Interfaces:
TmaAbstractOrderResourceStrategy
public class TmaProcessTypeResourceStrategy
extends Object
implements TmaAbstractOrderResourceStrategy
Process Type resource strategy responsible for updating process type for cart.
- Since:
- 2007
-
Constructor Summary
ConstructorsConstructorDescriptionTmaProcessTypeResourceStrategy(TmaCustomerInventoryService tmaCustomerInventoryService, de.hybris.platform.servicelayer.model.ModelService modelService, de.hybris.platform.enumeration.EnumerationService enumerationService) -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.enumeration.EnumerationServiceprotected de.hybris.platform.servicelayer.model.ModelServiceprotected TmaCustomerInventoryServicevoidupdateResource(CommerceCartParameter commerceCartParameter, CommerceCartModification commerceCartModification) Updates the resource from the @CommerceCartParameteron the given order entry.validateResource(CommerceCartParameter parameter) Validates that the resources from theCommerceCartParameterare valid to be stored on cart.
-
Constructor Details
-
TmaProcessTypeResourceStrategy
public TmaProcessTypeResourceStrategy(TmaCustomerInventoryService tmaCustomerInventoryService, de.hybris.platform.servicelayer.model.ModelService modelService, de.hybris.platform.enumeration.EnumerationService enumerationService)
-
-
Method Details
-
validateResource
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
-
getTmaCustomerInventoryService
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
getEnumerationService
protected de.hybris.platform.enumeration.EnumerationService getEnumerationService()
-