Class PageModelToDataRenderingPopulator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.rendering.populators.PageModelToDataRenderingPopulator
-
- All Implemented Interfaces:
Populator<AbstractPageModel,AbstractPageData>
public class PageModelToDataRenderingPopulator 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 PageModelToDataRenderingPopulator()
-
Method Summary
-
-
-
Method Detail
-
populate
public void populate(AbstractPageModel pageModel, AbstractPageData targetData)
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<AbstractPageModel,AbstractPageData>- Parameters:
pageModel- the source objecttargetData- the target to fill
-
populateOtherProperties
protected void populateOtherProperties(AbstractPageModel pageModel, AbstractPageData targetData)
Populates other properties forAbstractPageModel.- Parameters:
pageModel- theAbstractPageModelto retrieve other propertiestargetData- the targetAbstractPageDataobject.
-
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)
-
getContentSlotModelToDataRenderingConverter
protected Converter<ContentSlotData,PageContentSlotData> getContentSlotModelToDataRenderingConverter()
-
setContentSlotModelToDataRenderingConverter
public void setContentSlotModelToDataRenderingConverter(Converter<ContentSlotData,PageContentSlotData> contentSlotModelToDataRenderingConverter)
-
getUniqueIdentifierAttributeToDataContentConverter
protected UniqueIdentifierAttributeToDataContentConverter<ItemModel> getUniqueIdentifierAttributeToDataContentConverter()
-
setUniqueIdentifierAttributeToDataContentConverter
public void setUniqueIdentifierAttributeToDataContentConverter(UniqueIdentifierAttributeToDataContentConverter<ItemModel> uniqueIdentifierAttributeToDataContentConverter)
-
getCmsPreviewService
protected CMSPreviewService getCmsPreviewService()
-
setCmsPreviewService
public void setCmsPreviewService(CMSPreviewService cmsPreviewService)
-
getOtherPropertiesPopulators
protected java.util.List<Populator> getOtherPropertiesPopulators()
-
setOtherPropertiesPopulators
public void setOtherPropertiesPopulators(java.util.List<Populator> otherPropertiesPopulators)
-
-