Class TmaConfigProductSpecCharResourceStrategy
java.lang.Object
de.hybris.platform.b2ctelcoservices.order.resourcestrategies.impl.TmaConfigProductSpecCharResourceStrategy
- All Implemented Interfaces:
TmaAbstractOrderResourceStrategy
public class TmaConfigProductSpecCharResourceStrategy
extends Object
implements TmaAbstractOrderResourceStrategy
Resource strategy implementation. Validates and updates configurable characteristic resource.
- Since:
- 1911
-
Constructor Summary
ConstructorsConstructorDescriptionTmaConfigProductSpecCharResourceStrategy(TmaPoService tmaPoService, de.hybris.platform.servicelayer.model.ModelService modelService, de.hybris.platform.servicelayer.config.ConfigurationService configurationService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclearExistingConfigurablePscvs(AbstractOrderEntryModel entry, Set<TmaProductSpecCharacteristicConfigItem> requestCharacteristics) Removes the configurable characteristics from the entry which are present in the request.protected de.hybris.platform.servicelayer.config.ConfigurationServiceprotected de.hybris.platform.servicelayer.model.ModelServiceprotected TmaPoServicevoidupdateResource(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
-
TmaConfigProductSpecCharResourceStrategy
public TmaConfigProductSpecCharResourceStrategy(TmaPoService tmaPoService, de.hybris.platform.servicelayer.model.ModelService modelService, de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
-
-
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
-
clearExistingConfigurablePscvs
protected void clearExistingConfigurablePscvs(AbstractOrderEntryModel entry, Set<TmaProductSpecCharacteristicConfigItem> requestCharacteristics) Removes the configurable characteristics from the entry which are present in the request.- Parameters:
entry- The entryrequestCharacteristics- The characteristics present in the request
-
getTmaPoService
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
getConfigurationService
protected de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()
-