public class ProductRestrictionModel extends RestrictionModel
AbstractItemModel.NewModelContextFactory| 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, SEALEDLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| 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
|
ProductRestrictionModel(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, setOwnerequals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplacepublic 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(VoucherModel _voucher)
_voucher - initial attribute declared by type Restriction at extension voucher@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 voucher@Accessor(qualifier="products", type=GETTER) public java.util.Collection<ProductModel> getProducts()
ProductRestriction.products attribute defined at extension voucher.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.@Accessor(qualifier="products", type=SETTER) 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.