Class ProductPromotionModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.promotions.model.AbstractPromotionModel
-
- de.hybris.platform.promotions.model.ProductPromotionModel
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ProductBOGOFPromotionModel,ProductBundlePromotionModel,ProductFixedPricePromotionModel,ProductMultiBuyPromotionModel,ProductOneToOnePerfectPartnerPromotionModel,ProductPercentageDiscountPromotionModel,ProductPerfectPartnerBundlePromotionModel,ProductPerfectPartnerPromotionModel,ProductPriceDiscountPromotionByPaymentTypeModel,ProductSteppedMultiBuyPromotionModel,ProductThresholdPriceDiscountPromotionModel
public class ProductPromotionModel extends AbstractPromotionModel
Generated model class for type ProductPromotion first defined at extension promotions.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_CATEGORYPROMOTIONRELATIONGenerated relation code constant for relationCategoryPromotionRelationdefining source attributecategoriesin extensionpromotions.static java.lang.String_PRODUCTPROMOTIONRELATIONGenerated relation code constant for relationProductPromotionRelationdefining source attributeproductsin extensionpromotions.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringCATEGORIESGenerated constant - Attribute key ofProductPromotion.categoriesattribute defined at extensionpromotions.static java.lang.StringPRODUCTBANNERGenerated constant - Attribute key ofProductPromotion.productBannerattribute defined at extensionpromotions.static java.lang.StringPRODUCTSGenerated constant - Attribute key ofProductPromotion.productsattribute defined at extensionpromotions.-
Fields inherited from class de.hybris.platform.promotions.model.AbstractPromotionModel
_PROMOTIONGROUPPROMOTIONSRELATION, CODE, DESCRIPTION, DETAILSURL, ENABLED, ENDDATE, IMMUTABLEKEY, IMMUTABLEKEYHASH, NAME, PRIORITY, PROMOTIONGROUP, PROMOTIONTYPE, RESTRICTIONS, STARTDATE, TITLE
-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description ProductPromotionModel()Generated constructor - Default constructor for generic creation.ProductPromotionModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextProductPromotionModel(java.lang.String _code)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersProductPromotionModel(java.lang.String _code, ItemModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<CategoryModel>getCategories()Generated method - Getter of theProductPromotion.categoriesattribute defined at extensionpromotions.MediaModelgetProductBanner()Generated method - Getter of theProductPromotion.productBannerattribute defined at extensionpromotions.java.util.Collection<ProductModel>getProducts()Generated method - Getter of theProductPromotion.productsattribute defined at extensionpromotions.voidsetCategories(java.util.Collection<CategoryModel> value)Generated method - Setter ofProductPromotion.categoriesattribute defined at extensionpromotions.voidsetProductBanner(MediaModel value)Generated method - Setter ofProductPromotion.productBannerattribute defined at extensionpromotions.voidsetProducts(java.util.Collection<ProductModel> value)Generated method - Setter ofProductPromotion.productsattribute defined at extensionpromotions.-
Methods inherited from class de.hybris.platform.promotions.model.AbstractPromotionModel
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, setTitle
-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, 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, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
_PRODUCTPROMOTIONRELATION
public static final java.lang.String _PRODUCTPROMOTIONRELATION
Generated relation code constant for relationProductPromotionRelationdefining source attributeproductsin extensionpromotions.- See Also:
- Constant Field Values
-
_CATEGORYPROMOTIONRELATION
public static final java.lang.String _CATEGORYPROMOTIONRELATION
Generated relation code constant for relationCategoryPromotionRelationdefining source attributecategoriesin extensionpromotions.- See Also:
- Constant Field Values
-
PRODUCTBANNER
public static final java.lang.String PRODUCTBANNER
Generated constant - Attribute key ofProductPromotion.productBannerattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
PRODUCTS
public static final java.lang.String PRODUCTS
Generated constant - Attribute key ofProductPromotion.productsattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
CATEGORIES
public static final java.lang.String CATEGORIES
Generated constant - Attribute key ofProductPromotion.categoriesattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProductPromotionModel
public ProductPromotionModel()
Generated constructor - Default constructor for generic creation.
-
ProductPromotionModel
public ProductPromotionModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
ProductPromotionModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductPromotionModel(java.lang.String _code)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_code- initial attribute declared by typeAbstractPromotionat extensionpromotions
-
ProductPromotionModel
@Deprecated(since="4.1.1", forRemoval=true) public ProductPromotionModel(java.lang.String _code, ItemModel _owner)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_code- initial attribute declared by typeAbstractPromotionat extensionpromotions_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getCategories
@Accessor(qualifier="categories", type=GETTER) public java.util.Collection<CategoryModel> getCategories()
Generated method - Getter of theProductPromotion.categoriesattribute defined at extensionpromotions. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the categories - Categories
-
getProductBanner
@Accessor(qualifier="productBanner", type=GETTER) public MediaModel getProductBanner()
Generated method - Getter of theProductPromotion.productBannerattribute defined at extensionpromotions.- Returns:
- the productBanner - Media to display on the product page when this promotion is available.
-
getProducts
@Accessor(qualifier="products", type=GETTER) public java.util.Collection<ProductModel> getProducts()
Generated method - Getter of theProductPromotion.productsattribute defined at extensionpromotions. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the products - Products
-
setCategories
@Accessor(qualifier="categories", type=SETTER) public void setCategories(java.util.Collection<CategoryModel> value)
Generated method - Setter ofProductPromotion.categoriesattribute defined at extensionpromotions.- Parameters:
value- the categories - Categories
-
setProductBanner
@Accessor(qualifier="productBanner", type=SETTER) public void setProductBanner(MediaModel value)
Generated method - Setter ofProductPromotion.productBannerattribute defined at extensionpromotions.- Parameters:
value- the productBanner - Media to display on the product page when this promotion is available.
-
setProducts
@Accessor(qualifier="products", type=SETTER) public void setProducts(java.util.Collection<ProductModel> value)
Generated method - Setter ofProductPromotion.productsattribute defined at extensionpromotions.- Parameters:
value- the products - Products
-
-