org.broadleafcommerce.core.rating.service
Interface RatingService

All Known Implementing Classes:
RatingServiceImpl

public interface RatingService


Method Summary
 void deleteRatingSummary(RatingSummary rating)
           
 void markReviewHelpful(Long reviewId, Customer customer, Boolean helpful)
           
 void rateItem(String itemId, RatingType type, Customer customer, Double rating)
           
 Map<String,RatingSummary> readRatingSummaries(List<String> itemIds, RatingType type)
           
 RatingSummary readRatingSummary(String itemId, RatingType type)
           
 ReviewDetail readReviewByCustomerAndItem(Customer customer, String itemId)
          Reads a ReviewDetail by the given customer and the itemId
 List<ReviewDetail> readReviews(String itemId, RatingType type, int start, int finish, RatingSortType sortBy)
           
 void reviewItem(String itemId, RatingType type, Customer customer, Double rating, String reviewText)
           
 RatingSummary saveRatingSummary(RatingSummary rating)
           
 

Method Detail

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,
              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,
                Customer customer,
                Double rating,
                String reviewText)

markReviewHelpful

void markReviewHelpful(Long reviewId,
                       Customer customer,
                       Boolean helpful)

readReviewByCustomerAndItem

ReviewDetail readReviewByCustomerAndItem(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


Copyright © 2012. All Rights Reserved.