public interface CustomerReviewService
| Modifier and Type | Method and Description |
|---|---|
CustomerReviewModel |
createCustomerReview(Double rating,
String headline,
String comment,
UserModel user,
ProductModel product) |
List<CustomerReviewModel> |
getAllReviews(ProductModel product) |
Double |
getAverageRating(ProductModel product) |
Integer |
getNumberOfReviews(ProductModel product) |
List<CustomerReviewModel> |
getReviewsForCustomer(UserModel userModel)
Get the reviews for the specified customer.
|
List<CustomerReviewModel> |
getReviewsForProduct(ProductModel product)
Get the reviews for the specified product.
|
List<CustomerReviewModel> |
getReviewsForProductAndLanguage(ProductModel product,
LanguageModel language)
Get the reviews for the specified product in the specified language.
|
void |
updateCustomerReview(CustomerReviewModel model,
UserModel user,
ProductModel product) |
CustomerReviewModel createCustomerReview(Double rating, String headline, String comment, UserModel user, ProductModel product)
void updateCustomerReview(CustomerReviewModel model, UserModel user, ProductModel product)
List<CustomerReviewModel> getAllReviews(ProductModel product)
Double getAverageRating(ProductModel product)
Integer getNumberOfReviews(ProductModel product)
List<CustomerReviewModel> getReviewsForProduct(ProductModel product)
product - the productList<CustomerReviewModel> getReviewsForCustomer(UserModel userModel)
userModel - the customerList<CustomerReviewModel> getReviewsForProductAndLanguage(ProductModel product, LanguageModel language)
product - the productlanguage - the languageCopyright © 2017 SAP SE. All Rights Reserved.