Class OfferInteractionService
java.lang.Object
com.hybris.ymkt.recommendation.services.OfferInteractionService
This services is used to send offer interactions to SAP Marketing
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final intprotected de.hybris.platform.servicelayer.model.ModelServiceprotected ODataServiceprotected intprotected static final intprotected RecommendationBufferServiceprotected UserContextService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionHelper method that will bundle all the interactions for the property "Interactions" in the payload we send to ymktvoidsaveOfferInteraction(OfferInteractionContext offerInteractionContext) Saves the interaction in the database table with itemType SAPOfferInteractionprotected booleansendOfferInteraction(List<SAPOfferInteractionModel> interactionModels) voidSend all offer interaction records via OData service.voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) voidsetODataService(ODataService oDataService) voidsetReadBatchSize(int readBatchSize) voidsetRecommendationBufferService(RecommendationBufferService recommendationBufferService) voidsetUserContextService(UserContextService userContextService)
-
Field Details
-
COMMUNICATION_MEDIUM
- See Also:
-
MAX_FAILURE
protected static final int MAX_FAILURE- See Also:
-
READTIMEOUT
protected static final int READTIMEOUT- See Also:
-
modelService
protected de.hybris.platform.servicelayer.model.ModelService modelService -
oDataService
-
readBatchSize
protected int readBatchSize -
recommendationBufferService
-
userContextService
-
-
Constructor Details
-
OfferInteractionService
public OfferInteractionService()
-
-
Method Details
-
buildInteractionMap
Helper method that will bundle all the interactions for the property "Interactions" in the payload we send to ymkt- Parameters:
model-- Returns:
- Interaction Map
-
saveOfferInteraction
Saves the interaction in the database table with itemType SAPOfferInteraction- Parameters:
offerInteractionContext-OfferInteractionContext
-
sendOfferInteraction
-
sendOfferInteractions
public void sendOfferInteractions()Send all offer interaction records via OData service. -
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) -
setODataService
-
setReadBatchSize
public void setReadBatchSize(int readBatchSize) -
setRecommendationBufferService
-
setUserContextService
-