Modifier and Type | Method and Description |
---|---|
Long |
TranslationDaoImpl.countTranslationEntries(TranslatedEntity entityType,
ResultType stage) |
Long |
TranslationDao.countTranslationEntries(TranslatedEntity entityType,
ResultType stage)
Count the number of translations for the given params.
|
String |
TranslationDaoImpl.getEntityId(TranslatedEntity entityType,
Object entity) |
String |
TranslationDao.getEntityId(TranslatedEntity entityType,
Object entity)
Get the id for the object.
|
Class<?> |
TranslationDaoImpl.getEntityImpl(TranslatedEntity entity) |
Class<?> |
TranslationDao.getEntityImpl(TranslatedEntity entity)
Returns the entity implementation class based on the TranslatedEntity
|
Map<String,Object> |
TranslationDaoImpl.getIdPropertyMetadata(TranslatedEntity entity) |
Map<String,Object> |
TranslationDao.getIdPropertyMetadata(TranslatedEntity entity)
Returns a map that holds the following data for the given entity:
"name" --> idProperty (the name of the id property, always a String)
"type" --> idProperty's type (usually either Long or String)
|
protected String |
TranslationDaoImpl.getUpdatedEntityId(TranslatedEntity entityType,
Long idValue) |
protected String |
TranslationDaoImpl.getUpdatedEntityId(TranslatedEntity entityType,
String entityId) |
List<Translation> |
TranslationDaoImpl.readAllTranslationEntries(TranslatedEntity entityType,
ResultType stage) |
List<Translation> |
TranslationDao.readAllTranslationEntries(TranslatedEntity entityType,
ResultType stage)
Read all the available translations for the given params.
|
List<Translation> |
TranslationDaoImpl.readAllTranslationEntries(TranslatedEntity entityType,
ResultType stage,
List<String> entityIds) |
List<Translation> |
TranslationDao.readAllTranslationEntries(TranslatedEntity entityType,
ResultType stage,
List<String> entityIds)
Read all the available translations for the given params.
|
List<StandardCacheItem> |
TranslationDaoImpl.readConvertedTranslationEntries(TranslatedEntity entityType,
ResultType stage) |
List<StandardCacheItem> |
TranslationDao.readConvertedTranslationEntries(TranslatedEntity entityType,
ResultType stage)
Read all translation entries (see
TranslationDao.readAllTranslationEntries(org.broadleafcommerce.common.i18n.domain.TranslatedEntity, org.broadleafcommerce.common.extension.ResultType) ),
and convert those results into a list of StandardCacheItem instances. |
Translation |
TranslationDaoImpl.readTranslation(TranslatedEntity entity,
String entityId,
String fieldName,
String localeCode) |
Translation |
TranslationDao.readTranslation(TranslatedEntity entity,
String entityId,
String fieldName,
String localeCode)
Reads a translation for the requested parameters.
|
Translation |
TranslationDaoImpl.readTranslation(TranslatedEntity entityType,
String entityId,
String fieldName,
String localeCode,
String localeCountryCode,
ResultType stage) |
Translation |
TranslationDao.readTranslation(TranslatedEntity entityType,
String entityId,
String fieldName,
String localeCode,
String localeCountryCode,
ResultType stage)
Read a specific translation for the given params.
|
List<Translation> |
TranslationDaoImpl.readTranslations(TranslatedEntity entity,
String entityId,
String fieldName) |
List<Translation> |
TranslationDao.readTranslations(TranslatedEntity entity,
String entityId,
String fieldName)
Reads all translations for a given field
|
Modifier and Type | Method and Description |
---|---|
TranslatedEntity |
Translation.getEntityType() |
TranslatedEntity |
TranslationImpl.getEntityType() |
static TranslatedEntity |
TranslatedEntity.getInstance(String type) |
static TranslatedEntity |
TranslatedEntity.getInstanceFromFriendlyType(String friendlyType) |
Modifier and Type | Method and Description |
---|---|
static Map<String,TranslatedEntity> |
TranslatedEntity.getTypes() |
Modifier and Type | Method and Description |
---|---|
void |
Translation.setEntityType(TranslatedEntity entityType) |
void |
TranslationImpl.setEntityType(TranslatedEntity entityType) |
Modifier and Type | Method and Description |
---|---|
TranslatedEntity |
TranslationServiceImpl.getAssignableEntityType(String className) |
TranslatedEntity |
TranslationService.getAssignableEntityType(String className)
Gets the TranslatedEntity based on the passed className.
|
protected TranslatedEntity |
TranslationServiceImpl.getEntityType(Class<?> entityClass) |
protected TranslatedEntity |
TranslationServiceImpl.getEntityType(Object entity) |
Modifier and Type | Method and Description |
---|---|
protected static String |
TranslationBatchReadCache.buildCacheKey(TranslatedEntity entityType,
String id,
String propertyName,
String localeCode) |
List<Translation> |
TranslationServiceImpl.findAllTranslationEntries(TranslatedEntity translatedEntity,
ResultType standard,
List<String> entityIds) |
List<Translation> |
TranslationService.findAllTranslationEntries(TranslatedEntity translatedEntity,
ResultType standard,
List<String> entityIds)
Find all the available translations for the given params.
|
String |
TranslationSupport.getCacheKey(ResultType resultType,
TranslatedEntity entityType)
Build a cache key
|
String |
TranslationServiceImpl.getCacheKey(ResultType resultType,
TranslatedEntity entityType) |
protected String |
SparseTranslationOverrideStrategy.getCacheKey(TranslatedEntity type,
String entityId,
String fieldName,
String localeCode) |
static Translation |
TranslationBatchReadCache.getFromCache(TranslatedEntity entityType,
String id,
String propertyName,
String localeCode) |
LocalePair |
TranslationOverrideStrategy.getLocaleBasedOverride(String property,
TranslatedEntity entityType,
String entityId,
String localeCode,
String localeCountryCode,
String basicCacheKey)
Retrieve the standard site override translation, if applicable
|
LocalePair |
SparseTranslationOverrideStrategy.getLocaleBasedOverride(String property,
TranslatedEntity entityType,
String entityId,
String localeCode,
String localeCountryCode,
String basicCacheKey) |
LocalePair |
ThresholdCacheTranslationOverrideStrategy.getLocaleBasedOverride(String property,
TranslatedEntity entityType,
String entityId,
String localeCode,
String localeCountryCode,
String basicCacheKey) |
LocalePair |
TranslationOverrideStrategy.getLocaleBasedTemplateValue(String templateCacheKey,
String property,
TranslatedEntity entityType,
String entityId,
String localeCode,
String localeCountryCode,
String specificPropertyKey,
String generalPropertyKey)
Retrieve the template level translation, if applicable
|
LocalePair |
SparseTranslationOverrideStrategy.getLocaleBasedTemplateValue(String templateCacheKey,
String property,
TranslatedEntity entityType,
String entityId,
String localeCode,
String localeCountryCode,
String specificPropertyKey,
String generalPropertyKey) |
LocalePair |
ThresholdCacheTranslationOverrideStrategy.getLocaleBasedTemplateValue(String templateCacheKey,
String property,
TranslatedEntity entityType,
String entityId,
String localeCode,
String localeCountryCode,
String specificPropertyKey,
String generalPropertyKey) |
protected String |
TranslationServiceImpl.getOverrideTranslatedValue(String property,
TranslatedEntity entityType,
String entityId,
String localeCode,
String localeCountryCode) |
protected String |
TranslationServiceImpl.getTemplateTranslatedValue(String standardCacheKey,
String property,
TranslatedEntity entityType,
String entityId,
String localeCode,
String localeCountryCode,
String specificPropertyKey,
String generalPropertyKey) |
protected List<Translation> |
SparseTranslationOverrideStrategy.getTemplateTranslations(TranslatedEntity entityType,
String entityId,
String property,
String localeCode) |
Translation |
TranslationServiceImpl.getTranslation(TranslatedEntity entity,
String entityId,
String fieldName,
String localeCode) |
Translation |
TranslationService.getTranslation(TranslatedEntity entity,
String entityId,
String fieldName,
String localeCode)
Attempts to find the translation object for the given parameters
|
Modifier and Type | Method and Description |
---|---|
protected void |
I18nSolrIndexServiceExtensionHandler.addEntitiesToTranslationCache(List<String> entityIds,
TranslatedEntity translatedEntity) |
Copyright © 2022. All rights reserved.