public class AbstractPromotionModel extends ItemModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static String |
_PROMOTIONGROUPPROMOTIONSRELATION
Generated relation code constant for relation
PromotionGroupPromotionsRelation defining source attribute PromotionGroup in extension promotions. |
static String |
_TYPECODE
Generated model type code constant.
|
static String |
CODE
Generated constant - Attribute key of
AbstractPromotion.code attribute defined at extension promotions. |
static String |
DESCRIPTION
Generated constant - Attribute key of
AbstractPromotion.description attribute defined at extension promotions. |
static String |
DETAILSURL
Generated constant - Attribute key of
AbstractPromotion.detailsURL attribute defined at extension promotions. |
static String |
ENABLED
Generated constant - Attribute key of
AbstractPromotion.enabled attribute defined at extension promotions. |
static String |
ENDDATE
Generated constant - Attribute key of
AbstractPromotion.endDate attribute defined at extension promotions. |
static String |
IMMUTABLEKEY
Generated constant - Attribute key of
AbstractPromotion.immutableKey attribute defined at extension promotions. |
static String |
IMMUTABLEKEYHASH
Generated constant - Attribute key of
AbstractPromotion.immutableKeyHash attribute defined at extension promotions. |
static String |
NAME
Generated constant - Attribute key of
AbstractPromotion.name attribute defined at extension acceleratorservices. |
static String |
PRIORITY
Generated constant - Attribute key of
AbstractPromotion.priority attribute defined at extension promotions. |
static String |
PROMOTIONGROUP
Generated constant - Attribute key of
AbstractPromotion.PromotionGroup attribute defined at extension promotions. |
static String |
PROMOTIONTYPE
Generated constant - Attribute key of
AbstractPromotion.promotionType attribute defined at extension promotions. |
static String |
RESTRICTIONS
Generated constant - Attribute key of
AbstractPromotion.restrictions attribute defined at extension promotions. |
static String |
STARTDATE
Generated constant - Attribute key of
AbstractPromotion.startDate attribute defined at extension promotions. |
static String |
TITLE
Generated constant - Attribute key of
AbstractPromotion.title attribute defined at extension promotions. |
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PKLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
AbstractPromotionModel()
Generated constructor - Default constructor for generic creation.
|
AbstractPromotionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
AbstractPromotionModel(String _code)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
AbstractPromotionModel(String _code,
ItemModel _owner)
Deprecated.
Since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
Generated method - Getter of the
AbstractPromotion.code attribute defined at extension promotions. |
String |
getDescription()
Generated method - Getter of the
AbstractPromotion.description attribute defined at extension promotions. |
String |
getDetailsURL()
Generated method - Getter of the
AbstractPromotion.detailsURL attribute defined at extension promotions. |
Boolean |
getEnabled()
Generated method - Getter of the
AbstractPromotion.enabled attribute defined at extension promotions. |
Date |
getEndDate()
Generated method - Getter of the
AbstractPromotion.endDate attribute defined at extension promotions. |
String |
getImmutableKey()
Generated method - Getter of the
AbstractPromotion.immutableKey attribute defined at extension promotions. |
String |
getImmutableKeyHash()
Generated method - Getter of the
AbstractPromotion.immutableKeyHash attribute defined at extension promotions. |
String |
getName()
Generated method - Getter of the
AbstractPromotion.name attribute defined at extension acceleratorservices. |
String |
getName(Locale loc)
Generated method - Getter of the
AbstractPromotion.name attribute defined at extension acceleratorservices. |
Integer |
getPriority()
Generated method - Getter of the
AbstractPromotion.priority attribute defined at extension promotions. |
PromotionGroupModel |
getPromotionGroup()
Generated method - Getter of the
AbstractPromotion.PromotionGroup attribute defined at extension promotions. |
String |
getPromotionType()
Generated method - Getter of the
AbstractPromotion.promotionType attribute defined at extension promotions. |
String |
getPromotionType(Locale loc)
Generated method - Getter of the
AbstractPromotion.promotionType attribute defined at extension promotions. |
Collection<AbstractPromotionRestrictionModel> |
getRestrictions()
Generated method - Getter of the
AbstractPromotion.restrictions attribute defined at extension promotions. |
Date |
getStartDate()
Generated method - Getter of the
AbstractPromotion.startDate attribute defined at extension promotions. |
String |
getTitle()
Generated method - Getter of the
AbstractPromotion.title attribute defined at extension promotions. |
void |
setCode(String value)
Generated method - Setter of
AbstractPromotion.code attribute defined at extension promotions. |
void |
setDescription(String value)
Generated method - Setter of
AbstractPromotion.description attribute defined at extension promotions. |
void |
setDetailsURL(String value)
Generated method - Setter of
AbstractPromotion.detailsURL attribute defined at extension promotions. |
void |
setEnabled(Boolean value)
Generated method - Setter of
AbstractPromotion.enabled attribute defined at extension promotions. |
void |
setEndDate(Date value)
Generated method - Setter of
AbstractPromotion.endDate attribute defined at extension promotions. |
void |
setImmutableKey(String value)
Generated method - Setter of
AbstractPromotion.immutableKey attribute defined at extension promotions. |
void |
setImmutableKeyHash(String value)
Generated method - Setter of
AbstractPromotion.immutableKeyHash attribute defined at extension promotions. |
void |
setName(String value)
Generated method - Setter of
AbstractPromotion.name attribute defined at extension acceleratorservices. |
void |
setName(String value,
Locale loc)
Generated method - Setter of
AbstractPromotion.name attribute defined at extension acceleratorservices. |
void |
setPriority(Integer value)
Generated method - Setter of
AbstractPromotion.priority attribute defined at extension promotions. |
void |
setPromotionGroup(PromotionGroupModel value)
Generated method - Setter of
AbstractPromotion.PromotionGroup attribute defined at extension promotions. |
void |
setRestrictions(Collection<AbstractPromotionRestrictionModel> value)
Generated method - Setter of
AbstractPromotion.restrictions attribute defined at extension promotions. |
void |
setStartDate(Date value)
Generated method - Setter of
AbstractPromotion.startDate attribute defined at extension promotions. |
void |
setTitle(String value)
Generated method - Setter of
AbstractPromotion.title attribute defined at extension promotions. |
getComments, 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 _PROMOTIONGROUPPROMOTIONSRELATION
PromotionGroupPromotionsRelation defining source attribute PromotionGroup in extension promotions.public static final String PROMOTIONTYPE
AbstractPromotion.promotionType attribute defined at extension promotions.public static final String CODE
AbstractPromotion.code attribute defined at extension promotions.public static final String TITLE
AbstractPromotion.title attribute defined at extension promotions.public static final String DESCRIPTION
AbstractPromotion.description attribute defined at extension promotions.public static final String STARTDATE
AbstractPromotion.startDate attribute defined at extension promotions.public static final String ENDDATE
AbstractPromotion.endDate attribute defined at extension promotions.public static final String DETAILSURL
AbstractPromotion.detailsURL attribute defined at extension promotions.public static final String RESTRICTIONS
AbstractPromotion.restrictions attribute defined at extension promotions.public static final String ENABLED
AbstractPromotion.enabled attribute defined at extension promotions.public static final String PRIORITY
AbstractPromotion.priority attribute defined at extension promotions.public static final String IMMUTABLEKEYHASH
AbstractPromotion.immutableKeyHash attribute defined at extension promotions.public static final String IMMUTABLEKEY
AbstractPromotion.immutableKey attribute defined at extension promotions.public static final String PROMOTIONGROUP
AbstractPromotion.PromotionGroup attribute defined at extension promotions.public static final String NAME
AbstractPromotion.name attribute defined at extension acceleratorservices.public AbstractPromotionModel()
public AbstractPromotionModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public AbstractPromotionModel(String _code)
_code - initial attribute declared by type AbstractPromotion at extension promotions@Deprecated public AbstractPromotionModel(String _code, ItemModel _owner)
_code - initial attribute declared by type AbstractPromotion at extension promotions_owner - initial attribute declared by type Item at extension core@Accessor(qualifier="code", type=GETTER) public String getCode()
AbstractPromotion.code attribute defined at extension promotions.@Accessor(qualifier="description", type=GETTER) public String getDescription()
AbstractPromotion.description attribute defined at extension promotions.@Accessor(qualifier="detailsURL", type=GETTER) public String getDetailsURL()
AbstractPromotion.detailsURL attribute defined at extension promotions.@Accessor(qualifier="enabled", type=GETTER) public Boolean getEnabled()
AbstractPromotion.enabled attribute defined at extension promotions.@Accessor(qualifier="endDate", type=GETTER) public Date getEndDate()
AbstractPromotion.endDate attribute defined at extension promotions.@Accessor(qualifier="immutableKey", type=GETTER) public String getImmutableKey()
AbstractPromotion.immutableKey attribute defined at extension promotions.@Accessor(qualifier="immutableKeyHash", type=GETTER) public String getImmutableKeyHash()
AbstractPromotion.immutableKeyHash attribute defined at extension promotions.@Accessor(qualifier="name", type=GETTER) public String getName()
AbstractPromotion.name attribute defined at extension acceleratorservices.@Accessor(qualifier="name", type=GETTER) public String getName(Locale loc)
AbstractPromotion.name attribute defined at extension acceleratorservices.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="priority", type=GETTER) public Integer getPriority()
AbstractPromotion.priority attribute defined at extension promotions.@Accessor(qualifier="PromotionGroup", type=GETTER) public PromotionGroupModel getPromotionGroup()
AbstractPromotion.PromotionGroup attribute defined at extension promotions.@Accessor(qualifier="promotionType", type=GETTER) public String getPromotionType()
AbstractPromotion.promotionType attribute defined at extension promotions.@Accessor(qualifier="promotionType", type=GETTER) public String getPromotionType(Locale loc)
AbstractPromotion.promotionType attribute defined at extension promotions.loc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="restrictions", type=GETTER) public Collection<AbstractPromotionRestrictionModel> getRestrictions()
AbstractPromotion.restrictions attribute defined at extension promotions.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.@Accessor(qualifier="startDate", type=GETTER) public Date getStartDate()
AbstractPromotion.startDate attribute defined at extension promotions.@Accessor(qualifier="title", type=GETTER) public String getTitle()
AbstractPromotion.title attribute defined at extension promotions.@Accessor(qualifier="code", type=SETTER) public void setCode(String value)
AbstractPromotion.code attribute defined at extension promotions.value - the code - Identifier for this promotion@Accessor(qualifier="description", type=SETTER) public void setDescription(String value)
AbstractPromotion.description attribute defined at extension promotions.value - the description - Description of this promotion@Accessor(qualifier="detailsURL", type=SETTER) public void setDetailsURL(String value)
AbstractPromotion.detailsURL attribute defined at extension promotions.value - the detailsURL - URL to a content page with further details of this promotion@Accessor(qualifier="enabled", type=SETTER) public void setEnabled(Boolean value)
AbstractPromotion.enabled attribute defined at extension promotions.value - the enabled - Flag to indicate if this promotion is enabled.@Accessor(qualifier="endDate", type=SETTER) public void setEndDate(Date value)
AbstractPromotion.endDate attribute defined at extension promotions.value - the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.@Accessor(qualifier="immutableKey", type=SETTER) public void setImmutableKey(String value)
AbstractPromotion.immutableKey attribute defined at extension promotions.value - the immutableKey - The full immutable identifier for this promotion@Accessor(qualifier="immutableKeyHash", type=SETTER) public void setImmutableKeyHash(String value)
AbstractPromotion.immutableKeyHash attribute defined at extension promotions.value - the immutableKeyHash - The HASH of the immutableKey@Accessor(qualifier="name", type=SETTER) public void setName(String value)
AbstractPromotion.name attribute defined at extension acceleratorservices.value - the name - Displayable name for this promotion@Accessor(qualifier="name", type=SETTER) public void setName(String value, Locale loc)
AbstractPromotion.name attribute defined at extension acceleratorservices.value - the name - Displayable name for this promotionloc - the value localization keyIllegalArgumentException - if localization key cannot be mapped to data language@Accessor(qualifier="priority", type=SETTER) public void setPriority(Integer value)
AbstractPromotion.priority attribute defined at extension promotions.value - the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.@Accessor(qualifier="PromotionGroup", type=SETTER) public void setPromotionGroup(PromotionGroupModel value)
AbstractPromotion.PromotionGroup attribute defined at extension promotions.value - the PromotionGroup@Accessor(qualifier="restrictions", type=SETTER) public void setRestrictions(Collection<AbstractPromotionRestrictionModel> value)
AbstractPromotion.restrictions attribute defined at extension promotions.value - the restrictions - Collection of restrictions that are applied to this promotion@Accessor(qualifier="startDate", type=SETTER) public void setStartDate(Date value)
AbstractPromotion.startDate attribute defined at extension promotions.value - the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.Copyright © 2017 SAP SE. All Rights Reserved.