Interface TmaCustomerReviewService
- All Superinterfaces:
de.hybris.platform.customerreview.CustomerReviewService
- All Known Implementing Classes:
DefaultTmaCustomerReviewService
public interface TmaCustomerReviewService
extends de.hybris.platform.customerreview.CustomerReviewService
Service for operations related to the
CustomerReviewModel.- Since:
- 1907
-
Method Summary
Modifier and TypeMethodDescriptiongetNumberOfReviewsForProductAndLanguage(ProductModel product, LanguageModel language) Retrieves the the number of reviews that exist for a product in a given language.getReviewsForProductByLimitOffsetAndLanguage(ProductModel product, int offset, int limit, LanguageModel language) Retrieves all reviews for a product by offset, limit and language.Methods inherited from interface de.hybris.platform.customerreview.CustomerReviewService
createCustomerReview, getAverageRating, getNumberOfReviews, getReviewsForCustomer, getReviewsForProduct, getReviewsForProductAndLanguage
-
Method Details
-
getReviewsForProductByLimitOffsetAndLanguage
List<CustomerReviewModel> getReviewsForProductByLimitOffsetAndLanguage(ProductModel product, int offset, int limit, LanguageModel language) Retrieves all reviews for a product by offset, limit and language.- Parameters:
product- the product where the reviews are belonging tooffset- the offset represents the position in list from where the result list will start.limit- the limit represents the number of entries that will be selected for the result list.language- the language of the reviews- Returns:
- the list of reviews
-
getNumberOfReviewsForProductAndLanguage
Retrieves the the number of reviews that exist for a product in a given language.- Parameters:
product- the product which has the reviewslanguage- the language of the reviews- Returns:
- the number of all found
CustomerReviewModels
-