Class GeneratedCustomerReviewManager

    • Field Detail

      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Item.AttributeMode>> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedCustomerReviewManager

        public GeneratedCustomerReviewManager()
    • Method Detail

      • getAverageRating

        public abstract java.lang.Double getAverageRating​(SessionContext ctx,
                                                          Product item)
        Generated method - Getter of the Product.averageRating attribute.
        Returns:
        the averageRating - The average rating of the product.
      • getAverageRating

        public java.lang.Double getAverageRating​(Product item)
        Generated method - Getter of the Product.averageRating attribute.
        Returns:
        the averageRating - The average rating of the product.
      • getAverageRatingAsPrimitive

        public double getAverageRatingAsPrimitive​(SessionContext ctx,
                                                  Product item)
        Generated method - Getter of the Product.averageRating attribute.
        Returns:
        the averageRating - The average rating of the product.
      • getAverageRatingAsPrimitive

        public double getAverageRatingAsPrimitive​(Product item)
        Generated method - Getter of the Product.averageRating attribute.
        Returns:
        the averageRating - The average rating of the product.
      • createCustomerReview

        public CustomerReview createCustomerReview​(java.util.Map attributeValues)
      • getCustomerReviews

        public java.util.Collection<CustomerReview> getCustomerReviews​(SessionContext ctx,
                                                                       User item)
        Generated method - Getter of the User.customerReviews attribute.
        Returns:
        the customerReviews
      • getCustomerReviews

        public java.util.Collection<CustomerReview> getCustomerReviews​(User item)
        Generated method - Getter of the User.customerReviews attribute.
        Returns:
        the customerReviews
      • setCustomerReviews

        protected void setCustomerReviews​(SessionContext ctx,
                                          User item,
                                          java.util.Collection<CustomerReview> value)
        Generated method - Setter of the User.customerReviews attribute.
        Parameters:
        value - the customerReviews
      • setCustomerReviews

        protected void setCustomerReviews​(User item,
                                          java.util.Collection<CustomerReview> value)
        Generated method - Setter of the User.customerReviews attribute.
        Parameters:
        value - the customerReviews
      • addToCustomerReviews

        protected void addToCustomerReviews​(SessionContext ctx,
                                            User item,
                                            CustomerReview value)
        Generated method - Adds value to customerReviews.
        Parameters:
        value - the item to add to customerReviews
      • addToCustomerReviews

        protected void addToCustomerReviews​(User item,
                                            CustomerReview value)
        Generated method - Adds value to customerReviews.
        Parameters:
        value - the item to add to customerReviews
      • removeFromCustomerReviews

        protected void removeFromCustomerReviews​(SessionContext ctx,
                                                 User item,
                                                 CustomerReview value)
        Generated method - Removes value from customerReviews.
        Parameters:
        value - the item to remove from customerReviews
      • removeFromCustomerReviews

        protected void removeFromCustomerReviews​(User item,
                                                 CustomerReview value)
        Generated method - Removes value from customerReviews.
        Parameters:
        value - the item to remove from customerReviews
      • getName

        public java.lang.String getName()
        Specified by:
        getName in class Extension
      • getNumberOfReviews

        public abstract java.lang.Integer getNumberOfReviews​(SessionContext ctx,
                                                             Product item)
        Generated method - Getter of the Product.numberOfReviews attribute.
        Returns:
        the numberOfReviews - The number of reviews for the product.
      • getNumberOfReviews

        public java.lang.Integer getNumberOfReviews​(Product item)
        Generated method - Getter of the Product.numberOfReviews attribute.
        Returns:
        the numberOfReviews - The number of reviews for the product.
      • getNumberOfReviewsAsPrimitive

        public int getNumberOfReviewsAsPrimitive​(SessionContext ctx,
                                                 Product item)
        Generated method - Getter of the Product.numberOfReviews attribute.
        Returns:
        the numberOfReviews - The number of reviews for the product.
      • getNumberOfReviewsAsPrimitive

        public int getNumberOfReviewsAsPrimitive​(Product item)
        Generated method - Getter of the Product.numberOfReviews attribute.
        Returns:
        the numberOfReviews - The number of reviews for the product.
      • getProductReviews

        public java.util.Collection<CustomerReview> getProductReviews​(SessionContext ctx,
                                                                      Product item)
        Generated method - Getter of the Product.productReviews attribute.
        Returns:
        the productReviews
      • getProductReviews

        public java.util.Collection<CustomerReview> getProductReviews​(Product item)
        Generated method - Getter of the Product.productReviews attribute.
        Returns:
        the productReviews
      • setProductReviews

        public void setProductReviews​(SessionContext ctx,
                                      Product item,
                                      java.util.Collection<CustomerReview> value)
        Generated method - Setter of the Product.productReviews attribute.
        Parameters:
        value - the productReviews
      • setProductReviews

        public void setProductReviews​(Product item,
                                      java.util.Collection<CustomerReview> value)
        Generated method - Setter of the Product.productReviews attribute.
        Parameters:
        value - the productReviews
      • addToProductReviews

        public void addToProductReviews​(SessionContext ctx,
                                        Product item,
                                        CustomerReview value)
        Generated method - Adds value to productReviews.
        Parameters:
        value - the item to add to productReviews
      • addToProductReviews

        public void addToProductReviews​(Product item,
                                        CustomerReview value)
        Generated method - Adds value to productReviews.
        Parameters:
        value - the item to add to productReviews
      • removeFromProductReviews

        public void removeFromProductReviews​(SessionContext ctx,
                                             Product item,
                                             CustomerReview value)
        Generated method - Removes value from productReviews.
        Parameters:
        value - the item to remove from productReviews
      • removeFromProductReviews

        public void removeFromProductReviews​(Product item,
                                             CustomerReview value)
        Generated method - Removes value from productReviews.
        Parameters:
        value - the item to remove from productReviews