Class 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String _REVIEWTOPRODUCTREL
      Generated relation code constant for relation ReviewToProductRel defining source attribute product in extension customerreview.
      static java.lang.String _REVIEWTOUSERREL
      Generated relation code constant for relation ReviewToUserRel defining source attribute user in extension customerreview.
      static java.lang.String _TYPECODE
      Generated model type code constant.
      static java.lang.String ALIAS
      Generated constant - Attribute key of CustomerReview.alias attribute defined at extension customerreview.
      static java.lang.String APPROVALSTATUS
      Generated constant - Attribute key of CustomerReview.approvalStatus attribute defined at extension customerreview.
      static java.lang.String BLOCKED
      Generated constant - Attribute key of CustomerReview.blocked attribute defined at extension customerreview.
      static java.lang.String COMMENT
      Generated constant - Attribute key of CustomerReview.comment attribute defined at extension customerreview.
      static java.lang.String HEADLINE
      Generated constant - Attribute key of CustomerReview.headline attribute defined at extension customerreview.
      static java.lang.String LANGUAGE
      Generated constant - Attribute key of CustomerReview.language attribute defined at extension customerreview.
      static java.lang.String PRODUCT
      Generated constant - Attribute key of CustomerReview.product attribute defined at extension customerreview.
      static java.lang.String RATING
      Generated constant - Attribute key of CustomerReview.rating attribute defined at extension customerreview.
      static java.lang.String USER
      Generated constant - Attribute key of CustomerReview.user attribute defined at extension customerreview.
    • 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 parameters
      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 parameters
      CustomerReviewModel​(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
    • 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 relation ReviewToUserRel defining source attribute user in extension customerreview.
        See Also:
        Constant Field Values
      • _REVIEWTOPRODUCTREL

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

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

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

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

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

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

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

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

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

        public static final java.lang.String PRODUCT
        Generated constant - Attribute key of CustomerReview.product attribute defined at extension customerreview.
        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 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,
                                   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 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 Detail

      • getAlias

        @Accessor(qualifier="alias",
                  type=GETTER)
        public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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