Interface TranslationOverrideStrategy
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
SparseTranslationOverrideStrategy
,ThresholdCacheTranslationOverrideStrategy
public interface TranslationOverrideStrategy
extends org.springframework.core.Ordered
Provides translations 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 TypeMethodDescriptiongetLocaleBasedOverride
(String property, TranslatedEntity entityType, String entityId, String localeCode, String localeCountryCode, String basicCacheKey) Retrieve the standard site override translation, if applicablegetLocaleBasedTemplateValue
(String templateCacheKey, String property, TranslatedEntity entityType, String entityId, String localeCode, String localeCountryCode, String specificPropertyKey, String generalPropertyKey) Retrieve the template level translation, if applicableboolean
validateTemplateProcessing
(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
LocalePair getLocaleBasedOverride(String property, TranslatedEntity entityType, String entityId, String localeCode, String localeCountryCode, String basicCacheKey) Retrieve the standard site override translation, if applicable- Parameters:
property
-entityType
-entityId
-localeCode
-localeCountryCode
-basicCacheKey
-- Returns:
-
getLocaleBasedTemplateValue
LocalePair getLocaleBasedTemplateValue(String templateCacheKey, String property, TranslatedEntity entityType, String entityId, String localeCode, String localeCountryCode, String specificPropertyKey, String generalPropertyKey) Retrieve the template level translation, if applicable- Parameters:
templateCacheKey
-property
-entityType
-entityId
-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 translation, should an override not be found.- Parameters:
standardCacheKey
-templateCacheKey
-- Returns:
-