public class DefaultCustomerReviewDao extends AbstractItemDao implements CustomerReviewDao
CustomerReviewDaoflexibleSearchService, modelService| Constructor and Description |
|---|
DefaultCustomerReviewDao() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getAverageRating(ProductModel product)
Calculates the average rating for a product.
|
java.lang.Integer |
getNumberOfReviews(ProductModel product)
Get number of all reviews in any language for the specified product.
|
java.util.List<CustomerReviewModel> |
getReviewsForCustomer(UserModel customer)
Get the reviews for the specified customer.
|
java.util.List<CustomerReviewModel> |
getReviewsForProduct(ProductModel product)
Get the reviews for the specified product.
|
java.util.List<CustomerReviewModel> |
getReviewsForProductAndLanguage(ProductModel product,
LanguageModel language)
Get the reviews for the specified product in the specified language.
|
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServicepublic java.util.List<CustomerReviewModel> getReviewsForProduct(ProductModel product)
CustomerReviewDaogetReviewsForProduct in interface CustomerReviewDaoproduct - the productpublic java.util.List<CustomerReviewModel> getReviewsForProductAndLanguage(ProductModel product, LanguageModel language)
CustomerReviewDaogetReviewsForProductAndLanguage in interface CustomerReviewDaoproduct - the productlanguage - the languagepublic java.util.List<CustomerReviewModel> getReviewsForCustomer(UserModel customer)
CustomerReviewDaogetReviewsForCustomer in interface CustomerReviewDaocustomer - the customerpublic java.lang.Integer getNumberOfReviews(ProductModel product)
CustomerReviewDaogetNumberOfReviews in interface CustomerReviewDaoproduct - the productpublic java.lang.Double getAverageRating(ProductModel product)
CustomerReviewDaogetAverageRating in interface CustomerReviewDaoproduct - the Product for which the average rating shall be calculatedCopyright © 2018 SAP SE. All Rights Reserved.