org.broadleafcommerce.core.rating.service
Class RatingServiceImpl
java.lang.Object
org.broadleafcommerce.core.rating.service.RatingServiceImpl
- All Implemented Interfaces:
- RatingService
@Service(value="blRatingService")
public class RatingServiceImpl
- extends Object
- implements RatingService
|
Method Summary |
void |
deleteRatingSummary(RatingSummary ratingSummary)
|
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)
|
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 ratingSummary)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RatingServiceImpl
public RatingServiceImpl()
deleteRatingSummary
public void deleteRatingSummary(RatingSummary ratingSummary)
- Specified by:
deleteRatingSummary in interface RatingService
markReviewHelpful
public void markReviewHelpful(Long reviewId,
Customer customer,
Boolean helpful)
- Specified by:
markReviewHelpful in interface RatingService
rateItem
public void rateItem(String itemId,
RatingType type,
Customer customer,
Double rating)
- Specified by:
rateItem in interface RatingService
readRatingSummary
public RatingSummary readRatingSummary(String itemId,
RatingType type)
- Specified by:
readRatingSummary in interface RatingService
readRatingSummaries
public Map<String,RatingSummary> readRatingSummaries(List<String> itemIds,
RatingType type)
- Specified by:
readRatingSummaries in interface RatingService
readReviews
public List<ReviewDetail> readReviews(String itemId,
RatingType type,
int start,
int finish,
RatingSortType sortBy)
- Specified by:
readReviews in interface RatingService
saveRatingSummary
public RatingSummary saveRatingSummary(RatingSummary ratingSummary)
- Specified by:
saveRatingSummary in interface RatingService
reviewItem
public void reviewItem(String itemId,
RatingType type,
Customer customer,
Double rating,
String reviewText)
- Specified by:
reviewItem in interface RatingService
Copyright © 2012. All Rights Reserved.