public class PageModelToDataRenderingPopulator extends java.lang.Object implements Populator<AbstractPageModel,AbstractPageData>
| Constructor and Description |
|---|
PageModelToDataRenderingPopulator() |
| Modifier and Type | Method and Description |
|---|---|
protected CMSPageService |
getCmsPageService() |
protected Converter<ContentSlotData,PageContentSlotData> |
getContentSlotModelToDataRenderingConverter() |
protected boolean |
isSlotActive(ContentSlotData contentSlot)
This method is used to determine whether a content slot is active or not.
|
void |
populate(AbstractPageModel sourceModel,
AbstractPageData targetData)
Populate the target instance with values from the source instance.
|
void |
setCmsPageService(CMSPageService cmsPageService) |
void |
setContentSlotModelToDataRenderingConverter(Converter<ContentSlotData,PageContentSlotData> contentSlotModelToDataRenderingConverter) |
public void populate(AbstractPageModel sourceModel, AbstractPageData targetData)
Populatorpopulate in interface Populator<AbstractPageModel,AbstractPageData>sourceModel - the source objecttargetData - the target to fillprotected boolean isSlotActive(ContentSlotData contentSlot)
contentSlot - the content slot whose status to checkprotected CMSPageService getCmsPageService()
public void setCmsPageService(CMSPageService cmsPageService)
protected Converter<ContentSlotData,PageContentSlotData> getContentSlotModelToDataRenderingConverter()
public void setContentSlotModelToDataRenderingConverter(Converter<ContentSlotData,PageContentSlotData> contentSlotModelToDataRenderingConverter)
Copyright © 2018 SAP SE. All Rights Reserved.