Interface TranslationMessageService
-
- All Superinterfaces:
Service
- All Known Subinterfaces:
TranslationMessageServiceLocal
public interface TranslationMessageService extends Service
Service interface for translation messages
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApplicationTranslationDatagetApplicationTranslationData(@NotNull LanguageVO language)Gets data for translations for the given languagePropertiesgetCustomizedKeysPerLanguage(@NotNull LanguageVO language)Returns all customized keys for the given language, in form of aPropertiesobjectTranslationKeyDatagetTranslationKeyData(@NotNull BasicTranslationKeyDTO key)Returns data for the given translation keyList<LanguageDetailedVO>listTranslatableLanguages()List the languages the current user can translatevoidrestoreOriginalTranslation(@NotNull BasicTranslationKeyDTO key)Reverts any changes on the given keyvoidsaveKey(@NotNull TranslationKeyDTO key)Save a customized keyPage<TranslationKeyVO>searchKeys(@NotNull TranslationQuery params)Searches for translation keysvoidsetCustomizedKeysPerLanguage(@NotNull SetCustomizedTranslationsDTO params)Set the customized keys for a language
-
-
-
Method Detail
-
getApplicationTranslationData
ApplicationTranslationData getApplicationTranslationData(@NotNull @NotNull LanguageVO language) throws FrameworkException
Gets data for translations for the given language- Throws:
FrameworkException
-
getCustomizedKeysPerLanguage
Properties getCustomizedKeysPerLanguage(@NotNull @NotNull LanguageVO language) throws FrameworkException
Returns all customized keys for the given language, in form of aPropertiesobject- Throws:
FrameworkException
-
getTranslationKeyData
TranslationKeyData getTranslationKeyData(@NotNull @NotNull BasicTranslationKeyDTO key) throws FrameworkException
Returns data for the given translation key- Throws:
FrameworkException
-
listTranslatableLanguages
List<LanguageDetailedVO> listTranslatableLanguages() throws FrameworkException
List the languages the current user can translate- Throws:
FrameworkException
-
restoreOriginalTranslation
void restoreOriginalTranslation(@NotNull @NotNull BasicTranslationKeyDTO key) throws FrameworkExceptionReverts any changes on the given key- Throws:
FrameworkException
-
saveKey
void saveKey(@NotNull @NotNull TranslationKeyDTO key) throws FrameworkExceptionSave a customized key- Throws:
FrameworkException
-
searchKeys
Page<TranslationKeyVO> searchKeys(@NotNull @NotNull TranslationQuery params) throws FrameworkException, QueryParseException
Searches for translation keys
-
setCustomizedKeysPerLanguage
void setCustomizedKeysPerLanguage(@NotNull @NotNull SetCustomizedTranslationsDTO params) throws FrameworkExceptionSet the customized keys for a language- Throws:
FrameworkException
-
-