public class PromotionUserRestrictionModel extends AbstractPromotionRestrictionModel
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
POSITIVE
Generated constant - Attribute key of
PromotionUserRestriction.positive attribute defined at extension promotions. |
static java.lang.String |
USERS
Generated constant - Attribute key of
PromotionUserRestriction.users attribute defined at extension promotions. |
DESCRIPTIONPATTERN, PROMOTION, RENDEREDDESCRIPTION, RESTRICTIONTYPE_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED| Constructor and Description |
|---|
PromotionUserRestrictionModel()
Generated constructor - Default constructor for generic creation.
|
PromotionUserRestrictionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getPositive()
Generated method - Getter of the
PromotionUserRestriction.positive attribute defined at extension promotions. |
java.util.Collection<PrincipalModel> |
getUsers()
Generated method - Getter of the
PromotionUserRestriction.users attribute defined at extension promotions. |
void |
setPositive(java.lang.Boolean value)
Generated method - Setter of
PromotionUserRestriction.positive attribute defined at extension promotions. |
void |
setUsers(java.util.Collection<PrincipalModel> value)
Generated method - Setter of
PromotionUserRestriction.users attribute defined at extension promotions. |
getDescriptionPattern, getDescriptionPattern, getPromotion, getRenderedDescription, getRestrictionType, getRestrictionType, setDescriptionPattern, setDescriptionPattern, setPromotiongetComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerpublic static final java.lang.String _TYPECODE
public static final java.lang.String POSITIVE
PromotionUserRestriction.positive attribute defined at extension promotions.public static final java.lang.String USERS
PromotionUserRestriction.users attribute defined at extension promotions.public PromotionUserRestrictionModel()
public PromotionUserRestrictionModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be nullpublic java.lang.Boolean getPositive()
PromotionUserRestriction.positive attribute defined at extension promotions.public java.util.Collection<PrincipalModel> getUsers()
PromotionUserRestriction.users attribute defined at extension promotions.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.public void setPositive(java.lang.Boolean value)
PromotionUserRestriction.positive attribute defined at extension promotions.value - the positive - Specifies if this restriction is a positive (true) or negative (false) one.public void setUsers(java.util.Collection<PrincipalModel> value)
PromotionUserRestriction.users attribute defined at extension promotions.value - the users - The principals the promotion is not applied forCopyright © 2018 SAP SE. All Rights Reserved.