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:
java.io.Serializable
public class CustomerReviewModel extends ItemModel
Generated model class for type CustomerReview first defined at extension customerreview.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_REVIEWTOPRODUCTRELGenerated relation code constant for relationReviewToProductReldefining source attributeproductin extensioncustomerreview.static java.lang.String_REVIEWTOUSERRELGenerated relation code constant for relationReviewToUserReldefining source attributeuserin extensioncustomerreview.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringALIASGenerated constant - Attribute key ofCustomerReview.aliasattribute defined at extensioncustomerreview.static java.lang.StringAPPROVALSTATUSGenerated constant - Attribute key ofCustomerReview.approvalStatusattribute defined at extensioncustomerreview.static java.lang.StringBLOCKEDGenerated constant - Attribute key ofCustomerReview.blockedattribute defined at extensioncustomerreview.static java.lang.StringCOMMENTGenerated constant - Attribute key ofCustomerReview.commentattribute defined at extensioncustomerreview.static java.lang.StringHEADLINEGenerated constant - Attribute key ofCustomerReview.headlineattribute defined at extensioncustomerreview.static java.lang.StringLANGUAGEGenerated constant - Attribute key ofCustomerReview.languageattribute defined at extensioncustomerreview.static java.lang.StringPRODUCTGenerated constant - Attribute key ofCustomerReview.productattribute defined at extensioncustomerreview.static java.lang.StringRATINGGenerated constant - Attribute key ofCustomerReview.ratingattribute defined at extensioncustomerreview.static java.lang.StringUSERGenerated 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, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description CustomerReviewModel()Generated constructor - Default constructor for generic creation.CustomerReviewModel(ItemModel _owner, ProductModel _product, java.lang.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, java.lang.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(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlias()Generated method - Getter of theCustomerReview.aliasattribute defined at extensioncustomerreview.CustomerReviewApprovalTypegetApprovalStatus()Generated method - Getter of theCustomerReview.approvalStatusattribute defined at extensioncustomerreview.java.lang.BooleangetBlocked()Generated method - Getter of theCustomerReview.blockedattribute defined at extensioncustomerreview.java.lang.StringgetComment()Generated method - Getter of theCustomerReview.commentattribute defined at extensioncustomerreview.java.lang.StringgetHeadline()Generated method - Getter of theCustomerReview.headlineattribute defined at extensioncustomerreview.LanguageModelgetLanguage()Generated method - Getter of theCustomerReview.languageattribute defined at extensioncustomerreview.ProductModelgetProduct()Generated method - Getter of theCustomerReview.productattribute defined at extensioncustomerreview.java.lang.DoublegetRating()Generated method - Getter of theCustomerReview.ratingattribute defined at extensioncustomerreview.UserModelgetUser()Generated method - Getter of theCustomerReview.userattribute defined at extensioncustomerreview.voidsetAlias(java.lang.String value)Generated method - Setter ofCustomerReview.aliasattribute defined at extensioncustomerreview.voidsetApprovalStatus(CustomerReviewApprovalType value)Generated method - Setter ofCustomerReview.approvalStatusattribute defined at extensioncustomerreview.voidsetBlocked(java.lang.Boolean value)Generated method - Setter ofCustomerReview.blockedattribute defined at extensioncustomerreview.voidsetComment(java.lang.String value)Generated method - Setter ofCustomerReview.commentattribute defined at extensioncustomerreview.voidsetHeadline(java.lang.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.voidsetRating(java.lang.Double value)Generated method - Setter ofCustomerReview.ratingattribute defined at extensioncustomerreview.voidsetUser(UserModel value)Generated 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, setOwner
-
Methods 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 Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
_REVIEWTOUSERREL
public static final java.lang.String _REVIEWTOUSERREL
Generated relation code constant for relationReviewToUserReldefining source attributeuserin extensioncustomerreview.- See Also:
- Constant Field Values
-
_REVIEWTOPRODUCTREL
public static final java.lang.String _REVIEWTOPRODUCTREL
Generated relation code constant for relationReviewToProductReldefining source attributeproductin extensioncustomerreview.- See Also:
- Constant Field Values
-
HEADLINE
public static final java.lang.String HEADLINE
Generated constant - Attribute key ofCustomerReview.headlineattribute defined at extensioncustomerreview.- See Also:
- Constant Field Values
-
COMMENT
public static final java.lang.String COMMENT
Generated constant - Attribute key ofCustomerReview.commentattribute defined at extensioncustomerreview.- See Also:
- Constant Field Values
-
RATING
public static final java.lang.String RATING
Generated constant - Attribute key ofCustomerReview.ratingattribute defined at extensioncustomerreview.- See Also:
- Constant Field Values
-
BLOCKED
public static final java.lang.String BLOCKED
Generated constant - Attribute key ofCustomerReview.blockedattribute defined at extensioncustomerreview.- See Also:
- Constant Field Values
-
ALIAS
public static final java.lang.String ALIAS
Generated constant - Attribute key ofCustomerReview.aliasattribute defined at extensioncustomerreview.- See Also:
- Constant Field Values
-
APPROVALSTATUS
public static final java.lang.String APPROVALSTATUS
Generated constant - Attribute key ofCustomerReview.approvalStatusattribute defined at extensioncustomerreview.- See Also:
- Constant Field Values
-
LANGUAGE
public static final java.lang.String LANGUAGE
Generated constant - Attribute key ofCustomerReview.languageattribute defined at extensioncustomerreview.- See Also:
- Constant Field Values
-
USER
public static final java.lang.String USER
Generated constant - Attribute key ofCustomerReview.userattribute defined at extensioncustomerreview.- See Also:
- Constant Field Values
-
PRODUCT
public static final java.lang.String PRODUCT
Generated constant - Attribute key ofCustomerReview.productattribute defined at extensioncustomerreview.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CustomerReviewModel
public CustomerReviewModel()
Generated constructor - Default constructor for generic creation.
-
CustomerReviewModel
public CustomerReviewModel(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, java.lang.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, java.lang.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 Detail
-
getAlias
@Accessor(qualifier="alias", type=GETTER) public java.lang.String 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
@Accessor(qualifier="blocked", type=GETTER) public java.lang.Boolean 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
@Accessor(qualifier="comment", type=GETTER) public java.lang.String getComment()
Generated method - Getter of theCustomerReview.commentattribute defined at extensioncustomerreview.- Returns:
- the comment - Comment for the customer review
-
getHeadline
@Accessor(qualifier="headline", type=GETTER) public java.lang.String getHeadline()
Generated method - Getter of theCustomerReview.headlineattribute defined at extensioncustomerreview.- Returns:
- the headline - Headline for the customer review
-
getLanguage
@Accessor(qualifier="language", type=GETTER) public LanguageModel 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
@Accessor(qualifier="product", type=GETTER) public ProductModel getProduct()
Generated method - Getter of theCustomerReview.productattribute defined at extensioncustomerreview.- Returns:
- the product
-
getRating
@Accessor(qualifier="rating", type=GETTER) public java.lang.Double 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
@Accessor(qualifier="user", type=GETTER) public UserModel getUser()
Generated method - Getter of theCustomerReview.userattribute defined at extensioncustomerreview.- Returns:
- the user
-
setAlias
@Accessor(qualifier="alias", type=SETTER) public void setAlias(java.lang.String value)
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
@Accessor(qualifier="blocked", type=SETTER) public void setBlocked(java.lang.Boolean value)
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
@Accessor(qualifier="comment", type=SETTER) public void setComment(java.lang.String value)
Generated method - Setter ofCustomerReview.commentattribute defined at extensioncustomerreview.- Parameters:
value- the comment - Comment for the customer review
-
setHeadline
@Accessor(qualifier="headline", type=SETTER) public void setHeadline(java.lang.String value)
Generated method - Setter ofCustomerReview.headlineattribute defined at extensioncustomerreview.- Parameters:
value- the headline - Headline for the customer review
-
setLanguage
@Accessor(qualifier="language", type=SETTER) public void setLanguage(LanguageModel value)
Generated method - Setter ofCustomerReview.languageattribute defined at extensioncustomerreview.- Parameters:
value- the language - It holds the information about language that review was written with.
-
setProduct
@Accessor(qualifier="product", type=SETTER) public void setProduct(ProductModel value)
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
@Accessor(qualifier="rating", type=SETTER) public void setRating(java.lang.Double value)
Generated method - Setter ofCustomerReview.ratingattribute defined at extensioncustomerreview.- Parameters:
value- the rating - The rating, between customerreview.minimalrating (lowest rating) and customerreview.maximalrating (highest rating)
-
-