Class CloneComponentMediaContainerDataToAttributeContentConverter

java.lang.Object
de.hybris.platform.acceleratorfacades.cmsitems.attributeconverters.CloneComponentMediaContainerDataToAttributeContentConverter
All Implemented Interfaces:
Converter<Map<String,Object>,MediaContainerModel>

public class CloneComponentMediaContainerDataToAttributeContentConverter extends Object implements Converter<Map<String,Object>,MediaContainerModel>
The Converter is invoked when cloning a component which contain a MediaContainer. This converts a Map<String, String> representation of a MediaContainerModel into an actual MediaContainerModel When cloning a component, the "source" Map contains the values as inputed by the request payload. The "cloneComponentModel" is the component model created by cloning from the source component uuid specified in the request payload. When editing a MediaContainer, if at least one media was modified in the "source" Map for any given MediaFormat, the resulting "cloneComponentModel" should update the reference to the updated "source" Map value. Otherwise, a reference to the cloned media model is used instead.
  • Constructor Details

    • CloneComponentMediaContainerDataToAttributeContentConverter

      public CloneComponentMediaContainerDataToAttributeContentConverter()
  • Method Details