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
_TYPECODE
Generated model type code constant.static java.lang.String
MESSAGEFIRED
Generated constant - Attribute key ofRuleBasedPromotion.messageFired
attribute defined at extensionpromotionengineservices
.static java.lang.String
PROMOTIONDESCRIPTION
Generated constant - Attribute key ofRuleBasedPromotion.promotionDescription
attribute defined at extensionpromotionengineservices
.static java.lang.String
RULE
Generated constant - Attribute key ofRuleBasedPromotion.rule
attribute defined at extensionpromotionengineservices
.static java.lang.String
RULEVERSION
Generated constant - Attribute key ofRuleBasedPromotion.ruleVersion
attribute 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.String
getMessageFired()
Generated method - Getter of theRuleBasedPromotion.messageFired
attribute defined at extensionpromotionengineservices
.java.lang.String
getMessageFired(java.util.Locale loc)
Generated method - Getter of theRuleBasedPromotion.messageFired
attribute defined at extensionpromotionengineservices
.java.lang.String
getPromotionDescription()
Generated method - Getter of theRuleBasedPromotion.promotionDescription
attribute defined at extensionpromotionengineservices
.java.lang.String
getPromotionDescription(java.util.Locale loc)
Generated method - Getter of theRuleBasedPromotion.promotionDescription
attribute defined at extensionpromotionengineservices
.AbstractRuleEngineRuleModel
getRule()
Generated method - Getter of theRuleBasedPromotion.rule
attribute defined at extensionpromotionengineservices
.java.lang.Long
getRuleVersion()
Generated method - Getter of theRuleBasedPromotion.ruleVersion
attribute defined at extensionpromotionengineservices
.void
setMessageFired(java.lang.String value)
Generated method - Setter ofRuleBasedPromotion.messageFired
attribute defined at extensionpromotionengineservices
.void
setMessageFired(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofRuleBasedPromotion.messageFired
attribute defined at extensionpromotionengineservices
.void
setPromotionDescription(java.lang.String value)
Generated method - Setter ofRuleBasedPromotion.promotionDescription
attribute defined at extensionpromotionengineservices
.void
setPromotionDescription(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofRuleBasedPromotion.promotionDescription
attribute defined at extensionpromotionengineservices
.void
setRule(AbstractRuleEngineRuleModel value)
Generated method - Setter ofRuleBasedPromotion.rule
attribute defined at extensionpromotionengineservices
.void
setRuleVersion(java.lang.Long value)
Generated method - Setter ofRuleBasedPromotion.ruleVersion
attribute 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.messageFired
attribute defined at extensionpromotionengineservices
.- See Also:
- Constant Field Values
-
RULE
public static final java.lang.String RULE
Generated constant - Attribute key ofRuleBasedPromotion.rule
attribute defined at extensionpromotionengineservices
.- See Also:
- Constant Field Values
-
PROMOTIONDESCRIPTION
public static final java.lang.String PROMOTIONDESCRIPTION
Generated constant - Attribute key ofRuleBasedPromotion.promotionDescription
attribute defined at extensionpromotionengineservices
.- See Also:
- Constant Field Values
-
RULEVERSION
public static final java.lang.String RULEVERSION
Generated constant - Attribute key ofRuleBasedPromotion.ruleVersion
attribute 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 typeRuleBasedPromotion
at 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 typeRuleBasedPromotion
at extensionpromotionengineservices
_owner
- initial attribute declared by typeItem
at extensioncore
-
-
Method Detail
-
getMessageFired
@Accessor(qualifier="messageFired", type=GETTER) public java.lang.String getMessageFired()
Generated method - Getter of theRuleBasedPromotion.messageFired
attribute 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.messageFired
attribute 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.promotionDescription
attribute 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.promotionDescription
attribute 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.rule
attribute 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.ruleVersion
attribute 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.messageFired
attribute 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.messageFired
attribute 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.promotionDescription
attribute 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.promotionDescription
attribute 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.rule
attribute defined at extensionpromotionengineservices
.- Parameters:
value
- the rule - The rule for this promotion.
-
-