Class AbstractPromotionRestrictionModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.promotions.model.AbstractPromotionRestrictionModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PromotionBillingTimeRestrictionModel,PromotionOrderRestrictionModel,PromotionProductRestrictionModel,PromotionUserRestrictionModel
Generated model class for type AbstractPromotionRestriction first defined at extension promotions.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofAbstractPromotionRestriction.descriptionPatternattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotionRestriction.promotionattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotionRestriction.renderedDescriptionattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofAbstractPromotionRestriction.restrictionTypeattribute defined at extensionpromotions.Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.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 - Default constructor for creation with existing context -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theAbstractPromotionRestriction.descriptionPatternattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotionRestriction.descriptionPatternattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotionRestriction.promotionattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotionRestriction.renderedDescriptionattribute defined at extensionpromotions.Generated method - Getter of theAbstractPromotionRestriction.restrictionTypeattribute defined at extensionpromotions.getRestrictionType(Locale loc) Generated method - Getter of theAbstractPromotionRestriction.restrictionTypeattribute defined at extensionpromotions.voidsetDescriptionPattern(String value) Generated method - Setter ofAbstractPromotionRestriction.descriptionPatternattribute defined at extensionpromotions.voidsetDescriptionPattern(String value, Locale loc) Generated method - Setter ofAbstractPromotionRestriction.descriptionPatternattribute defined at extensionpromotions.voidGenerated method - Setter ofAbstractPromotionRestriction.promotionattribute defined at extensionpromotions.Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
RESTRICTIONTYPE
Generated constant - Attribute key ofAbstractPromotionRestriction.restrictionTypeattribute defined at extensionpromotions.- See Also:
-
DESCRIPTIONPATTERN
Generated constant - Attribute key ofAbstractPromotionRestriction.descriptionPatternattribute defined at extensionpromotions.- See Also:
-
RENDEREDDESCRIPTION
Generated constant - Attribute key ofAbstractPromotionRestriction.renderedDescriptionattribute defined at extensionpromotions.- See Also:
-
PROMOTION
Generated constant - Attribute key ofAbstractPromotionRestriction.promotionattribute defined at extensionpromotions.- See Also:
-
-
Constructor Details
-
AbstractPromotionRestrictionModel
public AbstractPromotionRestrictionModel()Generated constructor - Default constructor for generic creation. -
AbstractPromotionRestrictionModel
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
AbstractPromotionRestrictionModel
@Deprecated(since="4.1.1", forRemoval=true) public AbstractPromotionRestrictionModel(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:
_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getDescriptionPattern
Generated method - Getter of theAbstractPromotionRestriction.descriptionPatternattribute defined at extensionpromotions.- Returns:
- the descriptionPattern - The description of the restriction (supports message pattern).
-
getDescriptionPattern
@Accessor(qualifier="descriptionPattern", type=GETTER) public String getDescriptionPattern(Locale loc) Generated method - Getter of theAbstractPromotionRestriction.descriptionPatternattribute defined at extensionpromotions.- Parameters:
loc- the value localization key- Returns:
- the descriptionPattern - The description of the restriction (supports message pattern).
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getPromotion
Generated method - Getter of theAbstractPromotionRestriction.promotionattribute defined at extensionpromotions.- Returns:
- the promotion - The promotion that this restriction is part of
-
getRenderedDescription
Generated method - Getter of theAbstractPromotionRestriction.renderedDescriptionattribute defined at extensionpromotions.- Returns:
- the renderedDescription - The readonly rendered description of this restriction.
-
getRestrictionType
Generated method - Getter of theAbstractPromotionRestriction.restrictionTypeattribute defined at extensionpromotions.- Returns:
- the restrictionType - The type of this restriction.
-
getRestrictionType
Generated method - Getter of theAbstractPromotionRestriction.restrictionTypeattribute defined at extensionpromotions.- Parameters:
loc- the value localization key- Returns:
- the restrictionType - The type of this restriction.
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setDescriptionPattern
@Accessor(qualifier="descriptionPattern", type=SETTER) public void setDescriptionPattern(String value) Generated method - Setter ofAbstractPromotionRestriction.descriptionPatternattribute defined at extensionpromotions.- Parameters:
value- the descriptionPattern - The description of the restriction (supports message pattern).
-
setDescriptionPattern
@Accessor(qualifier="descriptionPattern", type=SETTER) public void setDescriptionPattern(String value, Locale loc) Generated method - Setter ofAbstractPromotionRestriction.descriptionPatternattribute defined at extensionpromotions.- Parameters:
value- the descriptionPattern - The description of the restriction (supports message pattern).loc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setPromotion
@Accessor(qualifier="promotion", type=SETTER) public void setPromotion(AbstractPromotionModel value) Generated method - Setter ofAbstractPromotionRestriction.promotionattribute defined at extensionpromotions.- Parameters:
value- the promotion - The promotion that this restriction is part of
-