Class DefaultPageRenderingService

    • Constructor Detail

      • DefaultPageRenderingService

        public DefaultPageRenderingService()
    • Method Detail

      • getPageRenderingData

        public AbstractPageData getPageRenderingData​(java.lang.String pageTypeCode,
                                                     java.lang.String pageLabelOrId,
                                                     java.lang.String code)
                                              throws CMSItemNotFoundException
        Description copied from interface: PageRenderingService
        Returns AbstractPageData object based on pageLabelOrId or code.
        Specified by:
        getPageRenderingData in interface PageRenderingService
        Parameters:
        pageTypeCode - the page type
        pageLabelOrId - the page label or id. This field is used only when the page type is ContentPage.
        code - the code depends on the page type. If the page type is ProductPage then the code should be a product code. If the page type is CategoryPage then the code should be a category code. If the page type is CatalogPage then the code should be a catalog page.
        Returns:
        the AbstractPageData object.
        Throws:
        CMSItemNotFoundException - if the page does not exists.
      • getRestrictionData

        protected RestrictionData getRestrictionData​(java.lang.String pageType,
                                                     java.lang.String code)
        Returns RestrictionData based on pageTypeCode and code. Never null.
        Parameters:
        pageType - the page type.
        code - the code. If the page type is ProductPage then the code should be a product code. If the page type is CategoryPage then the code should be a category code. If the page type is CatalogPage then the code should be a catalog page.
        Returns:
        the RestrictionData.
      • validateParameters

        protected void validateParameters​(java.lang.String pageTypeCode,
                                          java.lang.String pageLabelOrId,
                                          java.lang.String code)
                                   throws CMSItemNotFoundException
        Validates input parameters.
        Parameters:
        pageTypeCode - the page type code.
        pageLabelOrId - the page label or id.
        code - the code (product code, catalog code or category code)
        Throws:
        CMSItemNotFoundException - when the page label or id is not valid
      • getPageQualifier

        protected java.lang.String getPageQualifier​(java.lang.String pageLabelOrId,
                                                    java.lang.String code)
        Returns the qualifier that is used to extract the page.
        Parameters:
        pageLabelOrId - the page label or id
        code - the code.
        Returns:
        the qualifier.
      • setRenderingPageModelSuppliers

        public void setRenderingPageModelSuppliers​(java.util.List<RenderingPageModelSupplier> renderingPageModelSuppliers)
      • setFacadeValidationService

        public void setFacadeValidationService​(FacadeValidationService facadeValidationService)
      • getRenderingPageValidator

        protected org.springframework.validation.Validator getRenderingPageValidator()
      • setRenderingPageValidator

        public void setRenderingPageValidator​(org.springframework.validation.Validator renderingPageValidator)
      • setRestrictionAwareService

        public void setRestrictionAwareService​(RestrictionAwareService restrictionAwareService)
      • setCmsDataFactory

        public void setCmsDataFactory​(CMSDataFactory cmsDataFactory)
      • setCmsPageService

        public void setCmsPageService​(CMSPageService cmsPageService)