public interface TranslationSupport
TranslationService functionality, primarily in support of TranslationOverrideStrategy instances.| Modifier and Type | Method and Description | 
|---|---|
| Translation | findBestTemplateTranslation(String specificPropertyKey,
                           String generalPropertyKey,
                           Map<String,Map<String,Translation>> propertyTranslationMap,
                           String entityId)Find the most appropriate translation in the map. | 
| javax.cache.Cache<String,Object> | getCache()Retrieve the backing Cache instance | 
| String | getCacheKey(ResultType resultType,
           TranslatedEntity entityType)Build a cache key | 
| List<String> | getCacheKeyListForTemplateSite(String propertyName)Returns a list of cacheKeys for a template site | 
| int | getTemplateThresholdForFullCache()Retrieve the threshold under which the full list of template catalog translations are cached. | 
| int | getThresholdForFullCache()Retrieve the threshold under which the full list of standard site translation overrides are cached. | 
| StandardCacheItem | lookupTranslationFromMap(String key,
                        Map<String,Map<String,StandardCacheItem>> propertyTranslationMap,
                        String entityId)Retrieve a cached translation from an individual property translation map retrieved from the cache. | 
| void | setTemplateThresholdForFullCache(int templateThresholdForFullCache) | 
| void | setThresholdForFullCache(int thresholdForFullCache) | 
StandardCacheItem lookupTranslationFromMap(String key, Map<String,Map<String,StandardCacheItem>> propertyTranslationMap, String entityId)
key - propertyTranslationMap - entityId - List<String> getCacheKeyListForTemplateSite(String propertyName)
propertyName - int getThresholdForFullCache()
TranslationServiceImpl.thresholdForFullCache for more information on setting the value.void setThresholdForFullCache(int thresholdForFullCache)
int getTemplateThresholdForFullCache()
TranslationServiceImpl.templateThresholdForFullCache for more information on setting the value.void setTemplateThresholdForFullCache(int templateThresholdForFullCache)
Translation findBestTemplateTranslation(String specificPropertyKey, String generalPropertyKey, Map<String,Map<String,Translation>> propertyTranslationMap, String entityId)
specificPropertyKey - generalPropertyKey - propertyTranslationMap - entityId - String getCacheKey(ResultType resultType, TranslatedEntity entityType)
resultType - entityType - Copyright © 2020. All rights reserved.