org.broadleafcommerce.core.rating.domain
Class RatingSummaryImpl

java.lang.Object
  extended by org.broadleafcommerce.core.rating.domain.RatingSummaryImpl
All Implemented Interfaces:
RatingSummary

@Entity
public class RatingSummaryImpl
extends Object
implements RatingSummary


Field Summary
protected  Double averageRating
           
protected  List<RatingDetail> ratings
           
protected  List<ReviewDetail> reviews
           
 
Constructor Summary
RatingSummaryImpl()
           
RatingSummaryImpl(String itemId, RatingType ratingType)
           
 
Method Summary
 Double getAverageRating()
           
 Long getId()
           
 String getItemId()
           
 Integer getNumberOfRatings()
           
 Integer getNumberOfReviews()
           
 List<RatingDetail> getRatings()
           
 RatingType getRatingType()
           
 List<ReviewDetail> getReviews()
           
 void resetAverageRating()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

averageRating

protected Double averageRating

ratings

protected List<RatingDetail> ratings

reviews

protected List<ReviewDetail> reviews
Constructor Detail

RatingSummaryImpl

public RatingSummaryImpl()

RatingSummaryImpl

public RatingSummaryImpl(String itemId,
                         RatingType ratingType)
Method Detail

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.