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 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

      @Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(method=DELETE) @ResponseStatus(OK) public void removeProductInterest(@RequestParam(required=true) String productCode, @RequestParam(required=true) String notificationType)
    • 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

      protected Map<String,String> getParameterMapFromRequest(javax.servlet.http.HttpServletRequest request)
    • recalculatePageSize

      protected void recalculatePageSize(SearchPageData searchPageData)
    • getProductInterestFacade

      protected ProductInterestFacade getProductInterestFacade()
    • getProductInterestsValidator

      protected ProductInterestsValidator getProductInterestsValidator()
    • getProductFacade

      protected ProductFacade getProductFacade()
    • handleErrors

      protected void handleErrors(org.springframework.validation.Errors errors)