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
Generated model class for type RuleBasedPromotion first defined at extension promotionengineservices.
- 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
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.static final StringGenerated constant - Attribute key ofRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.static final StringGenerated constant - Attribute key ofRuleBasedPromotion.ruleattribute defined at extensionpromotionengineservices.static final StringGenerated 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, TITLEFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.RuleBasedPromotionModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing contextRuleBasedPromotionModel(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(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
Modifier and TypeMethodDescriptionGenerated method - Getter of theRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.getMessageFired(Locale loc) Generated method - Getter of theRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.Generated method - Getter of theRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.Generated method - Getter of theRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.getRule()Generated method - Getter of theRuleBasedPromotion.ruleattribute defined at extensionpromotionengineservices.Generated method - Getter of theRuleBasedPromotion.ruleVersionattribute defined at extensionpromotionengineservices.voidsetMessageFired(String value) Generated method - Setter ofRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.voidsetMessageFired(String value, Locale loc) Generated method - Setter ofRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.voidsetPromotionDescription(String value) Generated method - Setter ofRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.voidsetPromotionDescription(String value, Locale loc) Generated method - Setter ofRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.voidGenerated method - Setter ofRuleBasedPromotion.ruleattribute defined at extensionpromotionengineservices.voidsetRuleVersion(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, setTitleMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
MESSAGEFIRED
Generated constant - Attribute key ofRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.- See Also:
-
RULE
Generated constant - Attribute key ofRuleBasedPromotion.ruleattribute defined at extensionpromotionengineservices.- See Also:
-
PROMOTIONDESCRIPTION
Generated constant - Attribute key ofRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.- See Also:
-
RULEVERSION
Generated constant - Attribute key ofRuleBasedPromotion.ruleVersionattribute defined at extensionpromotionengineservices.- 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, 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(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 Details
-
getMessageFired
Generated method - Getter of theRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.- Returns:
- the messageFired - Message for fired promotion.
-
getMessageFired
Generated method - Getter of theRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.- 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
Generated method - Getter of theRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.- Returns:
- the promotionDescription - Localized description of promotion.
-
getPromotionDescription
@Accessor(qualifier="promotionDescription", type=GETTER) public String getPromotionDescription(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:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getRule
Generated method - Getter of theRuleBasedPromotion.ruleattribute defined at extensionpromotionengineservices.- Returns:
- the rule - The rule for this promotion.
-
getRuleVersion
Generated method - Getter of theRuleBasedPromotion.ruleVersionattribute defined at extensionpromotionengineservices.- Returns:
- the ruleVersion - applied rule version
-
setMessageFired
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(String value, Locale loc) Generated method - Setter ofRuleBasedPromotion.messageFiredattribute defined at extensionpromotionengineservices.- 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 ofRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.- Parameters:
value- the promotionDescription - Localized description of promotion.
-
setPromotionDescription
@Accessor(qualifier="promotionDescription", type=SETTER) public void setPromotionDescription(String value, Locale loc) Generated method - Setter ofRuleBasedPromotion.promotionDescriptionattribute defined at extensionpromotionengineservices.- 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
Generated method - Setter ofRuleBasedPromotion.ruleattribute defined at extensionpromotionengineservices.- Parameters:
value- the rule - The rule for this promotion.
-
setRuleVersion
Generated method - Setter ofRuleBasedPromotion.ruleVersionattribute defined at extensionpromotionengineservices.- Parameters:
value- the ruleVersion - applied rule version
-