public class ProductPromotionModel extends AbstractPromotionModel
AbstractItemModel.NewModelContextFactory| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_CATEGORYPROMOTIONRELATION
Generated relation code constant for relation
CategoryPromotionRelation defining source attribute categories in extension promotions. |
static java.lang.String |
_PRODUCTPROMOTIONRELATION
Generated relation code constant for relation
ProductPromotionRelation defining source attribute products in extension promotions. |
static java.lang.String |
_TYPECODE
Generated model type code constant.
|
static java.lang.String |
CATEGORIES
Generated constant - Attribute key of
ProductPromotion.categories attribute defined at extension promotions. |
static java.lang.String |
PRODUCTBANNER
Generated constant - Attribute key of
ProductPromotion.productBanner attribute defined at extension promotions. |
static java.lang.String |
PRODUCTS
Generated constant - Attribute key of
ProductPromotion.products attribute defined at extension promotions. |
static java.lang.String |
SPECIALDISCOUNT
Generated constant - Attribute key of
ProductPromotion.specialDiscount attribute defined at extension timedaccesspromotionsservices. |
_PROMOTIONGROUPPROMOTIONSRELATION, CODE, DESCRIPTION, DETAILSURL, ENABLED, ENDDATE, IMMUTABLEKEY, IMMUTABLEKEYHASH, NAME, PRIORITY, PROMOTIONGROUP, PROMOTIONTYPE, RESTRICTIONS, STARTDATE, TITLE_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDLANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY| Constructor and Description |
|---|
ProductPromotionModel()
Generated constructor - Default constructor for generic creation.
|
ProductPromotionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
|
ProductPromotionModel(java.lang.String _code)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
ProductPromotionModel(java.lang.String _code,
ItemModel _owner)
Deprecated.
since 4.1.1 Please use the default constructor without parameters
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<CategoryModel> |
getCategories()
Generated method - Getter of the
ProductPromotion.categories attribute defined at extension promotions. |
MediaModel |
getProductBanner()
Generated method - Getter of the
ProductPromotion.productBanner attribute defined at extension promotions. |
java.util.Collection<ProductModel> |
getProducts()
Generated method - Getter of the
ProductPromotion.products attribute defined at extension promotions. |
java.lang.Character |
getSpecialDiscount()
Generated method - Getter of the
ProductPromotion.specialDiscount attribute defined at extension timedaccesspromotionsservices. |
void |
setCategories(java.util.Collection<CategoryModel> value)
Generated method - Setter of
ProductPromotion.categories attribute defined at extension promotions. |
void |
setProductBanner(MediaModel value)
Generated method - Setter of
ProductPromotion.productBanner attribute defined at extension promotions. |
void |
setProducts(java.util.Collection<ProductModel> value)
Generated method - Setter of
ProductPromotion.products attribute defined at extension promotions. |
void |
setSpecialDiscount(java.lang.Character value)
Generated method - Setter of
ProductPromotion.specialDiscount attribute defined at extension timedaccesspromotionsservices. |
getCode, getDescription, getDetailsURL, getEnabled, getEndDate, getImmutableKey, getImmutableKeyHash, getName, getName, getPriority, getPromotionGroup, getPromotionType, getPromotionType, getRestrictions, getStartDate, getTitle, setCode, setDescription, setDetailsURL, setEnabled, setEndDate, setImmutableKey, setImmutableKeyHash, setName, setName, setPriority, setPromotionGroup, setRestrictions, setStartDate, setTitlegetComments, 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 _PRODUCTPROMOTIONRELATION
ProductPromotionRelation defining source attribute products in extension promotions.public static final java.lang.String _CATEGORYPROMOTIONRELATION
CategoryPromotionRelation defining source attribute categories in extension promotions.public static final java.lang.String PRODUCTBANNER
ProductPromotion.productBanner attribute defined at extension promotions.public static final java.lang.String PRODUCTS
ProductPromotion.products attribute defined at extension promotions.public static final java.lang.String CATEGORIES
ProductPromotion.categories attribute defined at extension promotions.public static final java.lang.String SPECIALDISCOUNT
ProductPromotion.specialDiscount attribute defined at extension timedaccesspromotionsservices.public ProductPromotionModel()
public ProductPromotionModel(ItemModelContext ctx)
ctx - the model context to be injected, must not be null@Deprecated public ProductPromotionModel(java.lang.String _code)
_code - initial attribute declared by type AbstractPromotion at extension promotions@Deprecated
public ProductPromotionModel(java.lang.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="categories", type=GETTER) public java.util.Collection<CategoryModel> getCategories()
ProductPromotion.categories attribute defined at extension promotions.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.@Accessor(qualifier="productBanner", type=GETTER) public MediaModel getProductBanner()
ProductPromotion.productBanner attribute defined at extension promotions.@Accessor(qualifier="products", type=GETTER) public java.util.Collection<ProductModel> getProducts()
ProductPromotion.products attribute defined at extension promotions.
Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.@Accessor(qualifier="specialDiscount", type=GETTER) public java.lang.Character getSpecialDiscount()
ProductPromotion.specialDiscount attribute defined at extension timedaccesspromotionsservices.@Accessor(qualifier="categories", type=SETTER) public void setCategories(java.util.Collection<CategoryModel> value)
ProductPromotion.categories attribute defined at extension promotions.value - the categories - Categories@Accessor(qualifier="productBanner", type=SETTER) public void setProductBanner(MediaModel value)
ProductPromotion.productBanner attribute defined at extension promotions.value - the productBanner - Media to display on the product page when this promotion is available.@Accessor(qualifier="products", type=SETTER) public void setProducts(java.util.Collection<ProductModel> value)
ProductPromotion.products attribute defined at extension promotions.value - the products - Products@Accessor(qualifier="specialDiscount", type=SETTER) public void setSpecialDiscount(java.lang.Character value)
ProductPromotion.specialDiscount attribute defined at extension timedaccesspromotionsservices.value - the specialDiscount - Flag to check if it is a special Discount promotion.Copyright © 2018 SAP SE. All Rights Reserved.