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 java.lang.ObjectController to deal with AbstractPageModel objects
-
-
Constructor Summary
Constructors Constructor Description PageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected UidListDataconvertToUidListData(java.util.List<java.lang.String> pageIds)UidListDatafindFallbackPages(java.lang.String pageId)PageListDatafindPagesByIds(java.util.List<java.lang.String> uids)Deprecated, for removal: This API element is subject to removal in a future version.since 6.6PageListDatafindPagesByType(java.lang.String typeCode, java.lang.Boolean isDefaultPage)Deprecated, for removal: This API element is subject to removal in a future version.since 6.6UidListDatafindVariationPages(java.lang.String pageId)protected PageFacadegetCmsPageFacade()protected DataMappergetDataMapper()protected LocationHeaderResourcegetLocationHeaderResource()AbstractPageDatagetPageByUid(java.lang.String pageId)Deprecated, for removal: This API element is subject to removal in a future version.since 6.6protected WebPaginationUtilsgetWebPaginationUtils()voidsetCmsPageFacade(PageFacade pageFacade)voidsetDataMapper(DataMapper dataMapper)voidsetLocationHeaderResource(LocationHeaderResource locationHeaderResource)voidsetWebPaginationUtils(WebPaginationUtils webPaginationUtils)
-
-
-
Method Detail
-
findPagesByIds
@Deprecated(since="6.6", forRemoval=true) @RequestMapping(method=GET, params="uids") @ResponseBody public PageListData findPagesByIds(@RequestParam("uids") java.util.List<java.lang.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 java.lang.String pageId) throws CMSItemNotFoundExceptionDeprecated, 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") java.lang.String typeCode, @RequestParam("defaultPage") java.lang.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 java.lang.String pageId) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
findFallbackPages
@RequestMapping(value="/{pageId}/fallbacks", method=GET) @ResponseBody public UidListData findFallbackPages(@PathVariable java.lang.String pageId) throws CMSItemNotFoundException- Throws:
CMSItemNotFoundException
-
convertToUidListData
protected UidListData convertToUidListData(java.util.List<java.lang.String> pageIds)
-
getLocationHeaderResource
protected LocationHeaderResource getLocationHeaderResource()
-
setLocationHeaderResource
public void setLocationHeaderResource(LocationHeaderResource locationHeaderResource)
-
getCmsPageFacade
protected PageFacade getCmsPageFacade()
-
setCmsPageFacade
public void setCmsPageFacade(PageFacade pageFacade)
-
getDataMapper
protected DataMapper getDataMapper()
-
setDataMapper
public void setDataMapper(DataMapper dataMapper)
-
getWebPaginationUtils
protected WebPaginationUtils getWebPaginationUtils()
-
setWebPaginationUtils
public void setWebPaginationUtils(WebPaginationUtils webPaginationUtils)
-
-