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

public class AbstractPromotionRestrictionModel extends ItemModel
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

    de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Generated model type code constant.
    static final String
    Generated constant - Attribute key of AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions.
    static final String
    Generated constant - Attribute key of AbstractPromotionRestriction.promotion attribute defined at extension promotions.
    static final String
    Generated constant - Attribute key of AbstractPromotionRestriction.renderedDescription attribute defined at extension promotions.
    static final String
    Generated constant - Attribute key of AbstractPromotionRestriction.restrictionType attribute defined at extension promotions.

    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
    Generated 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 parameters
    AbstractPromotionRestrictionModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
    Generated constructor - Default constructor for creation with existing context
  • Method Summary

    Modifier and Type
    Method
    Description
    Generated method - Getter of the AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions.
    Generated method - Getter of the AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions.
    Generated method - Getter of the AbstractPromotionRestriction.promotion attribute defined at extension promotions.
    Generated method - Getter of the AbstractPromotionRestriction.renderedDescription attribute defined at extension promotions.
    Generated method - Getter of the AbstractPromotionRestriction.restrictionType attribute defined at extension promotions.
    Generated method - Getter of the AbstractPromotionRestriction.restrictionType attribute defined at extension promotions.
    void
    Generated method - Setter of AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions.
    void
    Generated method - Setter of AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions.
    void
    Generated method - Setter of AbstractPromotionRestriction.promotion attribute defined at extension promotions.

    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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • RESTRICTIONTYPE

      public static final String RESTRICTIONTYPE
      Generated constant - Attribute key of AbstractPromotionRestriction.restrictionType attribute defined at extension promotions.
      See Also:
    • DESCRIPTIONPATTERN

      public static final String DESCRIPTIONPATTERN
      Generated constant - Attribute key of AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions.
      See Also:
    • RENDEREDDESCRIPTION

      public static final String RENDEREDDESCRIPTION
      Generated constant - Attribute key of AbstractPromotionRestriction.renderedDescription attribute defined at extension promotions.
      See Also:
    • PROMOTION

      public static final String PROMOTION
      Generated constant - Attribute key of AbstractPromotionRestriction.promotion attribute defined at extension promotions.
      See Also:
  • Constructor Details

    • AbstractPromotionRestrictionModel

      public AbstractPromotionRestrictionModel()
      Generated constructor - Default constructor for generic creation.
    • AbstractPromotionRestrictionModel

      public AbstractPromotionRestrictionModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
      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 parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getDescriptionPattern

      @Accessor(qualifier="descriptionPattern", type=GETTER) public String getDescriptionPattern()
      Generated method - Getter of the AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions.
      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 the AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions.
      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

      @Accessor(qualifier="promotion", type=GETTER) public AbstractPromotionModel getPromotion()
      Generated method - Getter of the AbstractPromotionRestriction.promotion attribute defined at extension promotions.
      Returns:
      the promotion - The promotion that this restriction is part of
    • getRenderedDescription

      @Accessor(qualifier="renderedDescription", type=GETTER) public String getRenderedDescription()
      Generated method - Getter of the AbstractPromotionRestriction.renderedDescription attribute defined at extension promotions.
      Returns:
      the renderedDescription - The readonly rendered description of this restriction.
    • getRestrictionType

      @Accessor(qualifier="restrictionType", type=GETTER) public String getRestrictionType()
      Generated method - Getter of the AbstractPromotionRestriction.restrictionType attribute defined at extension promotions.
      Returns:
      the restrictionType - The type of this restriction.
    • getRestrictionType

      @Accessor(qualifier="restrictionType", type=GETTER) public String getRestrictionType(Locale loc)
      Generated method - Getter of the AbstractPromotionRestriction.restrictionType attribute defined at extension promotions.
      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 of AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions.
      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 of AbstractPromotionRestriction.descriptionPattern attribute defined at extension promotions.
      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 of AbstractPromotionRestriction.promotion attribute defined at extension promotions.
      Parameters:
      value - the promotion - The promotion that this restriction is part of