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 org.flowable.common.engine.impl.service.CommonEngineServiceImpl<PlatformEngineConfiguration> implements TranslationService
- Author:
- Filip Hrisafov
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TranslationServiceImpl(PlatformEngineConfiguration configuration) -
Method Summary
Modifier and Type Method Description TranslationQuerycreateTranslationQuery()voiddeleteByScopeIdAndScopeType(java.lang.String scopeId, java.lang.String scopeType)Delete translation values for the given scope id and scope type.java.util.List<Translation>findByScopeIdAndScopeType(java.lang.String scopeId, java.lang.String scopeType)Find all translations for the given scope id and scope type.Translationsave(java.lang.String scopeId, java.lang.String scopeType, java.lang.String key, java.lang.String locale, java.lang.String value)Create or update a translation for the given scoped object.TranslationupdateValue(java.lang.String translationId, java.lang.String value)Update the translation with the given valueMethods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
-
Constructor Details
-
Method Details
-
createTranslationQuery
- Specified by:
createTranslationQueryin interfaceTranslationService
-
save
public Translation save(java.lang.String scopeId, java.lang.String scopeType, java.lang.String key, java.lang.String locale, java.lang.String value)Description copied from interface:TranslationServiceCreate or update a translation for the given scoped object.- Specified by:
savein 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
Description copied from interface:TranslationServiceUpdate the translation with the given value- Specified by:
updateValuein interfaceTranslationService- Parameters:
translationId- the id of the translation that should be updatedvalue- the new value of the translation- Returns:
- The updated translation
-
findByScopeIdAndScopeType
public java.util.List<Translation> findByScopeIdAndScopeType(java.lang.String scopeId, java.lang.String scopeType)Description copied from interface:TranslationServiceFind all translations for the given scope id and scope type.- Specified by:
findByScopeIdAndScopeTypein 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(java.lang.String scopeId, java.lang.String scopeType)Description copied from interface:TranslationServiceDelete translation values for the given scope id and scope type.- Specified by:
deleteByScopeIdAndScopeTypein interfaceTranslationService- Parameters:
scopeId- the scope id for which to find translationsscopeType- the scope type for which to find translations
-