Class SAPOfferRecommendationRetrieveController
java.lang.Object
com.hybris.ymkt.recommendationaddon.controllers.SAPOfferRecommendationRetrieveController
@Controller("SAPOfferRecommendationRetrieveController")
public class SAPOfferRecommendationRetrieveController
extends Object
Controller for offerrecommendationList view
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected de.hybris.platform.acceleratorcms.component.slot.CMSPageSlotComponentServiceprotected static final Stringprotected static final Stringprotected OfferRecommendationManagerFacadeprotected javax.servlet.http.HttpServletRequestprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<CMSSAPOfferRecoComponentModel>getComponent(String componentId) voidregisterOfferClick(String componentId, String offerId, String offerContentId) voidregisterOfferDisplay(String componentId, String offerId, String offerContentId) retrieveOfferRecommendations(String id, String componentId, org.springframework.ui.Model model) Retrieve the recommended offers to be rendered in the UIvoidsaveOfferInteraction(String componentId, String offerId, String offerContentId, boolean bIsOfferDisplay)
-
Field Details
-
OFFER_CLICK
- See Also:
-
OFFER_DISPLAY
- See Also:
-
VIEWNAME
- See Also:
-
cmsPageSlotComponentService
protected de.hybris.platform.acceleratorcms.component.slot.CMSPageSlotComponentService cmsPageSlotComponentService -
offerRecommendationManagerFacade
-
request
@Autowired protected javax.servlet.http.HttpServletRequest request
-
-
Constructor Details
-
SAPOfferRecommendationRetrieveController
public SAPOfferRecommendationRetrieveController()
-
-
Method Details
-
getComponent
-
registerOfferClick
-
registerOfferDisplay
-
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-
-