Class PageController

java.lang.Object
de.hybris.platform.cmsoccaddon.controllers.PageController

@Controller @RequestMapping("/{baseSiteId}/cms") @Deprecated(since="2211", forRemoval=true) public class PageController extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
(since = "2211", forRemoval = true)
Controller to get cms page data with a list of content slots, each of which contains a list of cms component data
  • Field Details

    • DEFAULT_CURRENT_PAGE

      public static final String DEFAULT_CURRENT_PAGE
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • DEFAULT_PAGE_SIZE

      public static final String DEFAULT_PAGE_SIZE
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • dataMapper

      protected CMSDataMapper dataMapper
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • PageController

      public PageController()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getPage

      @SecurePortalUnauthenticatedAccess @GetMapping("/pages") @ResponseStatus(OK) @ResponseBody public PageAdapterUtil.PageAdaptedData getPage(@RequestParam(required=true,defaultValue="ContentPage") String pageType, @RequestParam(required=false) String pageLabelOrId, @RequestParam(required=false) String code, @RequestParam(defaultValue="DEFAULT") String fields) throws CMSItemNotFoundException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      CMSItemNotFoundException
    • getPage

      @SecurePortalUnauthenticatedAccess @GetMapping("/pages/{pageId}") @ResponseStatus(OK) @ResponseBody public PageAdapterUtil.PageAdaptedData getPage(@PathVariable String pageId, @RequestParam(defaultValue="DEFAULT") String fields) throws CMSItemNotFoundException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Throws:
      CMSItemNotFoundException
    • getAllPages

      @SecurePortalUnauthenticatedAccess @GetMapping(value="/sitepages", params="currentPage") @ResponseStatus(OK) @ResponseBody public PageListWsDTOAdapter.ListAdaptedPages getAllPages(@RequestParam(required=false) String pageType, @RequestParam(required=true,defaultValue="0") int currentPage, @RequestParam(required=false,defaultValue="10") int pageSize, @RequestParam(required=false) String sort, @RequestParam(defaultValue="DEFAULT") String fields)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • formatSearchPageDataResult

      protected PageListWsDTOAdapter.ListAdaptedPages formatSearchPageDataResult(String fields, SearchPageData<AbstractPageData> searchResult)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Transforms the SearchPageData containing the list of page data into a ListAdaptedPages object.
      Parameters:
      fields - - the response configuration determining which fields to include in the response
      searchResult - - the configuration containing the search results, pagination and sorting information
      Returns:
      a list of page of type PageListWsDTOAdapter.ListAdaptedPages
    • getPageFacade

      protected PageFacade getPageFacade()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setPageFacade

      public void setPageFacade(PageFacade pageFacade)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getDataMapper

      protected CMSDataMapper getDataMapper()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setDataMapper

      public void setDataMapper(CMSDataMapper dataMapper)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getWebPaginationUtils

      public WebPaginationUtils getWebPaginationUtils()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setWebPaginationUtils

      public void setWebPaginationUtils(WebPaginationUtils webPaginationUtils)
      Deprecated, for removal: This API element is subject to removal in a future version.