Interface RatingService

All Known Implementing Classes:
RatingServiceImpl

public interface RatingService
  • Method Details

    • saveRatingSummary

      RatingSummary saveRatingSummary(RatingSummary rating)
    • deleteRatingSummary

      void deleteRatingSummary(RatingSummary rating)
    • readRatingSummary

      RatingSummary readRatingSummary(String itemId, RatingType type)
    • readRatingSummaries

      Map<String,RatingSummary> readRatingSummaries(List<String> itemIds, RatingType type)
    • rateItem

      void rateItem(String itemId, RatingType type, org.broadleafcommerce.profile.core.domain.Customer customer, Double rating)
    • readReviews

      List<ReviewDetail> readReviews(String itemId, RatingType type, int start, int finish, RatingSortType sortBy)
    • reviewItem

      void reviewItem(String itemId, RatingType type, org.broadleafcommerce.profile.core.domain.Customer customer, Double rating, String reviewText)
    • markReviewHelpful

      void markReviewHelpful(Long reviewId, org.broadleafcommerce.profile.core.domain.Customer customer, Boolean helpful)
    • readReviewByCustomerAndItem

      ReviewDetail readReviewByCustomerAndItem(org.broadleafcommerce.profile.core.domain.Customer customer, String itemId)
      Reads a ReviewDetail by the given customer and the itemId
      Parameters:
      itemId -
      customer -
      Returns:
      review, or null if review is not found