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 SummaryConstructors
- 
Method SummaryModifier 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- 
RatingSummarypublic RatingSummary()
 
- 
- 
Method Details- 
getRatingTargetTypeEither "PRODUCT" or "VARIANT".
- 
getRatingTargetIdThe id of the rating target. For example the product or variant ID.
- 
getAverageRatingSum of all ratings divided by the number of approved ratings.
- 
getNumberOfApprovedRatingspublic int getNumberOfApprovedRatings()Number of ratings that have been approved by an administrator or curator affecting the average rating.
- 
setRatingTargetTypeEither "PRODUCT" or "VARIANT".
- 
setRatingTargetIdThe id of the rating target. For example the product or variant ID.
- 
setAverageRatingSum of all ratings divided by the number of approved ratings.
- 
setNumberOfApprovedRatingspublic void setNumberOfApprovedRatings(int numberOfApprovedRatings) Number of ratings that have been approved by an administrator or curator affecting the average rating.
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
toString
 
-