Class ProductRestrictionModel

    • 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 ProductRestriction.products attribute defined at extension voucher.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProductRestrictionModel

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

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

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public ProductRestrictionModel​(VoucherModel _voucher)
        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:
        _voucher - initial attribute declared by type Restriction at extension voucher
      • ProductRestrictionModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public ProductRestrictionModel​(ItemModel _owner,
                                       VoucherModel _voucher)
        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
        _voucher - initial attribute declared by type Restriction at extension voucher
    • Method Detail

      • getProducts

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

        @Accessor(qualifier="products",
                  type=SETTER)
        public void setProducts​(java.util.Collection<ProductModel> value)
        Generated method - Setter of ProductRestriction.products attribute defined at extension voucher.
        Parameters:
        value - the products - the products the given voucher is valid for.