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 boolean
boolean
Map 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 reviewint
hashCode()
void
setAttributes
(Map<String, String> attributes) Map to capture any additional datavoid
setCustomerId
(String customerId) The database ID of the user who authored this rating.void
setCustomerName
(String customerName) The customer namevoid
setParentTargetId
(String parentTargetId) If a Variant is being rated, this is the id of the parent product to the variant.void
The rating of this review.void
setRatingTargetId
(String ratingTargetId) The id of the product or variant that is the subject of this rating.void
setRatingTargetType
(String ratingTargetType) The rating target type, such as PRODUCT or VARIANT.void
The text of the review.void
setReviewTitle
(String reviewTitle) The title of this reviewtoString()
-
Constructor Details
-
RatingRequest
public RatingRequest()
-
-
Method Details
-
getOwnerIdentifier
- Specified by:
getOwnerIdentifier
in 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.originalReview
RatingDetail.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:
-
RatingTargetType
RatingSummary.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.originalReview
RatingDetail.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:
-
RatingTargetType
RatingSummary.ratingTargetType
-
setAttributes
Map to capture any additional data -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-