public class ProductCategoryRestrictionModel extends ProductRestrictionModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_TYPECODE
Generated model type code constant.
|
static String |
CATEGORIES
Generated constant - Attribute key of
ProductCategoryRestriction.categories attribute defined at extension voucher. |
PRODUCTS_VOUCHERRESTRICTIONSRELATION, DESCRIPTION, POSITIVE, RESTRICTIONTYPE, VIOLATIONMESSAGE, VOUCHER, VOUCHERPOS_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PKLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
ProductCategoryRestrictionModel()
Generated constructor - Default constructor for generic creation.
|
ProductCategoryRestrictionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
ProductCategoryRestrictionModel(ItemModel _owner,
VoucherModel _voucher)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
ProductCategoryRestrictionModel(VoucherModel _voucher)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
Collection<CategoryModel> |
getCategories()
Generated method - Getter of the
ProductCategoryRestriction.categories attribute defined at extension voucher. |
void |
setCategories(Collection<CategoryModel> value)
Generated method - Setter of
ProductCategoryRestriction.categories attribute defined at extension voucher. |
getProducts, setProductsgetDescription, getDescription, getPositive, getRestrictionType, getRestrictionType, getViolationMessage, getViolationMessage, getVoucher, setDescription, setDescription, setPositive, setViolationMessage, setViolationMessage, setVouchergetComments, getCreationtime, getModifiedtime, getOwner, 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 String _TYPECODE
public static final String CATEGORIES
ProductCategoryRestriction.categories attribute defined at extension voucher.public ProductCategoryRestrictionModel()
public ProductCategoryRestrictionModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public ProductCategoryRestrictionModel(VoucherModel _voucher)
_voucher - initial attribute declared by type Restriction at extension voucher@Deprecated public ProductCategoryRestrictionModel(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="categories", type=GETTER) public Collection<CategoryModel> getCategories()
ProductCategoryRestriction.categories attribute defined at extension voucher.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.@Accessor(qualifier="categories", type=SETTER) public void setCategories(Collection<CategoryModel> value)
ProductCategoryRestriction.categories attribute defined at extension voucher.value - the categories - the categories the given voucher is valid for.Copyright © 2017 SAP SE. All Rights Reserved.