org.broadleafcommerce.core.rating.domain
Class RatingSummaryImpl
java.lang.Object
org.broadleafcommerce.core.rating.domain.RatingSummaryImpl
- All Implemented Interfaces:
- RatingSummary
@Entity
public class RatingSummaryImpl
- extends Object
- implements RatingSummary
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
averageRating
protected Double averageRating
ratings
protected List<RatingDetail> ratings
reviews
protected List<ReviewDetail> reviews
RatingSummaryImpl
public RatingSummaryImpl()
RatingSummaryImpl
public RatingSummaryImpl(String itemId,
RatingType ratingType)
getId
public Long getId()
- Specified by:
getId in interface RatingSummary
getAverageRating
public Double getAverageRating()
- Specified by:
getAverageRating in interface RatingSummary
getItemId
public String getItemId()
- Specified by:
getItemId in interface RatingSummary
getNumberOfRatings
public Integer getNumberOfRatings()
- Specified by:
getNumberOfRatings in interface RatingSummary
getNumberOfReviews
public Integer getNumberOfReviews()
- Specified by:
getNumberOfReviews in interface RatingSummary
getRatingType
public RatingType getRatingType()
- Specified by:
getRatingType in interface RatingSummary
getRatings
public List<RatingDetail> getRatings()
- Specified by:
getRatings in interface RatingSummary
getReviews
public List<ReviewDetail> getReviews()
- Specified by:
getReviews in interface RatingSummary
resetAverageRating
public void resetAverageRating()
- Specified by:
resetAverageRating in interface RatingSummary
Copyright © 2012. All Rights Reserved.