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:
java.io.Serializable
- Direct Known Subclasses:
CachedPromotionResultModel
public class PromotionResultModel extends ItemModel
Generated model class for type PromotionResult first defined at extension promotions.- 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_ORDER2PROMOTIONRESULTSRELATIONGenerated relation code constant for relationOrder2PromotionResultsRelationdefining source attributeorderin extensionpromotions.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringACTIONSGenerated constant - Attribute key ofPromotionResult.actionsattribute defined at extensionpromotions.static java.lang.StringALLPROMOTIONACTIONSGenerated constant - Attribute key ofPromotionResult.allPromotionActionsattribute defined at extensionpromotions.static java.lang.StringCERTAINTYGenerated constant - Attribute key ofPromotionResult.certaintyattribute defined at extensionpromotions.static java.lang.StringCONSUMEDENTRIESGenerated constant - Attribute key ofPromotionResult.consumedEntriesattribute defined at extensionpromotions.static java.lang.StringCUSTOMGenerated constant - Attribute key ofPromotionResult.customattribute defined at extensionpromotions.static java.lang.StringMESSAGEFIREDGenerated constant - Attribute key ofPromotionResult.messageFiredattribute defined at extensionpromotionengineservices.static java.lang.StringMODULEVERSIONGenerated constant - Attribute key ofPromotionResult.moduleVersionattribute defined at extensionpromotionengineservices.static java.lang.StringORDERGenerated constant - Attribute key ofPromotionResult.orderattribute defined at extensionpromotions.static java.lang.StringORDERCODEGenerated constant - Attribute key ofPromotionResult.orderCodeattribute defined at extensionpromotionengineservices.static java.lang.StringPROMOTIONGenerated constant - Attribute key ofPromotionResult.promotionattribute defined at extensionpromotions.static java.lang.StringRULESMODULENAMEGenerated constant - Attribute key ofPromotionResult.rulesModuleNameattribute defined at extensionpromotionengineservices.static java.lang.StringRULEVERSIONGenerated 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, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description PromotionResultModel()Generated constructor - Default constructor for generic creation.PromotionResultModel(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(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<AbstractPromotionActionModel>getActions()Generated method - Getter of thePromotionResult.actionsattribute defined at extensionpromotions.java.util.Set<AbstractPromotionActionModel>getAllPromotionActions()Generated method - Getter of thePromotionResult.allPromotionActionsattribute defined at extensionpromotions.java.lang.FloatgetCertainty()Generated method - Getter of thePromotionResult.certaintyattribute defined at extensionpromotions.java.util.Collection<PromotionOrderEntryConsumedModel>getConsumedEntries()Generated method - Getter of thePromotionResult.consumedEntriesattribute defined at extensionpromotions.java.lang.StringgetCustom()Generated method - Getter of thePromotionResult.customattribute defined at extensionpromotions.java.lang.StringgetMessageFired()Generated method - Getter of thePromotionResult.messageFiredattribute defined at extensionpromotionengineservices.java.lang.StringgetMessageFired(java.util.Locale loc)Generated method - Getter of thePromotionResult.messageFiredattribute defined at extensionpromotionengineservices.java.lang.LonggetModuleVersion()Generated method - Getter of thePromotionResult.moduleVersionattribute defined at extensionpromotionengineservices.AbstractOrderModelgetOrder()Generated method - Getter of thePromotionResult.orderattribute defined at extensionpromotions.java.lang.StringgetOrderCode()Generated method - Getter of thePromotionResult.orderCodeattribute defined at extensionpromotionengineservices.AbstractPromotionModelgetPromotion()Generated method - Getter of thePromotionResult.promotionattribute defined at extensionpromotions.java.lang.StringgetRulesModuleName()Generated method - Getter of thePromotionResult.rulesModuleNameattribute defined at extensionpromotionengineservices.java.lang.LonggetRuleVersion()Generated method - Getter of thePromotionResult.ruleVersionattribute defined at extensionpromotionengineservices.voidsetActions(java.util.Collection<AbstractPromotionActionModel> value)Generated method - Setter ofPromotionResult.actionsattribute defined at extensionpromotions.voidsetAllPromotionActions(java.util.Set<AbstractPromotionActionModel> value)Generated method - Setter ofPromotionResult.allPromotionActionsattribute defined at extensionpromotions.voidsetCertainty(java.lang.Float value)Generated method - Setter ofPromotionResult.certaintyattribute defined at extensionpromotions.voidsetConsumedEntries(java.util.Collection<PromotionOrderEntryConsumedModel> value)Generated method - Setter ofPromotionResult.consumedEntriesattribute defined at extensionpromotions.voidsetCustom(java.lang.String value)Generated method - Setter ofPromotionResult.customattribute defined at extensionpromotions.voidsetMessageFired(java.lang.String value)Generated method - Setter ofPromotionResult.messageFiredattribute defined at extensionpromotionengineservices.voidsetMessageFired(java.lang.String value, java.util.Locale loc)Generated method - Setter ofPromotionResult.messageFiredattribute defined at extensionpromotionengineservices.voidsetModuleVersion(java.lang.Long value)Generated method - Setter ofPromotionResult.moduleVersionattribute defined at extensionpromotionengineservices.voidsetOrder(AbstractOrderModel value)Generated method - Setter ofPromotionResult.orderattribute defined at extensionpromotions.voidsetOrderCode(java.lang.String value)Generated method - Setter ofPromotionResult.orderCodeattribute defined at extensionpromotionengineservices.voidsetPromotion(AbstractPromotionModel value)Generated method - Setter ofPromotionResult.promotionattribute defined at extensionpromotions.voidsetRulesModuleName(java.lang.String value)Generated method - Setter ofPromotionResult.rulesModuleNameattribute defined at extensionpromotionengineservices.voidsetRuleVersion(java.lang.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, 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
-
_ORDER2PROMOTIONRESULTSRELATION
public static final java.lang.String _ORDER2PROMOTIONRESULTSRELATION
Generated relation code constant for relationOrder2PromotionResultsRelationdefining source attributeorderin extensionpromotions.- See Also:
- Constant Field Values
-
ACTIONS
public static final java.lang.String ACTIONS
Generated constant - Attribute key ofPromotionResult.actionsattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
CONSUMEDENTRIES
public static final java.lang.String CONSUMEDENTRIES
Generated constant - Attribute key ofPromotionResult.consumedEntriesattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
PROMOTION
public static final java.lang.String PROMOTION
Generated constant - Attribute key ofPromotionResult.promotionattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
CERTAINTY
public static final java.lang.String CERTAINTY
Generated constant - Attribute key ofPromotionResult.certaintyattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
CUSTOM
public static final java.lang.String CUSTOM
Generated constant - Attribute key ofPromotionResult.customattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
ORDER
public static final java.lang.String ORDER
Generated constant - Attribute key ofPromotionResult.orderattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
ALLPROMOTIONACTIONS
public static final java.lang.String ALLPROMOTIONACTIONS
Generated constant - Attribute key ofPromotionResult.allPromotionActionsattribute defined at extensionpromotions.- See Also:
- Constant Field Values
-
RULESMODULENAME
public static final java.lang.String RULESMODULENAME
Generated constant - Attribute key ofPromotionResult.rulesModuleNameattribute defined at extensionpromotionengineservices.- See Also:
- Constant Field Values
-
MODULEVERSION
public static final java.lang.String MODULEVERSION
Generated constant - Attribute key ofPromotionResult.moduleVersionattribute defined at extensionpromotionengineservices.- See Also:
- Constant Field Values
-
RULEVERSION
public static final java.lang.String RULEVERSION
Generated constant - Attribute key ofPromotionResult.ruleVersionattribute defined at extensionpromotionengineservices.- See Also:
- Constant Field Values
-
MESSAGEFIRED
public static final java.lang.String MESSAGEFIRED
Generated constant - Attribute key ofPromotionResult.messageFiredattribute defined at extensionpromotionengineservices.- See Also:
- Constant Field Values
-
ORDERCODE
public static final java.lang.String ORDERCODE
Generated constant - Attribute key ofPromotionResult.orderCodeattribute defined at extensionpromotionengineservices.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PromotionResultModel
public PromotionResultModel()
Generated constructor - Default constructor for generic creation.
-
PromotionResultModel
public PromotionResultModel(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(since="4.1.1", forRemoval=true) public PromotionResultModel(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:
_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getActions
@Accessor(qualifier="actions", type=GETTER) public java.util.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 java.util.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
@Accessor(qualifier="certainty", type=GETTER) public java.lang.Float getCertainty()
Generated method - Getter of thePromotionResult.certaintyattribute defined at extensionpromotions.- Returns:
- the certainty - Certainty
-
getConsumedEntries
@Accessor(qualifier="consumedEntries", type=GETTER) public java.util.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
@Accessor(qualifier="custom", type=GETTER) public java.lang.String getCustom()
Generated method - Getter of thePromotionResult.customattribute defined at extensionpromotions.- Returns:
- the custom - Custom data stored on this promotion result by the promotion.
-
getMessageFired
@Accessor(qualifier="messageFired", type=GETTER) public java.lang.String getMessageFired()
Generated method - Getter of thePromotionResult.messageFiredattribute defined at extensionpromotionengineservices.- Returns:
- the messageFired - fired promotion description message
-
getMessageFired
@Accessor(qualifier="messageFired", type=GETTER) public java.lang.String getMessageFired(java.util.Locale loc)
Generated method - Getter of thePromotionResult.messageFiredattribute defined at extensionpromotionengineservices.- Parameters:
loc- the value localization key- Returns:
- the messageFired - fired promotion description message
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getModuleVersion
@Accessor(qualifier="moduleVersion", type=GETTER) public java.lang.Long getModuleVersion()
Generated method - Getter of thePromotionResult.moduleVersionattribute defined at extensionpromotionengineservices.- Returns:
- the moduleVersion - applied module version
-
getOrder
@Accessor(qualifier="order", type=GETTER) public AbstractOrderModel getOrder()
Generated method - Getter of thePromotionResult.orderattribute defined at extensionpromotions.- Returns:
- the order
-
getOrderCode
@Accessor(qualifier="orderCode", type=GETTER) public java.lang.String getOrderCode()
Generated method - Getter of thePromotionResult.orderCodeattribute defined at extensionpromotionengineservices.- Returns:
- the orderCode - Order code
-
getPromotion
@Accessor(qualifier="promotion", type=GETTER) public AbstractPromotionModel getPromotion()
Generated method - Getter of thePromotionResult.promotionattribute defined at extensionpromotions.- Returns:
- the promotion - The promotion
-
getRulesModuleName
@Accessor(qualifier="rulesModuleName", type=GETTER) public java.lang.String getRulesModuleName()
Generated method - Getter of thePromotionResult.rulesModuleNameattribute defined at extensionpromotionengineservices.- Returns:
- the rulesModuleName - applied rules module name
-
getRuleVersion
@Accessor(qualifier="ruleVersion", type=GETTER) public java.lang.Long 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(java.util.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(java.util.Set<AbstractPromotionActionModel> value)
Generated method - Setter ofPromotionResult.allPromotionActionsattribute defined at extensionpromotions.- Parameters:
value- the allPromotionActions
-
setCertainty
@Accessor(qualifier="certainty", type=SETTER) public void setCertainty(java.lang.Float value)
Generated method - Setter ofPromotionResult.certaintyattribute defined at extensionpromotions.- Parameters:
value- the certainty - Certainty
-
setConsumedEntries
@Accessor(qualifier="consumedEntries", type=SETTER) public void setConsumedEntries(java.util.Collection<PromotionOrderEntryConsumedModel> value)
Generated method - Setter ofPromotionResult.consumedEntriesattribute defined at extensionpromotions.- Parameters:
value- the consumedEntries - List of consumed entries
-
setCustom
@Accessor(qualifier="custom", type=SETTER) public void setCustom(java.lang.String value)
Generated method - Setter ofPromotionResult.customattribute defined at extensionpromotions.- Parameters:
value- the custom - Custom data stored on this promotion result by the promotion.
-
setMessageFired
@Accessor(qualifier="messageFired", type=SETTER) public void setMessageFired(java.lang.String value)
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(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofPromotionResult.messageFiredattribute defined at extensionpromotionengineservices.- Parameters:
value- the messageFired - fired promotion description messageloc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setModuleVersion
@Accessor(qualifier="moduleVersion", type=SETTER) public void setModuleVersion(java.lang.Long value)
Generated method - Setter ofPromotionResult.moduleVersionattribute defined at extensionpromotionengineservices.- Parameters:
value- the moduleVersion - applied module version
-
setOrder
@Accessor(qualifier="order", type=SETTER) public void setOrder(AbstractOrderModel value)
Generated method - Setter ofPromotionResult.orderattribute defined at extensionpromotions.- Parameters:
value- the order
-
setOrderCode
@Accessor(qualifier="orderCode", type=SETTER) public void setOrderCode(java.lang.String value)
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
@Accessor(qualifier="rulesModuleName", type=SETTER) public void setRulesModuleName(java.lang.String value)
Generated method - Setter ofPromotionResult.rulesModuleNameattribute defined at extensionpromotionengineservices.- Parameters:
value- the rulesModuleName - applied rules module name
-
-