public class SAPRecommendationRetrieveController
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected CMSPageSlotComponentService |
cmsPageSlotComponentService |
protected InteractionService |
interactionService |
protected ProductRecommendationManagerFacade |
productRecommendationManagerFacade |
protected RecommendationService |
recommendationService |
protected HttpServletRequest |
request |
protected static java.lang.String |
VIEWNAME |
| Constructor and Description |
|---|
SAPRecommendationRetrieveController() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Optional<CMSSAPRecommendationComponentModel> |
getComponent(java.lang.String componentId) |
void |
registerClickthrough(java.lang.String id,
java.lang.String componentId)
Create a click-through interaction when a recommended product is clicked
|
void |
registerProdRecoImpression(int itemCount,
java.lang.String componentId)
Creates an impression row in the table with the component's item count and ScenarioId
|
java.lang.String |
retrieveRecommendations(java.lang.String id,
java.lang.String productCode,
java.lang.String componentId,
Model model)
Retrieve the recommended products to be rendered in the UI
|
protected static final java.lang.String VIEWNAME
protected CMSPageSlotComponentService cmsPageSlotComponentService
protected InteractionService interactionService
protected RecommendationService recommendationService
protected ProductRecommendationManagerFacade productRecommendationManagerFacade
protected HttpServletRequest request
protected java.util.Optional<CMSSAPRecommendationComponentModel> getComponent(java.lang.String componentId)
public void registerClickthrough(java.lang.String id,
java.lang.String componentId)
id - componentId - public void registerProdRecoImpression(int itemCount,
java.lang.String componentId)
itemCount - componentId - public java.lang.String retrieveRecommendations(java.lang.String id,
java.lang.String productCode,
java.lang.String componentId,
Model model)
id - productCode - model - Copyright © 2018 SAP SE. All Rights Reserved.