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 java.lang.Object implements Populator<ContentSlotData,PageContentSlotData>
Populator used to add all the information required to render a content slot.
-
-
Constructor Summary
Constructors Constructor Description ContentSlotModelToDataRenderingPopulator()
-
Method Summary
-
-
-
Method Detail
-
populate
public void populate(ContentSlotData contentSlotData, PageContentSlotData targetData)
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
protected void populateComponents(ContentSlotModel slotModel, PageContentSlotData targetData)
Populates components forContentSlotModel. The list of components is retrieved from the cache if theRenderingCacheServiceis enabled.- Parameters:
slotModel- theContentSlotModelcontaining componentstargetData- the targetPageContentSlotDataobject
-
populateCustomProperties
protected void populateCustomProperties(ContentSlotModel slotModel, PageContentSlotData targetData)
Populates custom properties forContentSlotModel.- Parameters:
slotModel- theContentSlotModelto retrieve custom propertiestargetData- the targetPageContentSlotDataobject.
-
convertComponentModelToData
protected AbstractCMSComponentData convertComponentModelToData(AbstractCMSComponentModel component)
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
protected RenderingVisibilityService getRenderingVisibilityService()
-
setRenderingVisibilityService
public void setRenderingVisibilityService(RenderingVisibilityService renderingVisibilityService)
-
getCustomPropertiesPopulator
protected Populator<ItemModel,java.util.Map<java.lang.String,java.lang.Object>> getCustomPropertiesPopulator()
-
setCustomPropertiesPopulator
public void setCustomPropertiesPopulator(Populator<ItemModel,java.util.Map<java.lang.String,java.lang.Object>> customPropertiesPopulator)
-
getRenderingCacheService
public RenderingCacheService<AbstractCMSComponentData> getRenderingCacheService()
-
setRenderingCacheService
public void setRenderingCacheService(RenderingCacheService<AbstractCMSComponentData> renderingCacheService)
-
-