Interface RecommendationValidator

All Known Implementing Classes:
DefaultRecommendationValidator

public interface RecommendationValidator
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(RecommendationRequest recommendationRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    Check whether or not the recommendation request in this context is valid.
  • Method Details

    • validate

      void validate(RecommendationRequest recommendationRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) throws InvalidRecommendationException
      Check whether or not the recommendation request in this context is valid.
      Parameters:
      recommendationRequest - The recommendations to fetch
      context - The context information surrounding sandboxing/multitenant state
      Throws:
      InvalidRecommendationException - if the recommendation request is not valid