public class SAPOfferRecommendationRetrieveController
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected CMSPageSlotComponentService |
cmsPageSlotComponentService |
protected static java.lang.String |
OFFER_CLICK |
protected static java.lang.String |
OFFER_DISPLAY |
protected OfferRecommendationManagerFacade |
offerRecommendationManagerFacade |
protected HttpServletRequest |
request |
protected static java.lang.String |
VIEWNAME |
| Constructor and Description |
|---|
SAPOfferRecommendationRetrieveController() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Optional<CMSSAPOfferRecoComponentModel> |
getComponent(java.lang.String componentId) |
protected java.util.Optional<CMSSAPOfferRecoComponentModel> |
getOfferComponent(java.lang.String componentId) |
void |
registerOfferClick(java.lang.String componentId,
java.lang.String offerId,
java.lang.String offerContentId) |
void |
registerOfferDisplay(java.lang.String componentId,
java.lang.String offerId,
java.lang.String offerContentId) |
java.lang.String |
retrieveOfferRecommendations(java.lang.String id,
java.lang.String componentId,
Model model)
Retrieve the recommended offers to be rendered in the UI
|
void |
saveOfferInteraction(java.lang.String componentId,
java.lang.String offerId,
java.lang.String offerContentId,
boolean bIsOfferDisplay) |
protected static final java.lang.String VIEWNAME
protected static final java.lang.String OFFER_DISPLAY
protected static final java.lang.String OFFER_CLICK
protected CMSPageSlotComponentService cmsPageSlotComponentService
protected OfferRecommendationManagerFacade offerRecommendationManagerFacade
protected HttpServletRequest request
public SAPOfferRecommendationRetrieveController()
protected java.util.Optional<CMSSAPOfferRecoComponentModel> getComponent(java.lang.String componentId)
protected java.util.Optional<CMSSAPOfferRecoComponentModel> getOfferComponent(java.lang.String componentId)
public java.lang.String retrieveOfferRecommendations(java.lang.String id,
java.lang.String componentId,
Model model)
id - title - componendId - model - public void registerOfferDisplay(java.lang.String componentId,
java.lang.String offerId,
java.lang.String offerContentId)
throws EntityProviderException
EntityProviderExceptionpublic void registerOfferClick(java.lang.String componentId,
java.lang.String offerId,
java.lang.String offerContentId)
throws EntityProviderException
EntityProviderExceptionpublic void saveOfferInteraction(java.lang.String componentId,
java.lang.String offerId,
java.lang.String offerContentId,
boolean bIsOfferDisplay)
throws EntityProviderException
componentId - offerId - offerContentId - bIsOfferDisplay - EntityProviderExceptionCopyright © 2017 SAP SE. All Rights Reserved.