Class PageModelToDataRenderingPopulator
java.lang.Object
de.hybris.platform.cmsfacades.rendering.populators.PageModelToDataRenderingPopulator
- All Implemented Interfaces:
Populator<AbstractPageModel,AbstractPageData>
public class PageModelToDataRenderingPopulator
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 CMSPreviewServiceprotected Converter<ContentSlotData,PageContentSlotData> protected booleanisSlotActive(ContentSlotData contentSlot) This method is used to determine whether a content slot is active or not.voidpopulate(AbstractPageModel pageModel, AbstractPageData targetData) Populate the target instance with values from the source instance.protected voidpopulateOtherProperties(AbstractPageModel pageModel, AbstractPageData targetData) Populates other properties forAbstractPageModel.voidsetCmsPageService(CMSPageService cmsPageService) voidsetCmsPreviewService(CMSPreviewService cmsPreviewService) voidsetContentSlotModelToDataRenderingConverter(Converter<ContentSlotData, PageContentSlotData> contentSlotModelToDataRenderingConverter) voidsetOtherPropertiesPopulators(List<Populator> otherPropertiesPopulators) voidsetRenderingCacheService(RenderingCacheService<PageContentSlotData> renderingCacheService) voidsetUniqueIdentifierAttributeToDataContentConverter(UniqueIdentifierAttributeToDataContentConverter<ItemModel> uniqueIdentifierAttributeToDataContentConverter)
-
Constructor Details
-
PageModelToDataRenderingPopulator
public PageModelToDataRenderingPopulator()
-
-
Method Details
-
populate
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
Populates other properties forAbstractPageModel.- Parameters:
pageModel- theAbstractPageModelto retrieve other propertiestargetData- the targetAbstractPageDataobject.
-
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
-
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
-
setCmsPreviewService
-
getOtherPropertiesPopulators
-
setOtherPropertiesPopulators
-
getRenderingCacheService
-
setRenderingCacheService
public void setRenderingCacheService(RenderingCacheService<PageContentSlotData> renderingCacheService)
-