public class OfferDiscoveryService
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ACCEPT |
protected CartService |
cartService |
protected CommonI18NService |
commonI18NService |
protected static EntityProviderReadProperties |
NO_READ_PROPERTIES |
protected ODataService |
oDataService |
protected RecentViewedItemsService |
recentViewedItemsService |
protected RecommendationBufferService |
recommendationBufferService |
protected static java.lang.String |
RECOMMENDATIONS |
protected UserContextService |
userContextService |
| Constructor and Description |
|---|
OfferDiscoveryService() |
protected static final java.lang.String ACCEPT
protected static final EntityProviderReadProperties NO_READ_PROPERTIES
protected static final java.lang.String RECOMMENDATIONS
protected CartService cartService
protected CommonI18NService commonI18NService
protected ODataService oDataService
protected RecentViewedItemsService recentViewedItemsService
protected RecommendationBufferService recommendationBufferService
protected UserContextService userContextService
protected java.util.Map<java.lang.String,java.lang.Object> convertMapBasketObject(RecommendationScenario.BasketObject bo)
protected java.util.Map<java.lang.String,java.lang.Object> convertMapContextParams(OfferRecommendationScenario.ContextParam cp)
protected java.util.Map<java.lang.String,java.lang.Object> convertMapLeadingObject(RecommendationScenario.LeadingObject lo)
public OfferRecommendation createOfferRecommendation(OfferRecommendationScenario.Result result)
result - OfferRecommendationScenario.ResultOfferRecommendationprotected OfferRecommendationScenario createOfferRecommendationScenario(OfferRecommendationContext context)
context - Request parameters and filtersprotected SAPOfferContentPosition createSAPOfferContentPosition(ODataEntry entry)
protected SAPRecommendationItemDataSourceType createSAPRecommendationItemDataSourceType(ODataEntry entry)
protected java.lang.String createSAPRecommendationType(ODataEntry entry)
protected void executeOfferRecommendation(OfferRecommendationScenario offerRecommendationScenario) throws java.io.IOException
java.io.IOExceptionprotected java.util.List<java.lang.String> getCartItemsFromSession()
public java.util.List<SAPOfferContentPosition> getContentPositionValues() throws java.io.IOException
java.io.IOExceptionpublic java.util.List<OfferRecommendation> getOfferRecommendations(OfferRecommendationContext context)
context - Request parameters and filtersList of OfferRecommendationpublic java.util.List<java.lang.String> getOfferRecommendationScenarios()
throws java.io.IOException
List of SAPRecommendationType from the yMKT system.SAPRecommendationType#getId().java.io.IOExceptionpublic void setCartService(CartService cartService)
public void setCommonI18NService(CommonI18NService commonI18NService)
public void setODataService(ODataService oDataService)
public void setRecentViewedItemsService(RecentViewedItemsService recentViewedItemsService)
public void setRecommendationBufferService(RecommendationBufferService recommendationBufferService)
public void setUserContextService(UserContextService userContextService)
Copyright © 2018 SAP SE. All Rights Reserved.