Class ProductPromotionModel

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ProductBOGOFPromotionModel, ProductBundlePromotionModel, ProductFixedPricePromotionModel, ProductMultiBuyPromotionModel, ProductOneToOnePerfectPartnerPromotionModel, ProductPercentageDiscountPromotionModel, ProductPerfectPartnerBundlePromotionModel, ProductPerfectPartnerPromotionModel, ProductPriceDiscountPromotionByPaymentTypeModel, ProductSteppedMultiBuyPromotionModel, ProductThresholdPriceDiscountPromotionModel

public class ProductPromotionModel extends AbstractPromotionModel
Generated model class for type ProductPromotion first defined at extension promotions.
See Also:
  • Field Details

    • _TYPECODE

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

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

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

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

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

      public static final String CATEGORIES
      Generated constant - Attribute key of ProductPromotion.categories attribute defined at extension promotions.
      See Also:
  • Constructor Details

    • 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(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(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 Details

    • getCategories

      @Accessor(qualifier="categories", type=GETTER) public 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 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(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(Collection<ProductModel> value)
      Generated method - Setter of ProductPromotion.products attribute defined at extension promotions.
      Parameters:
      value - the products - Products