Class ProductInterestsController
- java.lang.Object
-
- de.hybris.platform.customerinterestsoccaddon.controllers.customerinterests.ProductInterestsController
-
@Controller @RequestMapping("/{baseSiteId}/users/{userId}/productinterests") public class ProductInterestsController extends java.lang.ObjectProvides RESTful API for product interests related methods
-
-
Constructor Summary
Constructors Constructor Description ProductInterestsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductInterestRelationWsDTOcreateProductInterest(java.lang.String productCode, java.lang.String notificationType, java.lang.String fields)protected java.util.Map<java.lang.String,java.lang.String>getParameterMapFromRequest(javax.servlet.http.HttpServletRequest request)protected ProductFacadegetProductFacade()protected ProductInterestFacadegetProductInterestFacade()CustomerInterestsSearchResultWsDTOgetProductInterests(javax.servlet.http.HttpServletRequest request, java.lang.String productCode, java.lang.String notificationType, java.lang.String fields)protected ProductInterestsValidatorgetProductInterestsValidator()protected voidhandleErrors(org.springframework.validation.Errors errors)protected voidrecalculatePageSize(SearchPageData searchPageData)voidremoveProductInterest(java.lang.String productCode, java.lang.String notificationType)protected ProductInterestRelationDatasaveProductInterest(java.lang.String productCode, NotificationType notificationType)
-
-
-
Method Detail
-
createProductInterest
@Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @ResponseBody @RequestMapping(method=POST) public ProductInterestRelationWsDTO createProductInterest(@RequestParam(required=true) java.lang.String productCode, @RequestParam(required=true) java.lang.String notificationType, @RequestParam(defaultValue="DEFAULT") java.lang.String fields)
-
removeProductInterest
@Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"}) @RequestMapping(method=DELETE) @ResponseStatus(OK) public void removeProductInterest(@RequestParam(required=true) java.lang.String productCode, @RequestParam(required=true) java.lang.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) java.lang.String productCode, @RequestParam(required=false) java.lang.String notificationType, @RequestParam(defaultValue="DEFAULT") java.lang.String fields)
-
saveProductInterest
protected ProductInterestRelationData saveProductInterest(java.lang.String productCode, NotificationType notificationType)
-
getParameterMapFromRequest
protected java.util.Map<java.lang.String,java.lang.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)
-
-