Class DefaultCommerceCartMetadataUpdateStrategy
- java.lang.Object
-
- de.hybris.platform.commerceservices.order.strategies.impl.DefaultCommerceCartMetadataUpdateStrategy
-
- All Implemented Interfaces:
CommerceCartMetadataUpdateStrategy
public class DefaultCommerceCartMetadataUpdateStrategy extends java.lang.Object implements CommerceCartMetadataUpdateStrategy
Default implementation ofCommerceCartMetadataUpdateStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultCommerceCartMetadataUpdateStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterUpdateMetadata(CommerceCartMetadataParameter parameter)protected voidbeforeUpdateMetadata(CommerceCartMetadataParameter parameter)protected booleandoMetadataUpdate(CommerceCartMetadataParameter parameter)protected java.util.List<CommerceCartMetadataUpdateMethodHook>getCommerceCartMetadataUpdateMethodHooks()protected ModelServicegetModelService()voidsetCommerceCartMetadataUpdateMethodHooks(java.util.List<CommerceCartMetadataUpdateMethodHook> commerceCartMetadataUpdateMethodHooks)voidsetModelService(ModelService modelService)voidupdateCartMetadata(CommerceCartMetadataParameter parameter)Updates cart metadata fields (i.e.
-
-
-
Method Detail
-
updateCartMetadata
public void updateCartMetadata(CommerceCartMetadataParameter parameter)
Description copied from interface:CommerceCartMetadataUpdateStrategyUpdates cart metadata fields (i.e. name). Most of the attributes from the input bean are ofOptionaltype and they will only be used when a value is present for them. An empty string for anOptionalwill trigger the field to be stored as null.- Specified by:
updateCartMetadatain interfaceCommerceCartMetadataUpdateStrategy- Parameters:
parameter- a bean holding any number of additional attributes a client may want to pass to the method
-
doMetadataUpdate
protected boolean doMetadataUpdate(CommerceCartMetadataParameter parameter)
-
beforeUpdateMetadata
protected void beforeUpdateMetadata(CommerceCartMetadataParameter parameter)
-
afterUpdateMetadata
protected void afterUpdateMetadata(CommerceCartMetadataParameter parameter)
-
getCommerceCartMetadataUpdateMethodHooks
protected java.util.List<CommerceCartMetadataUpdateMethodHook> getCommerceCartMetadataUpdateMethodHooks()
-
setCommerceCartMetadataUpdateMethodHooks
public void setCommerceCartMetadataUpdateMethodHooks(java.util.List<CommerceCartMetadataUpdateMethodHook> commerceCartMetadataUpdateMethodHooks)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
-