Class ProductController
java.lang.Object
de.hybris.platform.cmswebservices.products.controller.ProductController
@Controller
@RequestMapping("/v1/productcatalogs/{catalogId}/versions/{versionId}/products")
public class ProductController
extends Object
Controller to retrieve and search Products within a Product Catalog Version.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindProductsByText(String text, String mask, PageableWsDTO pageableInfo) protected ProductSearchFacadeprotected DataMappergetProductByCode(String code) protected WebPaginationUtilsvoidsetCmsProductSearchFacade(ProductSearchFacade productSearchFacade) voidsetDataMapper(DataMapper dataMapper) voidsetWebPaginationUtils(WebPaginationUtils webPaginationUtils)
-
Constructor Details
-
ProductController
public ProductController()
-
-
Method Details
-
getProductByCode
@RequestMapping(value="/{code}", method=GET) @ResponseBody public ProductWsDTO getProductByCode(@PathVariable String code) throws ConversionException - Throws:
ConversionException
-
findProductsByText
@RequestMapping(method=GET, params="pageSize") @ResponseBody public ProductDataListWsDTO findProductsByText(@RequestParam(required=false) String text, @RequestParam(required=false) String mask, @ModelAttribute PageableWsDTO pageableInfo) -
getCmsProductSearchFacade
-
setCmsProductSearchFacade
-
getWebPaginationUtils
-
setWebPaginationUtils
-
getDataMapper
-
setDataMapper
-