Class ConfigurableBundleController
- java.lang.Object
-
- de.hybris.platform.configurablebundleocc.controllers.ConfigurableBundleController
-
@Controller @RequestMapping("/{baseSiteId}/users/{userId}/carts/{cartId}") public class ConfigurableBundleController extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ConfigurableBundleController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CartModificationWsDTOcreateBundle(@Valid BundleStarterWsDTO bundleStarter)ProductSearchPageWsDTOgetAllowedProducts(java.lang.String query, java.lang.Integer entryGroupNumber, int currentPage, int pageSize, java.lang.String sort, java.lang.String fields)protected BundleCartFacadegetBundleCartFacade()protected DataMappergetDataMapper()protected ErrorListWsDTOhandleValidation(org.springframework.web.bind.MethodArgumentNotValidException ex, org.springframework.web.context.request.WebRequest request)
-
-
-
Method Detail
-
createBundle
@PostMapping(value="/bundles", consumes="application/json", produces="application/json") @ResponseStatus(CREATED) @ResponseBody public CartModificationWsDTO createBundle(@RequestBody @Nonnull @Valid @Valid BundleStarterWsDTO bundleStarter) throws CommerceCartModificationException
-
getAllowedProducts
@GetMapping("/entrygroups/{entryGroupNumber}/allowedProductsSearch") @ResponseBody public ProductSearchPageWsDTO getAllowedProducts(@RequestParam(required=false) java.lang.String query, @PathVariable java.lang.Integer entryGroupNumber, @RequestParam(defaultValue="0") int currentPage, @RequestParam(defaultValue="20") int pageSize, @RequestParam(required=false) java.lang.String sort, @RequestParam(required=false,defaultValue="DEFAULT") java.lang.String fields)
-
handleValidation
@ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class) @ResponseStatus(BAD_REQUEST) @ResponseBody protected ErrorListWsDTO handleValidation(org.springframework.web.bind.MethodArgumentNotValidException ex, org.springframework.web.context.request.WebRequest request)
-
getBundleCartFacade
protected BundleCartFacade getBundleCartFacade()
-
getDataMapper
protected DataMapper getDataMapper()
-
-