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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Sum of all ratings divided by the number of approved ratings.int
Number 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".int
hashCode()
void
setAverageRating
(Double averageRating) Sum of all ratings divided by the number of approved ratings.void
setNumberOfApprovedRatings
(int numberOfApprovedRatings) Number of ratings that have been approved by an administrator or curator affecting the average rating.void
setRatingTargetId
(String ratingTargetId) The id of the rating target.void
setRatingTargetType
(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
-