Class ProductRestrictionModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.voucher.model.RestrictionModel
de.hybris.platform.voucher.model.ProductRestrictionModel
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ProductCategoryRestrictionModel, ProductQuantityRestrictionModel

public class ProductRestrictionModel extends RestrictionModel
Generated model class for type ProductRestriction first defined at extension voucher.
See Also:
  • Field Details

    • _TYPECODE

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

      public static final String PRODUCTS
      Generated constant - Attribute key of ProductRestriction.products attribute defined at extension voucher.
      See Also:
  • Constructor Details

    • ProductRestrictionModel

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

      public ProductRestrictionModel(de.hybris.platform.servicelayer.model.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 Details

    • getProducts

      @Accessor(qualifier="products", type=GETTER) public 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(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.