Class RatingServiceImpl
java.lang.Object
org.broadleafcommerce.core.rating.service.RatingServiceImpl
- All Implemented Interfaces:
RatingService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteRatingSummary(RatingSummary ratingSummary) 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 ratingSummary)
-
Field Details
-
ratingSummaryDao
-
reviewDetailDao
-
-
Constructor Details
-
RatingServiceImpl
public RatingServiceImpl()
-
-
Method Details
-
deleteRatingSummary
- Specified by:
deleteRatingSummaryin interfaceRatingService
-
markReviewHelpful
@Transactional("blTransactionManager") public void markReviewHelpful(Long reviewId, org.broadleafcommerce.profile.core.domain.Customer customer, Boolean helpful) - Specified by:
markReviewHelpfulin interfaceRatingService
-
rateItem
@Transactional("blTransactionManager") public void rateItem(String itemId, RatingType type, org.broadleafcommerce.profile.core.domain.Customer customer, Double rating) - Specified by:
rateItemin interfaceRatingService
-
readRatingSummary
- Specified by:
readRatingSummaryin interfaceRatingService
-
readRatingSummaries
- Specified by:
readRatingSummariesin interfaceRatingService
-
readReviews
public List<ReviewDetail> readReviews(String itemId, RatingType type, int start, int finish, RatingSortType sortBy) - Specified by:
readReviewsin interfaceRatingService
-
saveRatingSummary
@Transactional("blTransactionManager") public RatingSummary saveRatingSummary(RatingSummary ratingSummary) - Specified by:
saveRatingSummaryin interfaceRatingService
-
reviewItem
@Transactional("blTransactionManager") public void reviewItem(String itemId, RatingType type, org.broadleafcommerce.profile.core.domain.Customer customer, Double rating, String reviewText) - Specified by:
reviewItemin interfaceRatingService
-
readReviewByCustomerAndItem
public ReviewDetail readReviewByCustomerAndItem(org.broadleafcommerce.profile.core.domain.Customer customer, String itemId) Description copied from interface:RatingServiceReads a ReviewDetail by the given customer and the itemId- Specified by:
readReviewByCustomerAndItemin interfaceRatingService- Returns:
- review, or null if review is not found
-