Class DefaultListResolutionStrategy
java.lang.Object
de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultListResolutionStrategy
- All Implemented Interfaces:
PromotionMessageParameterResolutionStrategy
public class DefaultListResolutionStrategy
extends Object
implements PromotionMessageParameterResolutionStrategy
DefaultListResolutionStrategy resolves the given
RuleParameterData.getValue() into a list of values that are resolved
by dedicated configured PromotionMessageParameterResolutionStrategy-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RuleParameterDatacreateRuleParameterData(RuleParameterData source, Object value) protected ConfigurationServicegetValue(RuleParameterData data, PromotionResultModel promotionResult, Locale locale) resolves the givenRuleParameterDatainto a displayable Object.protected StringitemValue(PromotionResultModel promotionResult, Locale locale, RuleParameterData newData) protected StringvoidsetConfigurationService(ConfigurationService configurationService) voidsetResolutionStrategy(PromotionMessageParameterResolutionStrategy resolutionStrategy) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.promotionengineservices.promotionengine.PromotionMessageParameterResolutionStrategy
getReplacedParameter
-
Field Details
-
LIST_ITEMS_SEPARATOR_KEY
- See Also:
-
-
Constructor Details
-
DefaultListResolutionStrategy
public DefaultListResolutionStrategy()
-
-
Method Details
-
getValue
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 String itemValue(PromotionResultModel promotionResult, Locale locale, RuleParameterData newData) -
createRuleParameterData
-
getResolutionStrategy
-
setResolutionStrategy
-
getConfigurationService
-
setConfigurationService
-
joiningSeparator
-