public class ProductRestrictionModel extends RestrictionModel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
PRODUCTS
Generated constant - Attribute key of
ProductRestriction.products attribute defined at extension voucher. |
_VOUCHERRESTRICTIONSRELATION, DESCRIPTION, POSITIVE, RESTRICTIONTYPE, VIOLATIONMESSAGE, VOUCHER, VOUCHERPOS_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED| Constructor and Description |
|---|
ProductRestrictionModel()
Generated constructor - Default constructor for generic creation.
|
ProductRestrictionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
ProductRestrictionModel(ItemModel _owner,
VoucherModel _voucher)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<ProductModel> |
getProducts()
Generated method - Getter of the
ProductRestriction.products attribute defined at extension voucher. |
void |
setProducts(java.util.Collection<ProductModel> value)
Generated method - Setter of
ProductRestriction.products attribute defined at extension voucher. |
getDescription, getDescription, getPositive, getRestrictionType, getRestrictionType, getViolationMessage, getViolationMessage, getVoucher, setDescription, setDescription, setPositive, setViolationMessage, setViolationMessage, setVouchergetComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerpublic static final java.lang.String _TYPECODE
public static final java.lang.String PRODUCTS
ProductRestriction.products attribute defined at extension voucher.public ProductRestrictionModel()
public ProductRestrictionModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public ProductRestrictionModel(ItemModel _owner, VoucherModel _voucher)
_owner - initial attribute declared by type Item at extension core_voucher - initial attribute declared by type Restriction at extension voucherpublic java.util.Collection<ProductModel> getProducts()
ProductRestriction.products attribute defined at extension voucher.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.public void setProducts(java.util.Collection<ProductModel> value)
ProductRestriction.products attribute defined at extension voucher.value - the products - the products the given voucher is valid for.Copyright © 2018 SAP SE. All Rights Reserved.