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:
java.io.Serializable
public class RuleBasedPromotionModel extends AbstractPromotionModel
Generated model class for type RuleBasedPromotion first defined at extension promotionengineservices.- 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_TYPECODEGenerated model type code constant.static java.lang.StringMESSAGEFIREDGenerated constant - Attribute key ofRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.static java.lang.StringPROMOTIONDESCRIPTIONGenerated constant - Attribute key ofRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.static java.lang.StringRULEGenerated constant - Attribute key ofRuleBasedPromotion.ruleattribute defined at extensionpromotionengineservices.static java.lang.StringRULEVERSIONGenerated constant - Attribute key ofRuleBasedPromotion.ruleVersionattribute defined at extensionpromotionengineservices.-
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 RuleBasedPromotionModel()Generated constructor - Default constructor for generic creation.RuleBasedPromotionModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextRuleBasedPromotionModel(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 parametersRuleBasedPromotionModel(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.lang.StringgetMessageFired()Generated method - Getter of theRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.java.lang.StringgetMessageFired(java.util.Locale loc)Generated method - Getter of theRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.java.lang.StringgetPromotionDescription()Generated method - Getter of theRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.java.lang.StringgetPromotionDescription(java.util.Locale loc)Generated method - Getter of theRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.AbstractRuleEngineRuleModelgetRule()Generated method - Getter of theRuleBasedPromotion.ruleattribute defined at extensionpromotionengineservices.java.lang.LonggetRuleVersion()Generated method - Getter of theRuleBasedPromotion.ruleVersionattribute defined at extensionpromotionengineservices.voidsetMessageFired(java.lang.String value)Generated method - Setter ofRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.voidsetMessageFired(java.lang.String value, java.util.Locale loc)Generated method - Setter ofRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.voidsetPromotionDescription(java.lang.String value)Generated method - Setter ofRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.voidsetPromotionDescription(java.lang.String value, java.util.Locale loc)Generated method - Setter ofRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.voidsetRule(AbstractRuleEngineRuleModel value)Generated method - Setter ofRuleBasedPromotion.ruleattribute defined at extensionpromotionengineservices.voidsetRuleVersion(java.lang.Long value)Generated method - Setter ofRuleBasedPromotion.ruleVersionattribute defined at extensionpromotionengineservices.-
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
-
MESSAGEFIRED
public static final java.lang.String MESSAGEFIRED
Generated constant - Attribute key ofRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.- See Also:
- Constant Field Values
-
RULE
public static final java.lang.String RULE
Generated constant - Attribute key ofRuleBasedPromotion.ruleattribute defined at extensionpromotionengineservices.- See Also:
- Constant Field Values
-
PROMOTIONDESCRIPTION
public static final java.lang.String PROMOTIONDESCRIPTION
Generated constant - Attribute key ofRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.- See Also:
- Constant Field Values
-
RULEVERSION
public static final java.lang.String RULEVERSION
Generated constant - Attribute key ofRuleBasedPromotion.ruleVersionattribute defined at extensionpromotionengineservices.- 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 parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_code- initial attribute declared by typeRuleBasedPromotionat extensionpromotionengineservices
-
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 parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_code- initial attribute declared by typeRuleBasedPromotionat extensionpromotionengineservices_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getMessageFired
@Accessor(qualifier="messageFired", type=GETTER) public java.lang.String getMessageFired()
Generated method - Getter of theRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.- 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 theRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.- 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 theRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.- 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 theRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.- 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
-
getRule
@Accessor(qualifier="rule", type=GETTER) public AbstractRuleEngineRuleModel getRule()
Generated method - Getter of theRuleBasedPromotion.ruleattribute defined at extensionpromotionengineservices.- Returns:
- the rule - The rule for this promotion.
-
getRuleVersion
@Accessor(qualifier="ruleVersion", type=GETTER) public java.lang.Long getRuleVersion()
Generated method - Getter of theRuleBasedPromotion.ruleVersionattribute defined at extensionpromotionengineservices.- Returns:
- the ruleVersion - applied rule version
-
setMessageFired
@Accessor(qualifier="messageFired", type=SETTER) public void setMessageFired(java.lang.String value)
Generated method - Setter ofRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.- 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 ofRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.- 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 ofRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.- 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 ofRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.- 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 ofRuleBasedPromotion.ruleattribute defined at extensionpromotionengineservices.- Parameters:
value- the rule - The rule for this promotion.
-
-