Class RatingRequest
java.lang.Object
com.broadleafcommerce.ratings.domain.RatingRequest
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.policy.Owned,Serializable
public class RatingRequest
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.policy.Owned
Represents the fields from the front end needed for a Customer to submit a rating or review.
Corresponds to fields in
RatingDetail and RatingSummary.- Author:
- Cade Rea (cade-rea)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanMap to capture any additional dataThe database ID of the user who authored this rating.The customer nameIf a Variant is being rated, this is the id of the parent product to the variant.The rating of this review.The id of the product or variant that is the subject of this rating.The rating target type, such as PRODUCT or VARIANT.The text of the review.The title of this reviewinthashCode()voidsetAttributes(Map<String, String> attributes) Map to capture any additional datavoidsetCustomerId(String customerId) The database ID of the user who authored this rating.voidsetCustomerName(String customerName) The customer namevoidsetParentTargetId(String parentTargetId) If a Variant is being rated, this is the id of the parent product to the variant.voidThe rating of this review.voidsetRatingTargetId(String ratingTargetId) The id of the product or variant that is the subject of this rating.voidsetRatingTargetType(String ratingTargetType) The rating target type, such as PRODUCT or VARIANT.voidThe text of the review.voidsetReviewTitle(String reviewTitle) The title of this reviewtoString()
-
Constructor Details
-
RatingRequest
public RatingRequest()
-
-
Method Details
-
getOwnerIdentifier
- Specified by:
getOwnerIdentifierin interfacecom.broadleafcommerce.data.tracking.core.policy.Owned
-
getRating
The rating of this review.- See Also:
-
RatingDetail.rating
-
getCustomerId
The database ID of the user who authored this rating. Nullable- See Also:
-
RatingDetail.customerId
-
getCustomerName
The customer name- See Also:
-
RatingDetail.customerName
-
getReviewTitle
The title of this review- See Also:
-
RatingDetail.reviewTitle
-
getReview
The text of the review.- See Also:
-
RatingDetail.originalReviewRatingDetail.editedReview
-
getRatingTargetId
The id of the product or variant that is the subject of this rating.- See Also:
-
RatingSummary.ratingTargetId
-
getParentTargetId
If a Variant is being rated, this is the id of the parent product to the variant. Null if this rating is for a product.- See Also:
-
RatingSummary.parentTargetId
-
getRatingTargetType
The rating target type, such as PRODUCT or VARIANT.- See Also:
-
RatingTargetTypeRatingSummary.ratingTargetType
-
getAttributes
Map to capture any additional data -
setRating
The rating of this review.- See Also:
-
RatingDetail.rating
-
setCustomerId
The database ID of the user who authored this rating. Nullable- See Also:
-
RatingDetail.customerId
-
setCustomerName
The customer name- See Also:
-
RatingDetail.customerName
-
setReviewTitle
The title of this review- See Also:
-
RatingDetail.reviewTitle
-
setReview
The text of the review.- See Also:
-
RatingDetail.originalReviewRatingDetail.editedReview
-
setRatingTargetId
The id of the product or variant that is the subject of this rating.- See Also:
-
RatingSummary.ratingTargetId
-
setParentTargetId
If a Variant is being rated, this is the id of the parent product to the variant. Null if this rating is for a product.- See Also:
-
RatingSummary.parentTargetId
-
setRatingTargetType
The rating target type, such as PRODUCT or VARIANT.- See Also:
-
RatingTargetTypeRatingSummary.ratingTargetType
-
setAttributes
Map to capture any additional data -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-