Class PageController
java.lang.Object
de.hybris.platform.cmswebservices.pages.controller.PageController
@Controller
@RequestMapping("/v1/sites/{siteId}/catalogs/{catalogId}/versions/{versionId}/pages")
public class PageController
extends Object
Controller to deal with AbstractPageModel objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected UidListDataconvertToUidListData(List<String> pageIds) findFallbackPages(String pageId) findPagesByIds(List<String> uids) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6findPagesByType(String typeCode, Boolean isDefaultPage) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6findVariationPages(String pageId) protected PageFacadeprotected DataMapperprotected LocationHeaderResourcegetPageByUid(String pageId) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6protected WebPaginationUtilsvoidsetCmsPageFacade(PageFacade pageFacade) voidsetDataMapper(DataMapper dataMapper) voidsetLocationHeaderResource(LocationHeaderResource locationHeaderResource) voidsetWebPaginationUtils(WebPaginationUtils webPaginationUtils)
-
Constructor Details
-
PageController
public PageController()
-
-
Method Details
-
findPagesByIds
@Deprecated(since="6.6", forRemoval=true) @RequestMapping(method=GET, params="uids") @ResponseBody public PageListData findPagesByIds(@RequestParam("uids") List<String> uids) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6 -
getPageByUid
@Deprecated(since="6.6", forRemoval=true) @RequestMapping(value="/{pageId}", method=GET) @ResponseBody public AbstractPageData getPageByUid(@PathVariable String pageId) throws CMSItemNotFoundException Deprecated, for removal: This API element is subject to removal in a future version.since 6.6- Throws:
CMSItemNotFoundException
-
findPagesByType
@Deprecated(since="6.6", forRemoval=true) @RequestMapping(method=GET, params={"typeCode","defaultPage"}) @ResponseBody public PageListData findPagesByType(@RequestParam("typeCode") String typeCode, @RequestParam("defaultPage") Boolean isDefaultPage) Deprecated, for removal: This API element is subject to removal in a future version.since 6.6 -
findVariationPages
@RequestMapping(value="/{pageId}/variations", method=GET) @ResponseBody public UidListData findVariationPages(@PathVariable String pageId) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
findFallbackPages
@RequestMapping(value="/{pageId}/fallbacks", method=GET) @ResponseBody public UidListData findFallbackPages(@PathVariable String pageId) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
convertToUidListData
-
getLocationHeaderResource
-
setLocationHeaderResource
-
getCmsPageFacade
-
setCmsPageFacade
-
getDataMapper
-
setDataMapper
-
getWebPaginationUtils
-
setWebPaginationUtils
-