public interface RatingService
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRatingSummary(RatingSummary rating) |
void |
markReviewHelpful(Long reviewId,
org.broadleafcommerce.profile.core.domain.Customer customer,
Boolean helpful) |
void |
rateItem(String itemId,
RatingType type,
org.broadleafcommerce.profile.core.domain.Customer customer,
Double rating) |
Map<String,RatingSummary> |
readRatingSummaries(List<String> itemIds,
RatingType type) |
RatingSummary |
readRatingSummary(String itemId,
RatingType type) |
ReviewDetail |
readReviewByCustomerAndItem(org.broadleafcommerce.profile.core.domain.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,
org.broadleafcommerce.profile.core.domain.Customer customer,
Double rating,
String reviewText) |
RatingSummary |
saveRatingSummary(RatingSummary rating) |
RatingSummary saveRatingSummary(RatingSummary rating)
void deleteRatingSummary(RatingSummary rating)
RatingSummary readRatingSummary(String itemId, RatingType type)
Map<String,RatingSummary> readRatingSummaries(List<String> itemIds, RatingType type)
void rateItem(String itemId, RatingType type, org.broadleafcommerce.profile.core.domain.Customer customer, Double rating)
List<ReviewDetail> readReviews(String itemId, RatingType type, int start, int finish, RatingSortType sortBy)
void reviewItem(String itemId, RatingType type, org.broadleafcommerce.profile.core.domain.Customer customer, Double rating, String reviewText)
void markReviewHelpful(Long reviewId, org.broadleafcommerce.profile.core.domain.Customer customer, Boolean helpful)
ReviewDetail readReviewByCustomerAndItem(org.broadleafcommerce.profile.core.domain.Customer customer, String itemId)
itemId - customer - Copyright © 2021. All rights reserved.