public class OfferInteractionService
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
COMMUNICATION_MEDIUM |
protected static java.lang.String |
IMPORTHEADERS |
protected static int |
MAX_FAILURE |
protected ModelService |
modelService |
protected static EntityProviderReadProperties |
NO_READ_PROPERTIES |
protected ODataService |
oDataService |
protected int |
readBatchSize |
protected static int |
READTIMEOUT |
protected RecommendationBufferService |
recommendationBufferService |
protected UserContextService |
userContextService |
| Constructor and Description |
|---|
OfferInteractionService() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
buildInteractionMap(SAPOfferInteractionModel model)
Helper method that will bundle all the interactions for the property "Interactions" in the payload we send to ymkt
|
void |
saveOfferInteraction(OfferInteractionContext offerInteractionContext)
Saves the interaction in the database table with itemType SAPOfferInteraction
|
void |
sendOfferInteractions()
Send all offer interaction records via OData service.
|
void |
setModelService(ModelService modelService) |
void |
setODataService(ODataService oDataService) |
void |
setReadBatchSize(int readBatchSize) |
void |
setRecommendationBufferService(RecommendationBufferService recommendationBufferService) |
void |
setUserContextService(UserContextService userContextService) |
protected static final java.lang.String COMMUNICATION_MEDIUM
protected static final java.lang.String IMPORTHEADERS
protected static final int MAX_FAILURE
protected static final EntityProviderReadProperties NO_READ_PROPERTIES
protected static final int READTIMEOUT
protected ModelService modelService
protected ODataService oDataService
protected int readBatchSize
protected RecommendationBufferService recommendationBufferService
protected UserContextService userContextService
protected java.util.Map<java.lang.String,java.lang.Object> buildInteractionMap(SAPOfferInteractionModel model)
model - public void saveOfferInteraction(OfferInteractionContext offerInteractionContext)
offerInteractionContext - OfferInteractionContextpublic void sendOfferInteractions()
public void setModelService(ModelService modelService)
public void setODataService(ODataService oDataService)
public void setReadBatchSize(int readBatchSize)
public void setRecommendationBufferService(RecommendationBufferService recommendationBufferService)
public void setUserContextService(UserContextService userContextService)
Copyright © 2018 SAP SE. All Rights Reserved.