Class SAPOfferRecommendationRetrieveController

java.lang.Object
com.hybris.ymkt.recommendationaddon.controllers.SAPOfferRecommendationRetrieveController

@Controller("SAPOfferRecommendationRetrieveController") public class SAPOfferRecommendationRetrieveController extends Object
Controller for offerrecommendationList view
  • Field Details

    • OFFER_CLICK

      protected static final String OFFER_CLICK
      See Also:
    • OFFER_DISPLAY

      protected static final String OFFER_DISPLAY
      See Also:
    • VIEWNAME

      protected static final String VIEWNAME
      See Also:
    • cmsPageSlotComponentService

      protected de.hybris.platform.acceleratorcms.component.slot.CMSPageSlotComponentService cmsPageSlotComponentService
    • offerRecommendationManagerFacade

      protected OfferRecommendationManagerFacade offerRecommendationManagerFacade
    • request

      @Autowired protected javax.servlet.http.HttpServletRequest request
  • Constructor Details

    • SAPOfferRecommendationRetrieveController

      public SAPOfferRecommendationRetrieveController()
  • Method Details

    • getComponent

      protected Optional<CMSSAPOfferRecoComponentModel> getComponent(String componentId)
    • registerOfferClick

      @RequestMapping(value="/action/offerClick/", method=POST) @ResponseBody public void registerOfferClick(@RequestParam("componentId") String componentId, @RequestParam("offerid") String offerId, @RequestParam("offerContentId") String offerContentId)
    • registerOfferDisplay

      @RequestMapping(value="/action/offerDisplay/", method=POST) @ResponseBody public void registerOfferDisplay(@RequestParam("componentId") String componentId, @RequestParam("offerid") String offerId, @RequestParam("offerContentId") String offerContentId)
    • retrieveOfferRecommendations

      @RequestMapping("/action/offers/") public String retrieveOfferRecommendations(@RequestParam("id") String id, @RequestParam("componentId") String componentId, org.springframework.ui.Model model)
      Retrieve the recommended offers to be rendered in the UI
      Parameters:
      id -
      componentId -
      model -
      Returns:
      viewName
    • saveOfferInteraction

      public void saveOfferInteraction(String componentId, String offerId, String offerContentId, boolean bIsOfferDisplay)
      Parameters:
      componentId -
      offerId -
      offerContentId -
      bIsOfferDisplay -