Class ProductCategoryRestrictionModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class ProductCategoryRestrictionModel
    extends ProductRestrictionModel
    Generated model class for type ProductCategoryRestriction first defined at extension voucher.
    See Also:
    Serialized Form
    • Field Detail

      • _TYPECODE

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

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

      • ProductCategoryRestrictionModel

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

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

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public ProductCategoryRestrictionModel​(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
      • ProductCategoryRestrictionModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public ProductCategoryRestrictionModel​(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

      • getCategories

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

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