Class ProductInterestsController
java.lang.Object
de.hybris.platform.customerinterestsocc.controllers.customerinterests.ProductInterestsController
@Controller
@RequestMapping("/{baseSiteId}/users/{userId}/productinterests")
public class ProductInterestsController
extends Object
Provides RESTful API for product interests related methods
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProductInterest(String productCode, String notificationType, String fields) getParameterMapFromRequest(javax.servlet.http.HttpServletRequest request) protected ProductFacadeprotected ProductInterestFacadegetProductInterests(javax.servlet.http.HttpServletRequest request, String productCode, String notificationType, String fields) protected ProductInterestsValidatorprotected voidhandleErrors(org.springframework.validation.Errors errors) protected voidrecalculatePageSize(SearchPageData searchPageData) voidremoveProductInterest(String productCode, String notificationType) protected ProductInterestRelationDatasaveProductInterest(String productCode, NotificationType notificationType)
-
Constructor Details
-
ProductInterestsController
public ProductInterestsController()
-
-
Method Details
-
createProductInterest
@Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @ResponseBody @RequestMapping(method=POST) public ProductInterestRelationWsDTO createProductInterest(@RequestParam(required=true) String productCode, @RequestParam(required=true) String notificationType, @RequestParam(defaultValue="DEFAULT") String fields) -
removeProductInterest
-
getProductInterests
@Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @ResponseBody @RequestMapping(method=GET) public CustomerInterestsSearchResultWsDTO getProductInterests(javax.servlet.http.HttpServletRequest request, @RequestParam(required=false) String productCode, @RequestParam(required=false) String notificationType, @RequestParam(defaultValue="DEFAULT") String fields) -
saveProductInterest
protected ProductInterestRelationData saveProductInterest(String productCode, NotificationType notificationType) -
getParameterMapFromRequest
-
recalculatePageSize
-
getProductInterestFacade
-
getProductInterestsValidator
-
getProductFacade
-
handleErrors
protected void handleErrors(org.springframework.validation.Errors errors)
-