Class RenderingContentPageModelSupplier
java.lang.Object
de.hybris.platform.cmsfacades.rendering.suppliers.page.impl.RenderingContentPageModelSupplier
- All Implemented Interfaces:
RenderingPageModelSupplier
Implementation of
RenderingPageModelSupplier for Content page.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CMSContentPageServiceprotected CMSPreviewServiceprotected CMSSiteServicePredicate to test if a given page type code matches the page supplier.protected Optional<AbstractPageModel>getContentPageModel(String pageLabelOrId) ReturnsOptionalAbstractPageModelbased on pageLabelOrId.protected Supplier<Optional<ContentPageModel>>Returns a home page for the current catalog.protected Optional<CMSSiteModel>Returns current siteprotected Supplier<Optional<ContentPageModel>>getPageForLabelOrId(String pageLabelOrId) Returns theOptionalpage by label or idgetPageModel(String pageLabelOrId) Returns the page by qualifier.getRestrictionData(String qualifier) Returns restriction data related to current page.protected StringReturns default page label or idvoidsetCmsContentPageService(CMSContentPageService cmsContentPageService) voidsetCmsPreviewService(CMSPreviewService cmsPreviewService) voidsetCmsSiteService(CMSSiteService cmsSiteService) voidsetConstrainedBy(Predicate<String> constrainedBy)
-
Constructor Details
-
RenderingContentPageModelSupplier
public RenderingContentPageModelSupplier()
-
-
Method Details
-
getConstrainedBy
Description copied from interface:RenderingPageModelSupplierPredicate to test if a given page type code matches the page supplier.Returns TRUE if the supplier exists; FALSE otherwise.
- Specified by:
getConstrainedByin interfaceRenderingPageModelSupplier
-
getPageModel
Description copied from interface:RenderingPageModelSupplierReturns the page by qualifier.- Specified by:
getPageModelin interfaceRenderingPageModelSupplier- Parameters:
pageLabelOrId- the qualifier of the page.- Returns:
OptionalAbstractPageModel
-
getRestrictionData
Description copied from interface:RenderingPageModelSupplierReturns restriction data related to current page.- Specified by:
getRestrictionDatain interfaceRenderingPageModelSupplier- Parameters:
qualifier- the qualifier of the page- Returns:
- the
OptionalRestrictionData
-
getContentPageModel
ReturnsOptionalAbstractPageModelbased on pageLabelOrId. Extracts the page in the following order: - by label or id. - current catalog home page. - by default label or id- Parameters:
pageLabelOrId- the page label or id- Returns:
OptionalAbstractPageModelpage model
-
getPageForLabelOrId
Returns theOptionalpage by label or id- Parameters:
pageLabelOrId-- Returns:
- the
OptionalAbstractPageModel
-
getStartPageLabelOrId
Returns default page label or id- Returns:
- the page label or id
-
getCurrentCatalogHomePage
Returns a home page for the current catalog.- Returns:
OptionalAbstractPageModel
-
getCurrentSite
Returns current site- Returns:
OptionalCMSSiteModel
-
setConstrainedBy
-
getCmsContentPageService
-
setCmsContentPageService
-
getCmsSiteService
-
setCmsSiteService
-
getCmsPreviewService
-
setCmsPreviewService
-