Class RatingSummaryWrapper

java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.RatingSummaryWrapper
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.rating.domain.RatingSummary>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class RatingSummaryWrapper extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.rating.domain.RatingSummary>
Author:
Nick Crum ncrum
See Also:
  • Field Details

  • Constructor Details

    • RatingSummaryWrapper

      public RatingSummaryWrapper()
  • Method Details

    • wrapDetails

      public void wrapDetails(org.broadleafcommerce.core.rating.domain.RatingSummary model, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      wrapDetails in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.rating.domain.RatingSummary>
    • wrapSummary

      public void wrapSummary(org.broadleafcommerce.core.rating.domain.RatingSummary model, jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      wrapSummary in interface org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.rating.domain.RatingSummary>
    • getId

      public Long getId()
    • setId

      public void setId(Long id)
    • getRatingType

      public String getRatingType()
    • setRatingType

      public void setRatingType(String ratingType)
    • getItemId

      public String getItemId()
    • setItemId

      public void setItemId(String itemId)
    • getNumberOfRatings

      public Integer getNumberOfRatings()
    • setNumberOfRatings

      public void setNumberOfRatings(Integer numberOfRatings)
    • getNumberOfReviews

      public Integer getNumberOfReviews()
    • setNumberOfReviews

      public void setNumberOfReviews(Integer numberOfReviews)
    • getAverageRating

      public Double getAverageRating()
    • setAverageRating

      public void setAverageRating(Double averageRating)
    • getCurrentCustomerReview

      public ReviewDetailWrapper getCurrentCustomerReview()
    • setCurrentCustomerReview

      public void setCurrentCustomerReview(ReviewDetailWrapper currentCustomerReview)
    • getReviews

      public List<ReviewDetailWrapper> getReviews()
    • setReviews

      public void setReviews(List<ReviewDetailWrapper> reviews)
    • getRatings

      public List<RatingDetailWrapper> getRatings()
    • setRatings

      public void setRatings(List<RatingDetailWrapper> ratings)