Class InteractionService

java.lang.Object
com.hybris.ymkt.recommendation.services.InteractionService

public class InteractionService extends Object
This service is used for tracking, persisting and sending the successfully converted recommendation scenario.
These interactions are clickthrough.
  • Field Details

    • MAX_FAILURE

      protected static final int MAX_FAILURE
      See Also:
    • interactionType

      protected String interactionType
    • modelService

      protected de.hybris.platform.servicelayer.model.ModelService modelService
    • oDataService

      protected ODataService oDataService
    • readBatchSize

      protected int readBatchSize
    • recommendationBufferService

      protected RecommendationBufferService recommendationBufferService
    • userContextService

      protected UserContextService userContextService
  • Constructor Details

    • InteractionService

      public InteractionService()
  • Method Details

    • postInteraction

      public boolean postInteraction(SAPRecoClickthroughModel model)
      Send a single clickthrough entry via OData service
      Parameters:
      model - SAPRecoClickthroughModel
      Returns:
      true if posting was a success, false otherwise.
    • saveClickthrough

      public void saveClickthrough(InteractionContext interactionContext)
      Save a clickthrough to database
      Parameters:
      interactionContext - InteractionContext
    • sendInteractions

      public void sendInteractions()
      Send all clickthrough records via OData service
    • setInteractionType

      public void setInteractionType(String interactionType)
    • setModelService

      public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
    • setODataService

      public void setODataService(ODataService oDataService)
    • setReadBatchSize

      public void setReadBatchSize(int readBatchSize)
    • setRecommendationBufferService

      public void setRecommendationBufferService(RecommendationBufferService recommendationBufferService)
    • setUserContextService

      public void setUserContextService(UserContextService userContextService)