Class TranslationServiceImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.service.CommonServiceImpl<C>
-
- org.flowable.common.engine.impl.service.CommonEngineServiceImpl<PlatformEngineConfiguration>
-
- com.flowable.platform.engine.impl.translation.TranslationServiceImpl
-
- All Implemented Interfaces:
TranslationService
public class TranslationServiceImpl extends CommonEngineServiceImpl<PlatformEngineConfiguration> implements TranslationService
- Author:
- Filip Hrisafov
-
-
Field Summary
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutor
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
-
Constructor Summary
Constructors Constructor Description TranslationServiceImpl(PlatformEngineConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TranslationQuery
createTranslationQuery()
void
deleteByScopeIdAndScopeType(String scopeId, String scopeType)
Delete translation values for the given scope id and scope type.List<Translation>
findByScopeIdAndScopeType(String scopeId, String scopeType)
Find all translations for the given scope id and scope type.Translation
save(String scopeId, String scopeType, String key, String locale, String value)
Create or update a translation for the given scoped object.Translation
updateValue(String translationId, String value)
Update the translation with the given value-
Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
-
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
-
-
-
Constructor Detail
-
TranslationServiceImpl
public TranslationServiceImpl(PlatformEngineConfiguration configuration)
-
-
Method Detail
-
createTranslationQuery
public TranslationQuery createTranslationQuery()
- Specified by:
createTranslationQuery
in interfaceTranslationService
-
save
public Translation save(String scopeId, String scopeType, String key, String locale, String value)
Description copied from interface:TranslationService
Create or update a translation for the given scoped object.- Specified by:
save
in interfaceTranslationService
- Parameters:
scopeId
- the id of the scoped object for the translationscopeType
- the type of the scoped object for the translationkey
- the key of the translationlocale
- the locale of the translationvalue
- the translation value- Returns:
- the created or updated translation
-
updateValue
public Translation updateValue(String translationId, String value)
Description copied from interface:TranslationService
Update the translation with the given value- Specified by:
updateValue
in interfaceTranslationService
- Parameters:
translationId
- the id of the translation that should be updatedvalue
- the new value of the translation- Returns:
- The updated translation
-
findByScopeIdAndScopeType
public List<Translation> findByScopeIdAndScopeType(String scopeId, String scopeType)
Description copied from interface:TranslationService
Find all translations for the given scope id and scope type.- Specified by:
findByScopeIdAndScopeType
in interfaceTranslationService
- Parameters:
scopeId
- the scope id for which to find translationsscopeType
- the scope type for which to find translations- Returns:
- the translations for the given scope
-
deleteByScopeIdAndScopeType
public void deleteByScopeIdAndScopeType(String scopeId, String scopeType)
Description copied from interface:TranslationService
Delete translation values for the given scope id and scope type.- Specified by:
deleteByScopeIdAndScopeType
in interfaceTranslationService
- Parameters:
scopeId
- the scope id for which to find translationsscopeType
- the scope type for which to find translations
-
-