Class DefaultListResolutionStrategy
- java.lang.Object
-
- de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultListResolutionStrategy
-
- All Implemented Interfaces:
PromotionMessageParameterResolutionStrategy
public class DefaultListResolutionStrategy extends java.lang.Object implements PromotionMessageParameterResolutionStrategy
DefaultListResolutionStrategy resolves the givenRuleParameterData.getValue()into a list of values that are resolved by dedicated configuredPromotionMessageParameterResolutionStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringLIST_ITEMS_SEPARATOR_KEY
-
Constructor Summary
Constructors Constructor Description DefaultListResolutionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RuleParameterDatacreateRuleParameterData(RuleParameterData source, java.lang.Object value)protected ConfigurationServicegetConfigurationService()protected PromotionMessageParameterResolutionStrategygetResolutionStrategy()java.lang.StringgetValue(RuleParameterData data, PromotionResultModel promotionResult, java.util.Locale locale)resolves the givenRuleParameterDatainto a displayable Object.protected java.lang.StringitemValue(PromotionResultModel promotionResult, java.util.Locale locale, RuleParameterData newData)protected java.lang.StringjoiningSeparator()voidsetConfigurationService(ConfigurationService configurationService)voidsetResolutionStrategy(PromotionMessageParameterResolutionStrategy resolutionStrategy)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.promotionengineservices.promotionengine.PromotionMessageParameterResolutionStrategy
getReplacedParameter
-
-
-
-
Field Detail
-
LIST_ITEMS_SEPARATOR_KEY
protected static final java.lang.String LIST_ITEMS_SEPARATOR_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getValue
public java.lang.String getValue(RuleParameterData data, PromotionResultModel promotionResult, java.util.Locale locale)
Description copied from interface:PromotionMessageParameterResolutionStrategyresolves the givenRuleParameterDatainto a displayable Object.- Specified by:
getValuein interfacePromotionMessageParameterResolutionStrategy- Parameters:
data- the rule parameter to resolvepromotionResult- the promotion resultlocale- the locale- Returns:
- an object (to be displayed via
#toString()
-
itemValue
protected java.lang.String itemValue(PromotionResultModel promotionResult, java.util.Locale locale, RuleParameterData newData)
-
createRuleParameterData
protected RuleParameterData createRuleParameterData(RuleParameterData source, java.lang.Object value)
-
getResolutionStrategy
protected PromotionMessageParameterResolutionStrategy getResolutionStrategy()
-
setResolutionStrategy
public void setResolutionStrategy(PromotionMessageParameterResolutionStrategy resolutionStrategy)
-
getConfigurationService
protected ConfigurationService getConfigurationService()
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
joiningSeparator
protected java.lang.String joiningSeparator()
-
-