Class PageComponentTypesController
java.lang.Object
de.hybris.platform.cmssmarteditwebservices.pages.controller.PageComponentTypesController
@RestController
@RequestMapping("/v1/catalogs/{catalogId}/versions/{versionId}/pages/{pageId}/types")
public class PageComponentTypesController
extends Object
Controller that provides an API to retrieve information about component types applicable to the current page.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CMSComponentTypeListWsDTObuildReply(SearchResult<ComponentTypeData> searchResult, String fields) getComponentTypesAvailableToPage(CMSComponentTypesForPageSearchWsDTO componentTypesForPageSearchWsDTO, PageableWsDTO pageableInfo, String fields) getRequiredFields(String fields) Gets the list of fields which should be returned in the response.
-
Constructor Details
-
PageComponentTypesController
public PageComponentTypesController()
-
-
Method Details
-
getComponentTypesAvailableToPage
@GetMapping(params={"pageSize","currentPage"}) @ResponseStatus(OK) @ResponseBody public CMSComponentTypeListWsDTO getComponentTypesAvailableToPage(@ModelAttribute CMSComponentTypesForPageSearchWsDTO componentTypesForPageSearchWsDTO, @ModelAttribute PageableWsDTO pageableInfo, @RequestParam(defaultValue="DEFAULT") String fields) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
getRequiredFields
Gets the list of fields which should be returned in the response.- Parameters:
fields- - A string whose value can be BASIC, DEFAULT, or FULL. The value of this string is mapped to the list of fields which must be returned in the response.- Returns:
- the list of fields which must be returned in the response.
-
buildReply
protected CMSComponentTypeListWsDTO buildReply(SearchResult<ComponentTypeData> searchResult, String fields) -
getDataMapper
-
getComponentTypeFacade
-
getWebPaginationUtils
-