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

public class CustomerReviewModel extends ItemModel
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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Generated relation code constant for relation ReviewToProductRel defining source attribute product in extension customerreview.
    static final String
    Generated relation code constant for relation ReviewToUserRel defining source attribute user in extension customerreview.
    static final String
    Generated model type code constant.
    static final String
    Generated constant - Attribute key of CustomerReview.alias attribute defined at extension customerreview.
    static final String
    Generated constant - Attribute key of CustomerReview.approvalStatus attribute defined at extension customerreview.
    static final String
    Generated constant - Attribute key of CustomerReview.blocked attribute defined at extension customerreview.
    static final String
    Generated constant - Attribute key of CustomerReview.comment attribute defined at extension customerreview.
    static final String
    Generated constant - Attribute key of CustomerReview.headline attribute defined at extension customerreview.
    static final String
    Generated constant - Attribute key of CustomerReview.language attribute defined at extension customerreview.
    static final String
    Generated constant - Attribute key of CustomerReview.product attribute defined at extension customerreview.
    static final String
    Generated constant - Attribute key of CustomerReview.rating attribute defined at extension customerreview.
    static final String
    Generated constant - Attribute key of CustomerReview.user attribute defined at extension customerreview.

    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
    Generated 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 parameters
    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 parameters
    CustomerReviewModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
    Generated constructor - Default constructor for creation with existing context
  • Method Summary

    Modifier and Type
    Method
    Description
    Generated method - Getter of the CustomerReview.alias attribute defined at extension customerreview.
    Generated method - Getter of the CustomerReview.approvalStatus attribute defined at extension customerreview.
    Generated method - Getter of the CustomerReview.blocked attribute defined at extension customerreview.
    Generated method - Getter of the CustomerReview.comment attribute defined at extension customerreview.
    Generated method - Getter of the CustomerReview.headline attribute defined at extension customerreview.
    Generated method - Getter of the CustomerReview.language attribute defined at extension customerreview.
    Generated method - Getter of the CustomerReview.product attribute defined at extension customerreview.
    Generated method - Getter of the CustomerReview.rating attribute defined at extension customerreview.
    Generated method - Getter of the CustomerReview.user attribute defined at extension customerreview.
    void
    Generated method - Setter of CustomerReview.alias attribute defined at extension customerreview.
    void
    Generated method - Setter of CustomerReview.approvalStatus attribute defined at extension customerreview.
    void
    Generated method - Setter of CustomerReview.blocked attribute defined at extension customerreview.
    void
    Generated method - Setter of CustomerReview.comment attribute defined at extension customerreview.
    void
    Generated method - Setter of CustomerReview.headline attribute defined at extension customerreview.
    void
    Generated method - Setter of CustomerReview.language attribute defined at extension customerreview.
    void
    Generated method - Initial setter of CustomerReview.product attribute defined at extension customerreview.
    void
    Generated method - Setter of CustomerReview.rating attribute defined at extension customerreview.
    void
    Generated method - Setter of CustomerReview.user attribute defined at extension customerreview.

    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • _REVIEWTOUSERREL

      public static final String _REVIEWTOUSERREL
      Generated relation code constant for relation ReviewToUserRel defining source attribute user in extension customerreview.
      See Also:
    • _REVIEWTOPRODUCTREL

      public static final String _REVIEWTOPRODUCTREL
      Generated relation code constant for relation ReviewToProductRel defining source attribute product in extension customerreview.
      See Also:
    • HEADLINE

      public static final String HEADLINE
      Generated constant - Attribute key of CustomerReview.headline attribute defined at extension customerreview.
      See Also:
    • COMMENT

      public static final String COMMENT
      Generated constant - Attribute key of CustomerReview.comment attribute defined at extension customerreview.
      See Also:
    • RATING

      public static final String RATING
      Generated constant - Attribute key of CustomerReview.rating attribute defined at extension customerreview.
      See Also:
    • BLOCKED

      public static final String BLOCKED
      Generated constant - Attribute key of CustomerReview.blocked attribute defined at extension customerreview.
      See Also:
    • ALIAS

      public static final String ALIAS
      Generated constant - Attribute key of CustomerReview.alias attribute defined at extension customerreview.
      See Also:
    • APPROVALSTATUS

      public static final String APPROVALSTATUS
      Generated constant - Attribute key of CustomerReview.approvalStatus attribute defined at extension customerreview.
      See Also:
    • LANGUAGE

      public static final String LANGUAGE
      Generated constant - Attribute key of CustomerReview.language attribute defined at extension customerreview.
      See Also:
    • USER

      public static final String USER
      Generated constant - Attribute key of CustomerReview.user attribute defined at extension customerreview.
      See Also:
    • PRODUCT

      public static final String PRODUCT
      Generated constant - Attribute key of CustomerReview.product attribute defined at extension customerreview.
      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 parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _product - initial attribute declared by type CustomerReview at extension customerreview
      _rating - initial attribute declared by type CustomerReview at extension customerreview
      _user - initial attribute declared by type CustomerReview at extension customerreview
    • 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 parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _owner - initial attribute declared by type Item at extension core
      _product - initial attribute declared by type CustomerReview at extension customerreview
      _rating - initial attribute declared by type CustomerReview at extension customerreview
      _user - initial attribute declared by type CustomerReview at extension customerreview
  • Method Details

    • getAlias

      @Accessor(qualifier="alias", type=GETTER) public String getAlias()
      Generated method - Getter of the CustomerReview.alias attribute defined at extension customerreview.
      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 the CustomerReview.approvalStatus attribute defined at extension customerreview.
      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 Boolean getBlocked()
      Generated method - Getter of the CustomerReview.blocked attribute defined at extension customerreview.
      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 String getComment()
      Generated method - Getter of the CustomerReview.comment attribute defined at extension customerreview.
      Returns:
      the comment - Comment for the customer review
    • getHeadline

      @Accessor(qualifier="headline", type=GETTER) public String getHeadline()
      Generated method - Getter of the CustomerReview.headline attribute defined at extension customerreview.
      Returns:
      the headline - Headline for the customer review
    • getLanguage

      @Accessor(qualifier="language", type=GETTER) public LanguageModel getLanguage()
      Generated method - Getter of the CustomerReview.language attribute defined at extension customerreview.
      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 the CustomerReview.product attribute defined at extension customerreview.
      Returns:
      the product
    • getRating

      @Accessor(qualifier="rating", type=GETTER) public Double getRating()
      Generated method - Getter of the CustomerReview.rating attribute defined at extension customerreview.
      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 the CustomerReview.user attribute defined at extension customerreview.
      Returns:
      the user
    • setAlias

      @Accessor(qualifier="alias", type=SETTER) public void setAlias(String value)
      Generated method - Setter of CustomerReview.alias attribute defined at extension customerreview.
      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 of CustomerReview.approvalStatus attribute defined at extension customerreview.
      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(Boolean value)
      Generated method - Setter of CustomerReview.blocked attribute defined at extension customerreview.
      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(String value)
      Generated method - Setter of CustomerReview.comment attribute defined at extension customerreview.
      Parameters:
      value - the comment - Comment for the customer review
    • setHeadline

      @Accessor(qualifier="headline", type=SETTER) public void setHeadline(String value)
      Generated method - Setter of CustomerReview.headline attribute defined at extension customerreview.
      Parameters:
      value - the headline - Headline for the customer review
    • setLanguage

      @Accessor(qualifier="language", type=SETTER) public void setLanguage(LanguageModel value)
      Generated method - Setter of CustomerReview.language attribute defined at extension customerreview.
      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 of CustomerReview.product attribute defined at extension customerreview. Can only be used at creation of model - before first save.
      Parameters:
      value - the product
    • setRating

      @Accessor(qualifier="rating", type=SETTER) public void setRating(Double value)
      Generated method - Setter of CustomerReview.rating attribute defined at extension customerreview.
      Parameters:
      value - the rating - The rating, between customerreview.minimalrating (lowest rating) and customerreview.maximalrating (highest rating)
    • setUser

      @Accessor(qualifier="user", type=SETTER) public void setUser(UserModel value)
      Generated method - Setter of CustomerReview.user attribute defined at extension customerreview.
      Parameters:
      value - the user