Class ProductPromotionModel

    • Field Detail

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • _PRODUCTPROMOTIONRELATION

        public static final java.lang.String _PRODUCTPROMOTIONRELATION
        Generated relation code constant for relation ProductPromotionRelation defining source attribute products in extension promotions.
        See Also:
        Constant Field Values
      • _CATEGORYPROMOTIONRELATION

        public static final java.lang.String _CATEGORYPROMOTIONRELATION
        Generated relation code constant for relation CategoryPromotionRelation defining source attribute categories in extension promotions.
        See Also:
        Constant Field Values
      • PRODUCTBANNER

        public static final java.lang.String PRODUCTBANNER
        Generated constant - Attribute key of ProductPromotion.productBanner attribute defined at extension promotions.
        See Also:
        Constant Field Values
      • PRODUCTS

        public static final java.lang.String PRODUCTS
        Generated constant - Attribute key of ProductPromotion.products attribute defined at extension promotions.
        See Also:
        Constant Field Values
      • CATEGORIES

        public static final java.lang.String CATEGORIES
        Generated constant - Attribute key of ProductPromotion.categories attribute defined at extension promotions.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProductPromotionModel

        public ProductPromotionModel()
        Generated constructor - Default constructor for generic creation.
      • ProductPromotionModel

        public ProductPromotionModel​(ItemModelContext ctx)
        Generated constructor - Default constructor for creation with existing context
        Parameters:
        ctx - the model context to be injected, must not be null
      • ProductPromotionModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public ProductPromotionModel​(java.lang.String _code)
        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:
        _code - initial attribute declared by type AbstractPromotion at extension promotions
      • ProductPromotionModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public ProductPromotionModel​(java.lang.String _code,
                                     ItemModel _owner)
        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:
        _code - initial attribute declared by type AbstractPromotion at extension promotions
        _owner - initial attribute declared by type Item at extension core
    • Method Detail

      • getCategories

        @Accessor(qualifier="categories",
                  type=GETTER)
        public java.util.Collection<CategoryModel> getCategories()
        Generated method - Getter of the ProductPromotion.categories attribute defined at extension promotions. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
        Returns:
        the categories - Categories
      • getProductBanner

        @Accessor(qualifier="productBanner",
                  type=GETTER)
        public MediaModel getProductBanner()
        Generated method - Getter of the ProductPromotion.productBanner attribute defined at extension promotions.
        Returns:
        the productBanner - Media to display on the product page when this promotion is available.
      • getProducts

        @Accessor(qualifier="products",
                  type=GETTER)
        public java.util.Collection<ProductModel> getProducts()
        Generated method - Getter of the ProductPromotion.products attribute defined at extension promotions. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
        Returns:
        the products - Products
      • setCategories

        @Accessor(qualifier="categories",
                  type=SETTER)
        public void setCategories​(java.util.Collection<CategoryModel> value)
        Generated method - Setter of ProductPromotion.categories attribute defined at extension promotions.
        Parameters:
        value - the categories - Categories
      • setProductBanner

        @Accessor(qualifier="productBanner",
                  type=SETTER)
        public void setProductBanner​(MediaModel value)
        Generated method - Setter of ProductPromotion.productBanner attribute defined at extension promotions.
        Parameters:
        value - the productBanner - Media to display on the product page when this promotion is available.
      • setProducts

        @Accessor(qualifier="products",
                  type=SETTER)
        public void setProducts​(java.util.Collection<ProductModel> value)
        Generated method - Setter of ProductPromotion.products attribute defined at extension promotions.
        Parameters:
        value - the products - Products