public class AbstractPromotionRestrictionModel extends ItemModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
DESCRIPTIONPATTERN
Generated constant - Attribute key of
AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions. |
static java.lang.String |
PROMOTION
Generated constant - Attribute key of
AbstractPromotionRestriction.promotion attribute defined at extension promotions. |
static java.lang.String |
RENDEREDDESCRIPTION
Generated constant - Attribute key of
AbstractPromotionRestriction.renderedDescription attribute defined at extension promotions. |
static java.lang.String |
RESTRICTIONTYPE
Generated constant - Attribute key of
AbstractPromotionRestriction.restrictionType attribute defined at extension promotions. |
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
AbstractPromotionRestrictionModel()
Generated constructor - Default constructor for generic creation.
|
AbstractPromotionRestrictionModel(ItemModel _owner)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
AbstractPromotionRestrictionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescriptionPattern()
Generated method - Getter of the
AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions. |
java.lang.String |
getDescriptionPattern(java.util.Locale loc)
Generated method - Getter of the
AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions. |
AbstractPromotionModel |
getPromotion()
Generated method - Getter of the
AbstractPromotionRestriction.promotion attribute defined at extension promotions. |
java.lang.String |
getRenderedDescription()
Generated method - Getter of the
AbstractPromotionRestriction.renderedDescription attribute defined at extension promotions. |
java.lang.String |
getRestrictionType()
Generated method - Getter of the
AbstractPromotionRestriction.restrictionType attribute defined at extension promotions. |
java.lang.String |
getRestrictionType(java.util.Locale loc)
Generated method - Getter of the
AbstractPromotionRestriction.restrictionType attribute defined at extension promotions. |
void |
setDescriptionPattern(java.lang.String value)
Generated method - Setter of
AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions. |
void |
setDescriptionPattern(java.lang.String value,
java.util.Locale loc)
Generated method - Setter of
AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions. |
void |
setPromotion(AbstractPromotionModel value)
Generated method - Setter of
AbstractPromotionRestriction.promotion attribute defined at extension promotions. |
getComments, 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 RESTRICTIONTYPE
AbstractPromotionRestriction.restrictionType attribute defined at extension promotions.public static final java.lang.String DESCRIPTIONPATTERN
AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions.public static final java.lang.String RENDEREDDESCRIPTION
AbstractPromotionRestriction.renderedDescription attribute defined at extension promotions.public static final java.lang.String PROMOTION
AbstractPromotionRestriction.promotion attribute defined at extension promotions.public AbstractPromotionRestrictionModel()
public AbstractPromotionRestrictionModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public AbstractPromotionRestrictionModel(ItemModel _owner)
_owner - initial attribute declared by type Item at extension core@Accessor(qualifier="descriptionPattern", type=GETTER) public java.lang.String getDescriptionPattern()
AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions.@Accessor(qualifier="descriptionPattern", type=GETTER) public java.lang.String getDescriptionPattern(java.util.Locale loc)
AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions.loc - the value localization keyjava.lang.IllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="promotion", type=GETTER) public AbstractPromotionModel getPromotion()
AbstractPromotionRestriction.promotion attribute defined at extension promotions.@Accessor(qualifier="renderedDescription", type=GETTER) public java.lang.String getRenderedDescription()
AbstractPromotionRestriction.renderedDescription attribute defined at extension promotions.@Accessor(qualifier="restrictionType", type=GETTER) public java.lang.String getRestrictionType()
AbstractPromotionRestriction.restrictionType attribute defined at extension promotions.@Accessor(qualifier="restrictionType", type=GETTER) public java.lang.String getRestrictionType(java.util.Locale loc)
AbstractPromotionRestriction.restrictionType attribute defined at extension promotions.loc - the value localization keyjava.lang.IllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="descriptionPattern", type=SETTER) public void setDescriptionPattern(java.lang.String value)
AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions.value - the descriptionPattern - The description of the restriction (supports message pattern).@Accessor(qualifier="descriptionPattern", type=SETTER) public void setDescriptionPattern(java.lang.String value, java.util.Locale loc)
AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions.value - the descriptionPattern - The description of the restriction (supports message pattern).loc - the value localization keyjava.lang.IllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="promotion", type=SETTER) public void setPromotion(AbstractPromotionModel value)
AbstractPromotionRestriction.promotion attribute defined at extension promotions.value - the promotion - The promotion that this restriction is part ofCopyright © 2018 SAP SE. All Rights Reserved.