Class MediaFormatsComponentTypeAttributePopulator
java.lang.Object
de.hybris.platform.cmsfacades.types.populator.MediaFormatsComponentTypeAttributePopulator
- All Implemented Interfaces:
Populator<AttributeDescriptorModel,ComponentTypeAttributeData>
public class MediaFormatsComponentTypeAttributePopulator
extends Object
implements Populator<AttributeDescriptorModel,ComponentTypeAttributeData>
This populator will populate
ComponentTypeAttributeData.setOptions(List) using the
CMSMediaFormatService.
The option label in this case will have the following prefix cms.media.format. and terminate with the
qualifier of the media format in lower case.
Example: cms.media.format.mobile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CMSMediaFormatServiceprotected TypeServicevoidpopulate(AttributeDescriptorModel source, ComponentTypeAttributeData target) Populate the target instance with values from the source instance.voidsetCmsMediaFormatService(CMSMediaFormatService cmsMediaFormatService) voidsetTypeService(TypeService typeService)
-
Constructor Details
-
MediaFormatsComponentTypeAttributePopulator
public MediaFormatsComponentTypeAttributePopulator()
-
-
Method Details
-
populate
public void populate(AttributeDescriptorModel source, ComponentTypeAttributeData target) throws ConversionException Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AttributeDescriptorModel,ComponentTypeAttributeData> - Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
getTypeService
-
setTypeService
-
getCmsMediaFormatService
-
setCmsMediaFormatService
-