Class PromotionProductRestrictionModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class PromotionProductRestrictionModel
    extends AbstractPromotionRestrictionModel
    Generated model class for type PromotionProductRestriction first defined at extension promotions.
    See Also:
    Serialized Form
    • Field Detail

      • _TYPECODE

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

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

      • PromotionProductRestrictionModel

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

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

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public PromotionProductRestrictionModel​(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:
        _owner - initial attribute declared by type Item at extension core
    • Method Detail

      • getProducts

        @Accessor(qualifier="products",
                  type=GETTER)
        public java.util.Collection<ProductModel> getProducts()
        Generated method - Getter of the PromotionProductRestriction.products attribute defined at extension promotions. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
        Returns:
        the products - The products that the promotion should not be applied to
      • setProducts

        @Accessor(qualifier="products",
                  type=SETTER)
        public void setProducts​(java.util.Collection<ProductModel> value)
        Generated method - Setter of PromotionProductRestriction.products attribute defined at extension promotions.
        Parameters:
        value - the products - The products that the promotion should not be applied to