Class PageRenderingPopulator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.rendering.populators.PageRenderingPopulator
-
- All Implemented Interfaces:
Populator<AbstractPageModel,AbstractPageData>
public class PageRenderingPopulator extends java.lang.Object implements Populator<AbstractPageModel,AbstractPageData>
Populator used to add all the information required to render a CMS Page.
-
-
Constructor Summary
Constructors Constructor Description PageRenderingPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CMSPageServicegetCmsPageService()protected Converter<ContentSlotData,PageContentSlotData>getContentSlotRenderingConverter()protected booleanisSlotActive(ContentSlotData contentSlot)This method is used to determine whether a content slot is active or not.voidpopulate(AbstractPageModel sourceModel, AbstractPageData targetData)Populate the target instance with values from the source instance.voidsetCmsPageService(CMSPageService cmsPageService)voidsetContentSlotRenderingConverter(Converter<ContentSlotData,PageContentSlotData> contentSlotRenderingConverter)
-
-
-
Method Detail
-
populate
public void populate(AbstractPageModel sourceModel, AbstractPageData targetData)
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AbstractPageModel,AbstractPageData>- Parameters:
sourceModel- the source objecttargetData- the target to fill
-
isSlotActive
protected boolean isSlotActive(ContentSlotData contentSlot)
This method is used to determine whether a content slot is active or not.- Parameters:
contentSlot- the content slot whose status to check- Returns:
- true if the slot is active, false otherwise.
-
getCmsPageService
protected CMSPageService getCmsPageService()
-
setCmsPageService
public void setCmsPageService(CMSPageService cmsPageService)
-
getContentSlotRenderingConverter
protected Converter<ContentSlotData,PageContentSlotData> getContentSlotRenderingConverter()
-
setContentSlotRenderingConverter
public void setContentSlotRenderingConverter(Converter<ContentSlotData,PageContentSlotData> contentSlotRenderingConverter)
-
-