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 Summary
FieldsModifier and TypeFieldDescriptionprotected Doubleprotected ReviewDetailWrapperprotected Longprotected Stringprotected Integerprotected Integerprotected List<RatingDetailWrapper>protected Stringprotected List<ReviewDetailWrapper>Fields inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()voidsetAverageRating(Double averageRating) voidsetCurrentCustomerReview(ReviewDetailWrapper currentCustomerReview) voidvoidvoidsetNumberOfRatings(Integer numberOfRatings) voidsetNumberOfReviews(Integer numberOfReviews) voidsetRatings(List<RatingDetailWrapper> ratings) voidsetRatingType(String ratingType) voidsetReviews(List<ReviewDetailWrapper> reviews) voidwrapDetails(org.broadleafcommerce.core.rating.domain.RatingSummary model, jakarta.servlet.http.HttpServletRequest request) voidwrapSummary(org.broadleafcommerce.core.rating.domain.RatingSummary model, jakarta.servlet.http.HttpServletRequest request) Methods inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
createElementWrappers, setApplicationContext, transferAdditionalFieldsFromWrapper
-
Field Details
-
id
-
ratingType
-
itemId
-
numberOfRatings
-
numberOfReviews
-
averageRating
-
currentCustomerReview
-
reviews
-
ratings
-
-
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:
wrapDetailsin interfaceorg.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:
wrapSummaryin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.core.rating.domain.RatingSummary>
-
getId
-
setId
-
getRatingType
-
setRatingType
-
getItemId
-
setItemId
-
getNumberOfRatings
-
setNumberOfRatings
-
getNumberOfReviews
-
setNumberOfReviews
-
getAverageRating
-
setAverageRating
-
getCurrentCustomerReview
-
setCurrentCustomerReview
-
getReviews
-
setReviews
-
getRatings
-
setRatings
-