Class RatingSummary
java.lang.Object
com.broadleafcommerce.datafeed.service.collector.domain.product.RatingSummary
- All Implemented Interfaces:
Serializable
Ratings summary for Product data.
- Author:
- Kelly Tisdell (ktisdell)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanSum of all ratings divided by the number of approved ratings.intNumber of ratings that have been approved by an administrator or curator affecting the average rating.The id of the rating target.Either "PRODUCT" or "VARIANT".inthashCode()voidsetAverageRating(Double averageRating) Sum of all ratings divided by the number of approved ratings.voidsetNumberOfApprovedRatings(int numberOfApprovedRatings) Number of ratings that have been approved by an administrator or curator affecting the average rating.voidsetRatingTargetId(String ratingTargetId) The id of the rating target.voidsetRatingTargetType(String ratingTargetType) Either "PRODUCT" or "VARIANT".toString()
-
Constructor Details
-
RatingSummary
public RatingSummary()
-
-
Method Details
-
getRatingTargetType
Either "PRODUCT" or "VARIANT". -
getRatingTargetId
The id of the rating target. For example the product or variant ID. -
getAverageRating
Sum of all ratings divided by the number of approved ratings. -
getNumberOfApprovedRatings
public int getNumberOfApprovedRatings()Number of ratings that have been approved by an administrator or curator affecting the average rating. -
setRatingTargetType
Either "PRODUCT" or "VARIANT". -
setRatingTargetId
The id of the rating target. For example the product or variant ID. -
setAverageRating
Sum of all ratings divided by the number of approved ratings. -
setNumberOfApprovedRatings
public void setNumberOfApprovedRatings(int numberOfApprovedRatings) Number of ratings that have been approved by an administrator or curator affecting the average rating. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-