Class GeneratedProductPromotion

    • Field Detail

      • PRODUCTBANNER

        public static final java.lang.String PRODUCTBANNER
        Qualifier of the ProductPromotion.productBanner attribute
        See Also:
        Constant Field Values
      • PRODUCTS

        public static final java.lang.String PRODUCTS
        Qualifier of the ProductPromotion.products attribute
        See Also:
        Constant Field Values
      • PRODUCTPROMOTIONRELATION_SRC_ORDERED

        protected static java.lang.String PRODUCTPROMOTIONRELATION_SRC_ORDERED
        Relation ordering override parameter constants for ProductPromotionRelation from ((promotions))
      • PRODUCTPROMOTIONRELATION_TGT_ORDERED

        protected static java.lang.String PRODUCTPROMOTIONRELATION_TGT_ORDERED
      • PRODUCTPROMOTIONRELATION_MARKMODIFIED

        protected static java.lang.String PRODUCTPROMOTIONRELATION_MARKMODIFIED
        Relation disable markmodifed parameter constants for ProductPromotionRelation from ((promotions))
      • CATEGORIES

        public static final java.lang.String CATEGORIES
        Qualifier of the ProductPromotion.categories attribute
        See Also:
        Constant Field Values
      • CATEGORYPROMOTIONRELATION_SRC_ORDERED

        protected static java.lang.String CATEGORYPROMOTIONRELATION_SRC_ORDERED
        Relation ordering override parameter constants for CategoryPromotionRelation from ((promotions))
      • CATEGORYPROMOTIONRELATION_TGT_ORDERED

        protected static java.lang.String CATEGORYPROMOTIONRELATION_TGT_ORDERED
      • CATEGORYPROMOTIONRELATION_MARKMODIFIED

        protected static java.lang.String CATEGORYPROMOTIONRELATION_MARKMODIFIED
        Relation disable markmodifed parameter constants for CategoryPromotionRelation from ((promotions))
      • DEFAULT_INITIAL_ATTRIBUTES

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

      • GeneratedProductPromotion

        public GeneratedProductPromotion()
    • Method Detail

      • getCategories

        public java.util.Collection<Category> getCategories​(SessionContext ctx)
        Generated method - Getter of the ProductPromotion.categories attribute.
        Returns:
        the categories - Categories
      • getCategories

        public java.util.Collection<Category> getCategories()
        Generated method - Getter of the ProductPromotion.categories attribute.
        Returns:
        the categories - Categories
      • getCategoriesCount

        public long getCategoriesCount​(SessionContext ctx)
      • getCategoriesCount

        public long getCategoriesCount()
      • setCategories

        public void setCategories​(SessionContext ctx,
                                  java.util.Collection<Category> value)
        Generated method - Setter of the ProductPromotion.categories attribute.
        Parameters:
        value - the categories - Categories
      • setCategories

        public void setCategories​(java.util.Collection<Category> value)
        Generated method - Setter of the ProductPromotion.categories attribute.
        Parameters:
        value - the categories - Categories
      • addToCategories

        public void addToCategories​(SessionContext ctx,
                                    Category value)
        Generated method - Adds value to categories.
        Parameters:
        value - the item to add to categories - Categories
      • addToCategories

        public void addToCategories​(Category value)
        Generated method - Adds value to categories.
        Parameters:
        value - the item to add to categories - Categories
      • removeFromCategories

        public void removeFromCategories​(SessionContext ctx,
                                         Category value)
        Generated method - Removes value from categories.
        Parameters:
        value - the item to remove from categories - Categories
      • removeFromCategories

        public void removeFromCategories​(Category value)
        Generated method - Removes value from categories.
        Parameters:
        value - the item to remove from categories - Categories
      • getProductBanner

        public Media getProductBanner​(SessionContext ctx)
        Generated method - Getter of the ProductPromotion.productBanner attribute.
        Returns:
        the productBanner - Media to display on the product page when this promotion is available.
      • getProductBanner

        public Media getProductBanner()
        Generated method - Getter of the ProductPromotion.productBanner attribute.
        Returns:
        the productBanner - Media to display on the product page when this promotion is available.
      • setProductBanner

        public void setProductBanner​(SessionContext ctx,
                                     Media value)
        Generated method - Setter of the ProductPromotion.productBanner attribute.
        Parameters:
        value - the productBanner - Media to display on the product page when this promotion is available.
      • setProductBanner

        public void setProductBanner​(Media value)
        Generated method - Setter of the ProductPromotion.productBanner attribute.
        Parameters:
        value - the productBanner - Media to display on the product page when this promotion is available.
      • getProducts

        public java.util.Collection<Product> getProducts​(SessionContext ctx)
        Generated method - Getter of the ProductPromotion.products attribute.
        Returns:
        the products - Products
      • getProducts

        public java.util.Collection<Product> getProducts()
        Generated method - Getter of the ProductPromotion.products attribute.
        Returns:
        the products - Products
      • getProductsCount

        public long getProductsCount​(SessionContext ctx)
      • getProductsCount

        public long getProductsCount()
      • setProducts

        public void setProducts​(SessionContext ctx,
                                java.util.Collection<Product> value)
        Generated method - Setter of the ProductPromotion.products attribute.
        Parameters:
        value - the products - Products
      • setProducts

        public void setProducts​(java.util.Collection<Product> value)
        Generated method - Setter of the ProductPromotion.products attribute.
        Parameters:
        value - the products - Products
      • addToProducts

        public void addToProducts​(SessionContext ctx,
                                  Product value)
        Generated method - Adds value to products.
        Parameters:
        value - the item to add to products - Products
      • addToProducts

        public void addToProducts​(Product value)
        Generated method - Adds value to products.
        Parameters:
        value - the item to add to products - Products
      • removeFromProducts

        public void removeFromProducts​(SessionContext ctx,
                                       Product value)
        Generated method - Removes value from products.
        Parameters:
        value - the item to remove from products - Products
      • removeFromProducts

        public void removeFromProducts​(Product value)
        Generated method - Removes value from products.
        Parameters:
        value - the item to remove from products - Products