Class ContentSlotModelToDataRenderingPopulator
java.lang.Object
de.hybris.platform.cmsfacades.rendering.populators.ContentSlotModelToDataRenderingPopulator
- All Implemented Interfaces:
Populator<ContentSlotData,PageContentSlotData>
- Direct Known Subclasses:
CxContentSlotModelToDataRenderingPopulator
public class ContentSlotModelToDataRenderingPopulator
extends Object
implements Populator<ContentSlotData,PageContentSlotData>
Populator used to add all the information required to render a content slot.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractCMSComponentDataConverts given component model to component dataprotected RenderingVisibilityServicevoidpopulate(ContentSlotData contentSlotData, PageContentSlotData targetData) Populate the target instance with values from the source instance.protected voidpopulateComponents(ContentSlotModel slotModel, PageContentSlotData targetData) Populates components forContentSlotModel.protected voidpopulateCustomProperties(ContentSlotModel slotModel, PageContentSlotData targetData) Populates custom properties forContentSlotModel.voidsetCmsComponentModelToDataRenderingConverter(Converter<AbstractCMSComponentModel, AbstractCMSComponentData> cmsComponentModelToDataRenderingConverter) voidvoidsetRenderingCacheService(RenderingCacheService<AbstractCMSComponentData> renderingCacheService) voidsetRenderingVisibilityService(RenderingVisibilityService renderingVisibilityService) voidsetUniqueIdentifierAttributeToDataContentConverter(UniqueIdentifierAttributeToDataContentConverter<ItemModel> uniqueIdentifierAttributeToDataContentConverter)
-
Constructor Details
-
ContentSlotModelToDataRenderingPopulator
public ContentSlotModelToDataRenderingPopulator()
-
-
Method Details
-
populate
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<ContentSlotData,PageContentSlotData> - Parameters:
contentSlotData- the source objecttargetData- the target to fill
-
populateComponents
Populates components forContentSlotModel. The list of components is retrieved from the cache if theRenderingCacheServiceis enabled.- Parameters:
slotModel- theContentSlotModelcontaining componentstargetData- the targetPageContentSlotDataobject
-
populateCustomProperties
Populates custom properties forContentSlotModel.- Parameters:
slotModel- theContentSlotModelto retrieve custom propertiestargetData- the targetPageContentSlotDataobject.
-
convertComponentModelToData
Converts given component model to component data- Parameters:
component- theAbstractCMSComponentModelto convert intoAbstractCMSComponentData- Returns:
- converted
AbstractCMSComponentDatarepresenting input model
-
getCmsComponentModelToDataRenderingConverter
protected Converter<AbstractCMSComponentModel,AbstractCMSComponentData> getCmsComponentModelToDataRenderingConverter() -
setCmsComponentModelToDataRenderingConverter
public void setCmsComponentModelToDataRenderingConverter(Converter<AbstractCMSComponentModel, AbstractCMSComponentData> cmsComponentModelToDataRenderingConverter) -
getUniqueIdentifierAttributeToDataContentConverter
protected UniqueIdentifierAttributeToDataContentConverter<ItemModel> getUniqueIdentifierAttributeToDataContentConverter() -
setUniqueIdentifierAttributeToDataContentConverter
public void setUniqueIdentifierAttributeToDataContentConverter(UniqueIdentifierAttributeToDataContentConverter<ItemModel> uniqueIdentifierAttributeToDataContentConverter) -
getRenderingVisibilityService
-
setRenderingVisibilityService
-
getCustomPropertiesPopulator
-
setCustomPropertiesPopulator
-
getRenderingCacheService
-
setRenderingCacheService
public void setRenderingCacheService(RenderingCacheService<AbstractCMSComponentData> renderingCacheService)
-