Class RuleBasedPromotionModel

  • All Implemented Interfaces:
    java.io.Serializable

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

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • MESSAGEFIRED

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

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

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

        public static final java.lang.String RULEVERSION
        Generated constant - Attribute key of RuleBasedPromotion.ruleVersion attribute defined at extension promotionengineservices.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RuleBasedPromotionModel

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

        public RuleBasedPromotionModel​(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​(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 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​(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
        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 Detail

      • getMessageFired

        @Accessor(qualifier="messageFired",
                  type=GETTER)
        public java.lang.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 java.lang.String getMessageFired​(java.util.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:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • getPromotionDescription

        @Accessor(qualifier="promotionDescription",
                  type=GETTER)
        public java.lang.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 java.lang.String getPromotionDescription​(java.util.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:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • getRuleVersion

        @Accessor(qualifier="ruleVersion",
                  type=GETTER)
        public java.lang.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​(java.lang.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​(java.lang.String value,
                                    java.util.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:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • setPromotionDescription

        @Accessor(qualifier="promotionDescription",
                  type=SETTER)
        public void setPromotionDescription​(java.lang.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​(java.lang.String value,
                                            java.util.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:
        java.lang.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​(java.lang.Long value)
        Generated method - Setter of RuleBasedPromotion.ruleVersion attribute defined at extension promotionengineservices.
        Parameters:
        value - the ruleVersion - applied rule version