Interface InternationalMessageOverrideStrategy
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
SparseInternationalMessageOverrideStrategy,ThresholdCacheInternationalMessageOverrideStrategy
public interface InternationalMessageOverrideStrategy
extends org.springframework.core.Ordered
Provides international messages at both the standard site catalog and template catalog level, whichever is appropriate. This is
only meaningful in a multitenant scenario.
- Author:
- Jeff Fischer
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.i18n.service.LocalePairgetLocaleBasedOverride(String propertyName, Locale locale, String basicCacheKey) Retrieve the standard site override message, if applicableorg.broadleafcommerce.common.i18n.service.LocalePairgetLocaleBasedTemplateValue(String templateCacheKey, String propertyName, String localeCode, String localeCountryCode, String specificPropertyKey, String generalPropertyKey) Retrieve the template level message, if applicablebooleanvalidateTemplateProcessing(String standardCacheKey, String templateCacheKey) Whether or not a template version should be searched for.Methods inherited from interface org.springframework.core.Ordered
getOrder
-
Method Details
-
getLocaleBasedOverride
org.broadleafcommerce.common.i18n.service.LocalePair getLocaleBasedOverride(String propertyName, Locale locale, String basicCacheKey) Retrieve the standard site override message, if applicable- Parameters:
propertyName-locale-basicCacheKey-- Returns:
-
getLocaleBasedTemplateValue
org.broadleafcommerce.common.i18n.service.LocalePair getLocaleBasedTemplateValue(String templateCacheKey, String propertyName, String localeCode, String localeCountryCode, String specificPropertyKey, String generalPropertyKey) Retrieve the template level message, if applicable- Parameters:
templateCacheKey-propertyName-localeCode-localeCountryCode-specificPropertyKey-generalPropertyKey-- Returns:
-
validateTemplateProcessing
Whether or not a template version should be searched for. If false, then the system will return null for the message, should an override not be found.- Parameters:
standardCacheKey-templateCacheKey-- Returns:
-