Class SAPRecommendationRetrieveController


  • @Controller("SAPRecommendationRetrieveController")
    public class SAPRecommendationRetrieveController
    extends java.lang.Object
    Controller for RecommendationList view
    • Constructor Detail

      • SAPRecommendationRetrieveController

        public SAPRecommendationRetrieveController()
    • Method Detail

      • registerClickthrough

        @RequestMapping(value="/action/prodRecoInteraction/",
                        method=POST)
        @ResponseBody
        public void registerClickthrough​(@RequestParam("id")
                                         java.lang.String id,
                                         @RequestParam("componentId")
                                         java.lang.String componentId)
        Create a click-through interaction when a recommended product is clicked
        Parameters:
        id -
        componentId -
      • registerProdRecoImpression

        @RequestMapping(value="/action/prodRecoImpression/",
                        method=POST)
        @ResponseBody
        public void registerProdRecoImpression​(@RequestParam("itemCount")
                                               int itemCount,
                                               @RequestParam("componentId")
                                               java.lang.String componentId)
        Creates an impression row in the table with the component's item count and ScenarioId
        Parameters:
        itemCount -
        componentId -
      • retrieveRecommendations

        @RequestMapping("/action/recommendations/")
        public java.lang.String retrieveRecommendations​(@RequestParam("id")
                                                        java.lang.String id,
                                                        @RequestParam("productCode")
                                                        java.lang.String productCode,
                                                        @RequestParam("componentId")
                                                        java.lang.String componentId,
                                                        org.springframework.ui.Model model)
        Retrieve the recommended products to be rendered in the UI
        Parameters:
        id -
        productCode -
        model -
        Returns:
        viewName