Class RuleBasedPromotionModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.promotions.model.AbstractPromotionModel
de.hybris.platform.promotionengineservices.model.RuleBasedPromotionModel
All Implemented Interfaces:
Serializable

public class RuleBasedPromotionModel extends AbstractPromotionModel
Generated model class for type RuleBasedPromotion first defined at extension promotionengineservices.
See Also:
  • Field Details

    • _TYPECODE

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

      public static final String MESSAGEFIRED
      Generated constant - Attribute key of RuleBasedPromotion.messageFired attribute defined at extension promotionengineservices.
      See Also:
    • RULE

      public static final String RULE
      Generated constant - Attribute key of RuleBasedPromotion.rule attribute defined at extension promotionengineservices.
      See Also:
    • PROMOTIONDESCRIPTION

      public static final String PROMOTIONDESCRIPTION
      Generated constant - Attribute key of RuleBasedPromotion.promotionDescription attribute defined at extension promotionengineservices.
      See Also:
    • RULEVERSION

      public static final String RULEVERSION
      Generated constant - Attribute key of RuleBasedPromotion.ruleVersion attribute defined at extension promotionengineservices.
      See Also:
  • Constructor Details

    • RuleBasedPromotionModel

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

      public RuleBasedPromotionModel(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
    • RuleBasedPromotionModel

      @Deprecated(since="4.1.1", forRemoval=true) public RuleBasedPromotionModel(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 parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _code - initial attribute declared by type RuleBasedPromotion at extension promotionengineservices
    • RuleBasedPromotionModel

      @Deprecated(since="4.1.1", forRemoval=true) public RuleBasedPromotionModel(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
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _code - initial attribute declared by type RuleBasedPromotion at extension promotionengineservices
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getMessageFired

      @Accessor(qualifier="messageFired", type=GETTER) public String getMessageFired()
      Generated method - Getter of the RuleBasedPromotion.messageFired attribute defined at extension promotionengineservices.
      Returns:
      the messageFired - Message for fired promotion.
    • getMessageFired

      @Accessor(qualifier="messageFired", type=GETTER) public String getMessageFired(Locale loc)
      Generated method - Getter of the RuleBasedPromotion.messageFired attribute defined at extension promotionengineservices.
      Parameters:
      loc - the value localization key
      Returns:
      the messageFired - Message for fired promotion.
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getPromotionDescription

      @Accessor(qualifier="promotionDescription", type=GETTER) public String getPromotionDescription()
      Generated method - Getter of the RuleBasedPromotion.promotionDescription attribute defined at extension promotionengineservices.
      Returns:
      the promotionDescription - Localized description of promotion.
    • getPromotionDescription

      @Accessor(qualifier="promotionDescription", type=GETTER) public String getPromotionDescription(Locale loc)
      Generated method - Getter of the RuleBasedPromotion.promotionDescription attribute defined at extension promotionengineservices.
      Parameters:
      loc - the value localization key
      Returns:
      the promotionDescription - Localized description of promotion.
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getRule

      @Accessor(qualifier="rule", type=GETTER) public AbstractRuleEngineRuleModel getRule()
      Generated method - Getter of the RuleBasedPromotion.rule attribute defined at extension promotionengineservices.
      Returns:
      the rule - The rule for this promotion.
    • getRuleVersion

      @Accessor(qualifier="ruleVersion", type=GETTER) public Long getRuleVersion()
      Generated method - Getter of the RuleBasedPromotion.ruleVersion attribute defined at extension promotionengineservices.
      Returns:
      the ruleVersion - applied rule version
    • setMessageFired

      @Accessor(qualifier="messageFired", type=SETTER) public void setMessageFired(String value)
      Generated method - Setter of RuleBasedPromotion.messageFired attribute defined at extension promotionengineservices.
      Parameters:
      value - the messageFired - Message for fired promotion.
    • setMessageFired

      @Accessor(qualifier="messageFired", type=SETTER) public void setMessageFired(String value, Locale loc)
      Generated method - Setter of RuleBasedPromotion.messageFired attribute defined at extension promotionengineservices.
      Parameters:
      value - the messageFired - Message for fired promotion.
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setPromotionDescription

      @Accessor(qualifier="promotionDescription", type=SETTER) public void setPromotionDescription(String value)
      Generated method - Setter of RuleBasedPromotion.promotionDescription attribute defined at extension promotionengineservices.
      Parameters:
      value - the promotionDescription - Localized description of promotion.
    • setPromotionDescription

      @Accessor(qualifier="promotionDescription", type=SETTER) public void setPromotionDescription(String value, Locale loc)
      Generated method - Setter of RuleBasedPromotion.promotionDescription attribute defined at extension promotionengineservices.
      Parameters:
      value - the promotionDescription - Localized description of promotion.
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setRule

      @Accessor(qualifier="rule", type=SETTER) public void setRule(AbstractRuleEngineRuleModel value)
      Generated method - Setter of RuleBasedPromotion.rule attribute defined at extension promotionengineservices.
      Parameters:
      value - the rule - The rule for this promotion.
    • setRuleVersion

      @Accessor(qualifier="ruleVersion", type=SETTER) public void setRuleVersion(Long value)
      Generated method - Setter of RuleBasedPromotion.ruleVersion attribute defined at extension promotionengineservices.
      Parameters:
      value - the ruleVersion - applied rule version