Class DefaultPageFacade
java.lang.Object
de.hybris.platform.cmsfacades.pages.impl.DefaultPageFacade
- All Implemented Interfaces:
PageFacade
Default implementation of
PageFacade.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAllPageDataForType(String pageType, SearchPageData searchPageData) Find all pages.Deprecated, for removal: This API element is subject to removal in a future version.since 6.6Find all page types.findFallbackPages(String pageId) Find all default pages for a given page.findPagesByType(String typeCode, Boolean isDefaultPage) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6findVariationPages(String pageId) Find all variant pages for a given page.protected CatalogVersionServiceprotected org.springframework.validation.Validatorprotected Comparator<AbstractPageData>protected FacadeValidationServicegetPageByUid(String uid) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6getPageData(String pageId) ReturnsAbstractPageDataobject based on the pageId.getPageData(String pageType, String pageLabelOrId, String code) ReturnsAbstractPageDataobject based on pageLabelOrId or code.getPageDataConverter(Class<?> pageClass) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6protected Map<Class<?>,AbstractPopulatingConverter<AbstractPageData, AbstractPageModel>> protected AbstractPageModelgetPageModelById(String pageId) getPageModelConverter(Class<?> pageClass) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6protected Map<Class<?>,AbstractPopulatingConverter<AbstractPageModel, AbstractPageData>> protected PageRenderingServiceprotected Converter<CMSPageTypeModel,PageTypeData> protected PageVariationResolver<AbstractPageModel>getPageVariationResolver(String typeCode) protected PageVariationResolverTypeRegistryprotected UniqueItemIdentifierServiceperformOperation(String pageId, CMSPageOperationsData cmsPageOperationData) Performs different operations defined byCMSPageOperationon the page such as trash page.voidsetAdminPageService(CMSAdminPageService adminPageService) voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetCmsFindVariationPageValidator(org.springframework.validation.Validator cmsFindVariationPageValidator) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6voidsetCmsItemSearchTypeBlacklistMap(Map<String, List<String>> cmsItemSearchTypeBlacklistMap) voidsetCmsPageComparator(Comparator<AbstractPageData> cmsPageComparator) voidsetCmsVersionSessionContextProvider(CMSVersionSessionContextProvider cmsVersionSessionContextProvider) voidsetFacadeValidationService(FacadeValidationService facadeValidationService) voidsetPageDataPopulatorFactory(Map<Class<?>, AbstractPopulatingConverter<AbstractPageData, AbstractPageModel>> pageDataPopulatorFactory) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6voidsetPageModelConverterFactory(Map<Class<?>, AbstractPopulatingConverter<AbstractPageModel, AbstractPageData>> pageModelConverterFactory) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6voidsetPageRenderingService(PageRenderingService pageRenderingService) voidsetPageTypeModelConverter(Converter<CMSPageTypeModel, PageTypeData> pageTypeModelConverter) Deprecated.since 6.6voidsetPageVariationResolverTypeRegistry(PageVariationResolverTypeRegistry pageVariationResolverTypeRegistry) voidsetPermissionCachedCRUDService(PermissionCachedCRUDService permissionCachedCRUDService) voidsetUniqueItemIdentifierService(UniqueItemIdentifierService uniqueItemIdentifierService)
-
Constructor Details
-
DefaultPageFacade
public DefaultPageFacade()
-
-
Method Details
-
getPageData
public AbstractPageData getPageData(String pageType, String pageLabelOrId, String code) throws CMSItemNotFoundException Description copied from interface:PageFacadeReturnsAbstractPageDataobject based on pageLabelOrId or code. This should be used for rendering purposes.- Specified by:
getPageDatain interfacePageFacade- Parameters:
pageType- the page typepageLabelOrId- 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
AbstractPageDataobject - Throws:
CMSItemNotFoundException- when the page does not exists
-
getPageData
Description copied from interface:PageFacadeReturnsAbstractPageDataobject based on the pageId. This should be used for rendering purposes.- Specified by:
getPageDatain interfacePageFacade- Parameters:
pageId- the page id- Returns:
- the
AbstractPageDataobject - Throws:
CMSItemNotFoundException- when the page does not exists
-
findAllPageDataForType
public SearchPageData<AbstractPageData> findAllPageDataForType(String pageType, SearchPageData searchPageData) Description copied from interface:PageFacadeFind all pages. The result is paginated. This should be used for rendering purposes.- Specified by:
findAllPageDataForTypein interfacePageFacade- Parameters:
pageType- the page type codesearchPageData- the pagination and sorting information- Returns:
- a search result containing a list of
AbstractPageData; can be empty, neverNULL
-
findAllPages
Deprecated, for removal: This API element is subject to removal in a future version.since 6.6Find all pages.- Specified by:
findAllPagesin interfacePageFacade- Returns:
- list of
AbstractPageDataordered by title ascending; never null
-
findAllPageTypes
Find all page types.- Specified by:
findAllPageTypesin interfacePageFacade- Returns:
- list of all
PageTypeData; nevernull
-
findPagesByType
@Deprecated(since="6.6", forRemoval=true) public List<AbstractPageData> findPagesByType(String typeCode, Boolean isDefaultPage) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6Find all default or variant pages for a given page type.- Specified by:
findPagesByTypein interfacePageFacade- Parameters:
typeCode- - the page typecodeisDefaultPage- - set to true to find all default pages; set to false to find all variant pages- Returns:
- list of default or variant
AbstractPageDataordered by name ascending; never null
-
findVariationPages
Find all variant pages for a given page.- Specified by:
findVariationPagesin interfacePageFacade- Parameters:
pageId- - the page identifier- Returns:
- list of variation page uids; empty if the given page is already a variation page; never null
- Throws:
CMSItemNotFoundException- when the page could not be found
-
findFallbackPages
Find all default pages for a given page.- Specified by:
findFallbackPagesin interfacePageFacade- Parameters:
pageId- - the page identifier- Returns:
- list of default page uids; empty if the given page is already a default page; never null
- Throws:
CMSItemNotFoundException- when the page could not be found
-
getPageByUid
@Deprecated(since="6.6", forRemoval=true) public AbstractPageData getPageByUid(String uid) throws CMSItemNotFoundException Deprecated, for removal: This API element is subject to removal in a future version.since 6.6Find a single page by its uid. This should be used for management purposes.- Specified by:
getPageByUidin interfacePageFacade- Parameters:
uid- - the uid of the page to retrieve.- Returns:
- the page matching the given uid
- Throws:
CMSItemNotFoundException- when the page could not be found
-
getPageModelById
- Throws:
CMSItemNotFoundException
-
getPageVariationResolver
-
getPageDataConverter
@Deprecated(since="6.6", forRemoval=true) protected AbstractPopulatingConverter<AbstractPageData,AbstractPageModel> getPageDataConverter(Class<?> pageClass) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6 -
getPageModelConverter
@Deprecated(since="6.6", forRemoval=true) protected AbstractPopulatingConverter<AbstractPageModel,AbstractPageData> getPageModelConverter(Class<?> pageClass) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6 -
getAdminPageService
-
setAdminPageService
-
getFacadeValidationService
-
setFacadeValidationService
-
getPageDataPopulatorFactory
protected Map<Class<?>,AbstractPopulatingConverter<AbstractPageData, getPageDataPopulatorFactory()AbstractPageModel>> -
setPageDataPopulatorFactory
@Deprecated(since="6.6", forRemoval=true) public void setPageDataPopulatorFactory(Map<Class<?>, AbstractPopulatingConverter<AbstractPageData, AbstractPageModel>> pageDataPopulatorFactory) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6 -
getPageModelConverterFactory
protected Map<Class<?>,AbstractPopulatingConverter<AbstractPageModel, getPageModelConverterFactory()AbstractPageData>> -
setPageModelConverterFactory
@Deprecated(since="6.6", forRemoval=true) public void setPageModelConverterFactory(Map<Class<?>, AbstractPopulatingConverter<AbstractPageModel, AbstractPageData>> pageModelConverterFactory) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6 -
getPageTypeModelConverter
-
setPageTypeModelConverter
@Deprecated(since="6.6") public void setPageTypeModelConverter(Converter<CMSPageTypeModel, PageTypeData> pageTypeModelConverter) Deprecated.since 6.6 -
getCmsFindVariationPageValidator
protected org.springframework.validation.Validator getCmsFindVariationPageValidator() -
setCmsFindVariationPageValidator
@Deprecated(since="6.6", forRemoval=true) public void setCmsFindVariationPageValidator(org.springframework.validation.Validator cmsFindVariationPageValidator) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6 -
performOperation
public CMSPageOperationsData performOperation(String pageId, CMSPageOperationsData cmsPageOperationData) throws CMSItemNotFoundException Description copied from interface:PageFacadePerforms different operations defined byCMSPageOperationon the page such as trash page.- Specified by:
performOperationin interfacePageFacade- Parameters:
pageId- The uid of the page.- Returns:
- The
CMSPageOperationsDataif the operation is successful. - Throws:
CMSItemNotFoundException- when the page does not exists
-
getPageVariationResolverTypeRegistry
-
setPageVariationResolverTypeRegistry
public void setPageVariationResolverTypeRegistry(PageVariationResolverTypeRegistry pageVariationResolverTypeRegistry) -
getCmsPageComparator
-
setCmsPageComparator
-
getCmsItemSearchTypeBlacklistMap
-
getUniqueItemIdentifierService
-
setUniqueItemIdentifierService
-
setCmsItemSearchTypeBlacklistMap
-
getPageRenderingService
-
setPageRenderingService
-
getCatalogVersionService
-
setCatalogVersionService
-
getPermissionCachedCRUDService
-
setPermissionCachedCRUDService
-
getCmsVersionSessionContextProvider
-
setCmsVersionSessionContextProvider
public void setCmsVersionSessionContextProvider(CMSVersionSessionContextProvider cmsVersionSessionContextProvider)
-