Class CustomerReviewModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.customerreview.model.CustomerReviewModel
- All Implemented Interfaces:
Serializable
Generated model class for type CustomerReview first defined at extension customerreview.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationReviewToProductReldefining source attributeproductin extensioncustomerreview.static final StringGenerated relation code constant for relationReviewToUserReldefining source attributeuserin extensioncustomerreview.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofCustomerReview.aliasattribute defined at extensioncustomerreview.static final StringGenerated constant - Attribute key ofCustomerReview.approvalStatusattribute defined at extensioncustomerreview.static final StringGenerated constant - Attribute key ofCustomerReview.blockedattribute defined at extensioncustomerreview.static final StringGenerated constant - Attribute key ofCustomerReview.commentattribute defined at extensioncustomerreview.static final StringGenerated constant - Attribute key ofCustomerReview.headlineattribute defined at extensioncustomerreview.static final StringGenerated constant - Attribute key ofCustomerReview.languageattribute defined at extensioncustomerreview.static final StringGenerated constant - Attribute key ofCustomerReview.productattribute defined at extensioncustomerreview.static final StringGenerated constant - Attribute key ofCustomerReview.ratingattribute defined at extensioncustomerreview.static final StringGenerated constant - Attribute key ofCustomerReview.userattribute defined at extensioncustomerreview.Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.CustomerReviewModel(ItemModel _owner, ProductModel _product, Double _rating, UserModel _user) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersCustomerReviewModel(ProductModel _product, Double _rating, UserModel _user) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersCustomerReviewModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()Generated method - Getter of theCustomerReview.aliasattribute defined at extensioncustomerreview.Generated method - Getter of theCustomerReview.approvalStatusattribute defined at extensioncustomerreview.Generated method - Getter of theCustomerReview.blockedattribute defined at extensioncustomerreview.Generated method - Getter of theCustomerReview.commentattribute defined at extensioncustomerreview.Generated method - Getter of theCustomerReview.headlineattribute defined at extensioncustomerreview.Generated method - Getter of theCustomerReview.languageattribute defined at extensioncustomerreview.Generated method - Getter of theCustomerReview.productattribute defined at extensioncustomerreview.Generated method - Getter of theCustomerReview.ratingattribute defined at extensioncustomerreview.getUser()Generated method - Getter of theCustomerReview.userattribute defined at extensioncustomerreview.voidGenerated method - Setter ofCustomerReview.aliasattribute defined at extensioncustomerreview.voidGenerated method - Setter ofCustomerReview.approvalStatusattribute defined at extensioncustomerreview.voidsetBlocked(Boolean value) Generated method - Setter ofCustomerReview.blockedattribute defined at extensioncustomerreview.voidsetComment(String value) Generated method - Setter ofCustomerReview.commentattribute defined at extensioncustomerreview.voidsetHeadline(String value) Generated method - Setter ofCustomerReview.headlineattribute defined at extensioncustomerreview.voidsetLanguage(LanguageModel value) Generated method - Setter ofCustomerReview.languageattribute defined at extensioncustomerreview.voidsetProduct(ProductModel value) Generated method - Initial setter ofCustomerReview.productattribute defined at extensioncustomerreview.voidGenerated method - Setter ofCustomerReview.ratingattribute defined at extensioncustomerreview.voidGenerated method - Setter ofCustomerReview.userattribute defined at extensioncustomerreview.Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
Field Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
_REVIEWTOUSERREL
Generated relation code constant for relationReviewToUserReldefining source attributeuserin extensioncustomerreview.- See Also:
-
_REVIEWTOPRODUCTREL
Generated relation code constant for relationReviewToProductReldefining source attributeproductin extensioncustomerreview.- See Also:
-
HEADLINE
Generated constant - Attribute key ofCustomerReview.headlineattribute defined at extensioncustomerreview.- See Also:
-
COMMENT
Generated constant - Attribute key ofCustomerReview.commentattribute defined at extensioncustomerreview.- See Also:
-
RATING
Generated constant - Attribute key ofCustomerReview.ratingattribute defined at extensioncustomerreview.- See Also:
-
BLOCKED
Generated constant - Attribute key ofCustomerReview.blockedattribute defined at extensioncustomerreview.- See Also:
-
ALIAS
Generated constant - Attribute key ofCustomerReview.aliasattribute defined at extensioncustomerreview.- See Also:
-
APPROVALSTATUS
Generated constant - Attribute key ofCustomerReview.approvalStatusattribute defined at extensioncustomerreview.- See Also:
-
LANGUAGE
Generated constant - Attribute key ofCustomerReview.languageattribute defined at extensioncustomerreview.- See Also:
-
USER
Generated constant - Attribute key ofCustomerReview.userattribute defined at extensioncustomerreview.- See Also:
-
PRODUCT
Generated constant - Attribute key ofCustomerReview.productattribute defined at extensioncustomerreview.- See Also:
-
-
Constructor Details
-
CustomerReviewModel
public CustomerReviewModel()Generated constructor - Default constructor for generic creation. -
CustomerReviewModel
public CustomerReviewModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
CustomerReviewModel
@Deprecated(since="4.1.1", forRemoval=true) public CustomerReviewModel(ProductModel _product, Double _rating, UserModel _user) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_product- initial attribute declared by typeCustomerReviewat extensioncustomerreview_rating- initial attribute declared by typeCustomerReviewat extensioncustomerreview_user- initial attribute declared by typeCustomerReviewat extensioncustomerreview
-
CustomerReviewModel
@Deprecated(since="4.1.1", forRemoval=true) public CustomerReviewModel(ItemModel _owner, ProductModel _product, Double _rating, UserModel _user) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_owner- initial attribute declared by typeItemat extensioncore_product- initial attribute declared by typeCustomerReviewat extensioncustomerreview_rating- initial attribute declared by typeCustomerReviewat extensioncustomerreview_user- initial attribute declared by typeCustomerReviewat extensioncustomerreview
-
-
Method Details
-
getAlias
Generated method - Getter of theCustomerReview.aliasattribute defined at extensioncustomerreview.- Returns:
- the alias - It holds the alias of the customer who wrote the review.
-
getApprovalStatus
@Accessor(qualifier="approvalStatus", type=GETTER) public CustomerReviewApprovalType getApprovalStatus()Generated method - Getter of theCustomerReview.approvalStatusattribute defined at extensioncustomerreview.- Returns:
- the approvalStatus - Its a review status type - when review is approved it is visible in the frontend.
-
getBlocked
Generated method - Getter of theCustomerReview.blockedattribute defined at extensioncustomerreview.- Returns:
- the blocked - This attribute can be set to true to indicate, that the review should be blocked, eg when it is offensive.
-
getComment
Generated method - Getter of theCustomerReview.commentattribute defined at extensioncustomerreview.- Returns:
- the comment - Comment for the customer review
-
getHeadline
Generated method - Getter of theCustomerReview.headlineattribute defined at extensioncustomerreview.- Returns:
- the headline - Headline for the customer review
-
getLanguage
Generated method - Getter of theCustomerReview.languageattribute defined at extensioncustomerreview.- Returns:
- the language - It holds the information about language that review was written with.
-
getProduct
Generated method - Getter of theCustomerReview.productattribute defined at extensioncustomerreview.- Returns:
- the product
-
getRating
Generated method - Getter of theCustomerReview.ratingattribute defined at extensioncustomerreview.- Returns:
- the rating - The rating, between customerreview.minimalrating (lowest rating) and customerreview.maximalrating (highest rating)
-
getUser
Generated method - Getter of theCustomerReview.userattribute defined at extensioncustomerreview.- Returns:
- the user
-
setAlias
Generated method - Setter ofCustomerReview.aliasattribute defined at extensioncustomerreview.- Parameters:
value- the alias - It holds the alias of the customer who wrote the review.
-
setApprovalStatus
@Accessor(qualifier="approvalStatus", type=SETTER) public void setApprovalStatus(CustomerReviewApprovalType value) Generated method - Setter ofCustomerReview.approvalStatusattribute defined at extensioncustomerreview.- Parameters:
value- the approvalStatus - Its a review status type - when review is approved it is visible in the frontend.
-
setBlocked
Generated method - Setter ofCustomerReview.blockedattribute defined at extensioncustomerreview.- Parameters:
value- the blocked - This attribute can be set to true to indicate, that the review should be blocked, eg when it is offensive.
-
setComment
Generated method - Setter ofCustomerReview.commentattribute defined at extensioncustomerreview.- Parameters:
value- the comment - Comment for the customer review
-
setHeadline
Generated method - Setter ofCustomerReview.headlineattribute defined at extensioncustomerreview.- Parameters:
value- the headline - Headline for the customer review
-
setLanguage
Generated method - Setter ofCustomerReview.languageattribute defined at extensioncustomerreview.- Parameters:
value- the language - It holds the information about language that review was written with.
-
setProduct
Generated method - Initial setter ofCustomerReview.productattribute defined at extensioncustomerreview. Can only be used at creation of model - before first save.- Parameters:
value- the product
-
setRating
Generated method - Setter ofCustomerReview.ratingattribute defined at extensioncustomerreview.- Parameters:
value- the rating - The rating, between customerreview.minimalrating (lowest rating) and customerreview.maximalrating (highest rating)
-
setUser
Generated method - Setter ofCustomerReview.userattribute defined at extensioncustomerreview.- Parameters:
value- the user
-