java.lang.Object
com.broadleafcommerce.datafeed.service.collector.domain.product.RatingSummary
All Implemented Interfaces:
Serializable

public class RatingSummary extends Object implements Serializable
Ratings summary for Product data.
Author:
Kelly Tisdell (ktisdell)
See Also:
  • Constructor Details

    • RatingSummary

      public RatingSummary()
  • Method Details

    • getRatingTargetType

      public String getRatingTargetType()
      Either "PRODUCT" or "VARIANT".
    • getRatingTargetId

      public String getRatingTargetId()
      The id of the rating target. For example the product or variant ID.
    • getAverageRating

      public Double 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

      public void setRatingTargetType(String ratingTargetType)
      Either "PRODUCT" or "VARIANT".
    • setRatingTargetId

      public void setRatingTargetId(String ratingTargetId)
      The id of the rating target. For example the product or variant ID.
    • setAverageRating

      public void setAverageRating(Double averageRating)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object