Class PromotionResultModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.promotions.model.PromotionResultModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CachedPromotionResultModel
Generated model class for type PromotionResult first defined at extension promotions.
- 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 relation code constant for relationOrder2PromotionResultsRelationdefining source attributeorderin extensionpromotions.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofPromotionResult.actionsattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofPromotionResult.allPromotionActionsattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofPromotionResult.certaintyattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofPromotionResult.consumedEntriesattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofPromotionResult.customattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofPromotionResult.messageFiredattribute defined at extensionpromotionengineservices.static final StringGenerated constant - Attribute key ofPromotionResult.moduleVersionattribute defined at extensionpromotionengineservices.static final StringGenerated constant - Attribute key ofPromotionResult.orderattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofPromotionResult.orderCodeattribute defined at extensionpromotionengineservices.static final StringGenerated constant - Attribute key ofPromotionResult.promotionattribute defined at extensionpromotions.static final StringGenerated constant - Attribute key ofPromotionResult.rulesModuleNameattribute defined at extensionpromotionengineservices.static final StringGenerated constant - Attribute key ofPromotionResult.ruleVersionattribute defined at extensionpromotionengineservices.Fields 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.Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersPromotionResultModel(AbstractOrderModel _order, 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 parametersPromotionResultModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of thePromotionResult.actionsattribute defined at extensionpromotions.Generated method - Getter of thePromotionResult.allPromotionActionsattribute defined at extensionpromotions.Generated method - Getter of thePromotionResult.certaintyattribute defined at extensionpromotions.Generated method - Getter of thePromotionResult.consumedEntriesattribute defined at extensionpromotions.Generated method - Getter of thePromotionResult.customattribute defined at extensionpromotions.Generated method - Getter of thePromotionResult.messageFiredattribute defined at extensionpromotionengineservices.getMessageFired(Locale loc) Generated method - Getter of thePromotionResult.messageFiredattribute defined at extensionpromotionengineservices.Generated method - Getter of thePromotionResult.moduleVersionattribute defined at extensionpromotionengineservices.getOrder()Generated method - Getter of thePromotionResult.orderattribute defined at extensionpromotions.Generated method - Getter of thePromotionResult.orderCodeattribute defined at extensionpromotionengineservices.Generated method - Getter of thePromotionResult.promotionattribute defined at extensionpromotions.Generated method - Getter of thePromotionResult.rulesModuleNameattribute defined at extensionpromotionengineservices.Generated method - Getter of thePromotionResult.ruleVersionattribute defined at extensionpromotionengineservices.voidGenerated method - Setter ofPromotionResult.actionsattribute defined at extensionpromotions.voidGenerated method - Setter ofPromotionResult.allPromotionActionsattribute defined at extensionpromotions.voidsetCertainty(Float value) Generated method - Setter ofPromotionResult.certaintyattribute defined at extensionpromotions.voidGenerated method - Setter ofPromotionResult.consumedEntriesattribute defined at extensionpromotions.voidGenerated method - Setter ofPromotionResult.customattribute defined at extensionpromotions.voidsetMessageFired(String value) Generated method - Setter ofPromotionResult.messageFiredattribute defined at extensionpromotionengineservices.voidsetMessageFired(String value, Locale loc) Generated method - Setter ofPromotionResult.messageFiredattribute defined at extensionpromotionengineservices.voidsetModuleVersion(Long value) Generated method - Setter ofPromotionResult.moduleVersionattribute defined at extensionpromotionengineservices.voidsetOrder(AbstractOrderModel value) Generated method - Setter ofPromotionResult.orderattribute defined at extensionpromotions.voidsetOrderCode(String value) Generated method - Setter ofPromotionResult.orderCodeattribute defined at extensionpromotionengineservices.voidGenerated method - Setter ofPromotionResult.promotionattribute defined at extensionpromotions.voidsetRulesModuleName(String value) Generated method - Setter ofPromotionResult.rulesModuleNameattribute defined at extensionpromotionengineservices.voidsetRuleVersion(Long value) Generated method - Setter ofPromotionResult.ruleVersionattribute defined at extensionpromotionengineservices.Methods 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:
-
_ORDER2PROMOTIONRESULTSRELATION
Generated relation code constant for relationOrder2PromotionResultsRelationdefining source attributeorderin extensionpromotions.- See Also:
-
ACTIONS
Generated constant - Attribute key ofPromotionResult.actionsattribute defined at extensionpromotions.- See Also:
-
CONSUMEDENTRIES
Generated constant - Attribute key ofPromotionResult.consumedEntriesattribute defined at extensionpromotions.- See Also:
-
PROMOTION
Generated constant - Attribute key ofPromotionResult.promotionattribute defined at extensionpromotions.- See Also:
-
CERTAINTY
Generated constant - Attribute key ofPromotionResult.certaintyattribute defined at extensionpromotions.- See Also:
-
CUSTOM
Generated constant - Attribute key ofPromotionResult.customattribute defined at extensionpromotions.- See Also:
-
ORDER
Generated constant - Attribute key ofPromotionResult.orderattribute defined at extensionpromotions.- See Also:
-
ALLPROMOTIONACTIONS
Generated constant - Attribute key ofPromotionResult.allPromotionActionsattribute defined at extensionpromotions.- See Also:
-
RULESMODULENAME
Generated constant - Attribute key ofPromotionResult.rulesModuleNameattribute defined at extensionpromotionengineservices.- See Also:
-
MODULEVERSION
Generated constant - Attribute key ofPromotionResult.moduleVersionattribute defined at extensionpromotionengineservices.- See Also:
-
RULEVERSION
Generated constant - Attribute key ofPromotionResult.ruleVersionattribute defined at extensionpromotionengineservices.- See Also:
-
MESSAGEFIRED
Generated constant - Attribute key ofPromotionResult.messageFiredattribute defined at extensionpromotionengineservices.- See Also:
-
ORDERCODE
Generated constant - Attribute key ofPromotionResult.orderCodeattribute defined at extensionpromotionengineservices.- See Also:
-
-
Constructor Details
-
PromotionResultModel
public PromotionResultModel()Generated constructor - Default constructor for generic creation. -
PromotionResultModel
public PromotionResultModel(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
-
PromotionResultModel
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:
_order- initial attribute declared by typePromotionResultat extensionpromotions
-
PromotionResultModel
@Deprecated(since="4.1.1", forRemoval=true) public PromotionResultModel(AbstractOrderModel _order, 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:
_order- initial attribute declared by typePromotionResultat extensionpromotions_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getActions
@Accessor(qualifier="actions", type=GETTER) public Collection<AbstractPromotionActionModel> getActions()Generated method - Getter of thePromotionResult.actionsattribute defined at extensionpromotions. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the actions - List of actions
-
getAllPromotionActions
@Accessor(qualifier="allPromotionActions", type=GETTER) public Set<AbstractPromotionActionModel> getAllPromotionActions()Generated method - Getter of thePromotionResult.allPromotionActionsattribute defined at extensionpromotions. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the allPromotionActions
-
getCertainty
Generated method - Getter of thePromotionResult.certaintyattribute defined at extensionpromotions.- Returns:
- the certainty - Certainty
-
getConsumedEntries
@Accessor(qualifier="consumedEntries", type=GETTER) public Collection<PromotionOrderEntryConsumedModel> getConsumedEntries()Generated method - Getter of thePromotionResult.consumedEntriesattribute defined at extensionpromotions. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the consumedEntries - List of consumed entries
-
getCustom
Generated method - Getter of thePromotionResult.customattribute defined at extensionpromotions.- Returns:
- the custom - Custom data stored on this promotion result by the promotion.
-
getMessageFired
Generated method - Getter of thePromotionResult.messageFiredattribute defined at extensionpromotionengineservices.- Returns:
- the messageFired - fired promotion description message
-
getMessageFired
Generated method - Getter of thePromotionResult.messageFiredattribute defined at extensionpromotionengineservices.- Parameters:
loc- the value localization key- Returns:
- the messageFired - fired promotion description message
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getModuleVersion
Generated method - Getter of thePromotionResult.moduleVersionattribute defined at extensionpromotionengineservices.- Returns:
- the moduleVersion - applied module version
-
getOrder
Generated method - Getter of thePromotionResult.orderattribute defined at extensionpromotions.- Returns:
- the order
-
getOrderCode
Generated method - Getter of thePromotionResult.orderCodeattribute defined at extensionpromotionengineservices.- Returns:
- the orderCode - Order code
-
getPromotion
Generated method - Getter of thePromotionResult.promotionattribute defined at extensionpromotions.- Returns:
- the promotion - The promotion
-
getRulesModuleName
Generated method - Getter of thePromotionResult.rulesModuleNameattribute defined at extensionpromotionengineservices.- Returns:
- the rulesModuleName - applied rules module name
-
getRuleVersion
Generated method - Getter of thePromotionResult.ruleVersionattribute defined at extensionpromotionengineservices.- Returns:
- the ruleVersion - applied rule version
-
setActions
@Accessor(qualifier="actions", type=SETTER) public void setActions(Collection<AbstractPromotionActionModel> value) Generated method - Setter ofPromotionResult.actionsattribute defined at extensionpromotions.- Parameters:
value- the actions - List of actions
-
setAllPromotionActions
@Accessor(qualifier="allPromotionActions", type=SETTER) public void setAllPromotionActions(Set<AbstractPromotionActionModel> value) Generated method - Setter ofPromotionResult.allPromotionActionsattribute defined at extensionpromotions.- Parameters:
value- the allPromotionActions
-
setCertainty
Generated method - Setter ofPromotionResult.certaintyattribute defined at extensionpromotions.- Parameters:
value- the certainty - Certainty
-
setConsumedEntries
@Accessor(qualifier="consumedEntries", type=SETTER) public void setConsumedEntries(Collection<PromotionOrderEntryConsumedModel> value) Generated method - Setter ofPromotionResult.consumedEntriesattribute defined at extensionpromotions.- Parameters:
value- the consumedEntries - List of consumed entries
-
setCustom
Generated method - Setter ofPromotionResult.customattribute defined at extensionpromotions.- Parameters:
value- the custom - Custom data stored on this promotion result by the promotion.
-
setMessageFired
Generated method - Setter ofPromotionResult.messageFiredattribute defined at extensionpromotionengineservices.- Parameters:
value- the messageFired - fired promotion description message
-
setMessageFired
@Accessor(qualifier="messageFired", type=SETTER) public void setMessageFired(String value, Locale loc) Generated method - Setter ofPromotionResult.messageFiredattribute defined at extensionpromotionengineservices.- Parameters:
value- the messageFired - fired promotion description messageloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setModuleVersion
Generated method - Setter ofPromotionResult.moduleVersionattribute defined at extensionpromotionengineservices.- Parameters:
value- the moduleVersion - applied module version
-
setOrder
Generated method - Setter ofPromotionResult.orderattribute defined at extensionpromotions.- Parameters:
value- the order
-
setOrderCode
Generated method - Setter ofPromotionResult.orderCodeattribute defined at extensionpromotionengineservices.- Parameters:
value- the orderCode - Order code
-
setPromotion
@Accessor(qualifier="promotion", type=SETTER) public void setPromotion(AbstractPromotionModel value) Generated method - Setter ofPromotionResult.promotionattribute defined at extensionpromotions.- Parameters:
value- the promotion - The promotion
-
setRulesModuleName
Generated method - Setter ofPromotionResult.rulesModuleNameattribute defined at extensionpromotionengineservices.- Parameters:
value- the rulesModuleName - applied rules module name
-
setRuleVersion
Generated method - Setter ofPromotionResult.ruleVersionattribute defined at extensionpromotionengineservices.- Parameters:
value- the ruleVersion - applied rule version
-