Class PageRenderingPopulator
java.lang.Object
de.hybris.platform.cmsfacades.rendering.populators.PageRenderingPopulator
- All Implemented Interfaces:
Populator<AbstractPageModel,AbstractPageData>
public class PageRenderingPopulator
extends Object
implements Populator<AbstractPageModel,AbstractPageData>
Populator used to add all the information required to render a CMS Page.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CMSPageServiceprotected Converter<ContentSlotData,PageContentSlotData> 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)
-
Constructor Details
-
PageRenderingPopulator
public PageRenderingPopulator()
-
-
Method Details
-
populate
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
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
-
setCmsPageService
-
getContentSlotRenderingConverter
-
setContentSlotRenderingConverter
public void setContentSlotRenderingConverter(Converter<ContentSlotData, PageContentSlotData> contentSlotRenderingConverter)
-