@Service(value="blRatingService") public class RatingServiceImpl extends java.lang.Object implements RatingService
| Modifier and Type | Field and Description |
|---|---|
protected RatingSummaryDao |
ratingSummaryDao |
protected ReviewDetailDao |
reviewDetailDao |
| Constructor and Description |
|---|
RatingServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRatingSummary(RatingSummary ratingSummary) |
void |
markReviewHelpful(java.lang.Long reviewId,
Customer customer,
java.lang.Boolean helpful) |
void |
rateItem(java.lang.String itemId,
RatingType type,
Customer customer,
java.lang.Double rating) |
java.util.Map<java.lang.String,RatingSummary> |
readRatingSummaries(java.util.List<java.lang.String> itemIds,
RatingType type) |
RatingSummary |
readRatingSummary(java.lang.String itemId,
RatingType type) |
ReviewDetail |
readReviewByCustomerAndItem(Customer customer,
java.lang.String itemId)
Reads a ReviewDetail by the given customer and the itemId
|
java.util.List<ReviewDetail> |
readReviews(java.lang.String itemId,
RatingType type,
int start,
int finish,
RatingSortType sortBy) |
void |
reviewItem(java.lang.String itemId,
RatingType type,
Customer customer,
java.lang.Double rating,
java.lang.String reviewText) |
RatingSummary |
saveRatingSummary(RatingSummary ratingSummary) |
protected RatingSummaryDao ratingSummaryDao
protected ReviewDetailDao reviewDetailDao
@Transactional(value="blTransactionManager") public void deleteRatingSummary(RatingSummary ratingSummary)
deleteRatingSummary in interface RatingService@Transactional(value="blTransactionManager")
public void markReviewHelpful(java.lang.Long reviewId,
Customer customer,
java.lang.Boolean helpful)
markReviewHelpful in interface RatingService@Transactional(value="blTransactionManager")
public void rateItem(java.lang.String itemId,
RatingType type,
Customer customer,
java.lang.Double rating)
rateItem in interface RatingServicepublic RatingSummary readRatingSummary(java.lang.String itemId, RatingType type)
readRatingSummary in interface RatingServicepublic java.util.Map<java.lang.String,RatingSummary> readRatingSummaries(java.util.List<java.lang.String> itemIds, RatingType type)
readRatingSummaries in interface RatingServicepublic java.util.List<ReviewDetail> readReviews(java.lang.String itemId, RatingType type, int start, int finish, RatingSortType sortBy)
readReviews in interface RatingService@Transactional(value="blTransactionManager") public RatingSummary saveRatingSummary(RatingSummary ratingSummary)
saveRatingSummary in interface RatingService@Transactional(value="blTransactionManager")
public void reviewItem(java.lang.String itemId,
RatingType type,
Customer customer,
java.lang.Double rating,
java.lang.String reviewText)
reviewItem in interface RatingServicepublic ReviewDetail readReviewByCustomerAndItem(Customer customer, java.lang.String itemId)
RatingServicereadReviewByCustomerAndItem in interface RatingServiceCopyright © 2018. All Rights Reserved.