Interface RatingService
- All Known Implementing Classes:
RatingServiceImpl
public interface RatingService
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteRatingSummary(RatingSummary rating) voidmarkReviewHelpful(Long reviewId, org.broadleafcommerce.profile.core.domain.Customer customer, Boolean helpful) voidrateItem(String itemId, RatingType type, org.broadleafcommerce.profile.core.domain.Customer customer, Double rating) readRatingSummaries(List<String> itemIds, RatingType type) readRatingSummary(String itemId, RatingType type) readReviewByCustomerAndItem(org.broadleafcommerce.profile.core.domain.Customer customer, String itemId) Reads a ReviewDetail by the given customer and the itemIdreadReviews(String itemId, RatingType type, int start, int finish, RatingSortType sortBy) voidreviewItem(String itemId, RatingType type, org.broadleafcommerce.profile.core.domain.Customer customer, Double rating, String reviewText) saveRatingSummary(RatingSummary rating)
-
Method Details
-
saveRatingSummary
-
deleteRatingSummary
-
readRatingSummary
-
readRatingSummaries
-
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
-
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
-