public class TranslationServiceImpl extends org.flowable.common.engine.impl.service.CommonEngineServiceImpl<PlatformEngineConfiguration> implements TranslationService
| Constructor and Description |
|---|
TranslationServiceImpl(PlatformEngineConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
TranslationQuery |
createTranslationQuery() |
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
|
getCommandExecutor, setCommandExecutorpublic TranslationServiceImpl(PlatformEngineConfiguration configuration)
public TranslationQuery createTranslationQuery()
createTranslationQuery in interface TranslationServicepublic Translation save(String scopeId, String scopeType, String key, String locale, String value)
TranslationServicesave in interface TranslationServicescopeId - 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 valuepublic Translation updateValue(String translationId, String value)
TranslationServiceupdateValue in interface TranslationServicetranslationId - the id of the translation that should be updatedvalue - the new value of the translationpublic List<Translation> findByScopeIdAndScopeType(String scopeId, String scopeType)
TranslationServicefindByScopeIdAndScopeType in interface TranslationServicescopeId - the scope id for which to find translationsscopeType - the scope type for which to find translationsCopyright © 2019. All rights reserved.