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 Summary
FieldsModifier and TypeFieldDescriptionprotected CMSDataMapperDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected PageListWsDTOAdapter.ListAdaptedPagesformatSearchPageDataResult(String fields, SearchPageData<AbstractPageData> searchResult) Deprecated, for removal: This API element is subject to removal in a future version.Transforms theSearchPageDatacontaining the list of page data into aListAdaptedPagesobject.getAllPages(String pageType, int currentPage, int pageSize, String sort, String fields) Deprecated, for removal: This API element is subject to removal in a future version.protected CMSDataMapperDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.protected PageFacadeDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.voidsetDataMapper(CMSDataMapper dataMapper) Deprecated, for removal: This API element is subject to removal in a future version.voidsetPageFacade(PageFacade pageFacade) Deprecated, for removal: This API element is subject to removal in a future version.voidsetWebPaginationUtils(WebPaginationUtils webPaginationUtils) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
DEFAULT_CURRENT_PAGE
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
DEFAULT_PAGE_SIZE
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
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 theSearchPageDatacontaining the list of page data into aListAdaptedPagesobject.- Parameters:
fields- - the response configuration determining which fields to include in the responsesearchResult- - the configuration containing the search results, pagination and sorting information- Returns:
- a list of page of type
PageListWsDTOAdapter.ListAdaptedPages
-
getPageFacade
Deprecated, for removal: This API element is subject to removal in a future version. -
setPageFacade
Deprecated, for removal: This API element is subject to removal in a future version. -
getDataMapper
Deprecated, for removal: This API element is subject to removal in a future version. -
setDataMapper
Deprecated, for removal: This API element is subject to removal in a future version. -
getWebPaginationUtils
Deprecated, for removal: This API element is subject to removal in a future version. -
setWebPaginationUtils
Deprecated, for removal: This API element is subject to removal in a future version.
-