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
  • 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

      boolean validateTemplateProcessing(String standardCacheKey, String templateCacheKey)
      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: