Skip to main content
string
The Spring bean identifier containing the service being called.translationServiceImpl
string
default:"PROTOTYPE"
Bean scope. Use PROTOTYPE for service calls.
string
The public service method name shown in the signature below.
object[]
The method argument array. Each argument is passed as an object with index 0, 1, and so on; the value must match the Java parameter type.

Headers

Send Lang-Context and Site-Context with every request. For protected methods, send the JWT in the Authorization header as Bearer <token>. Access: GUEST. Bearer Token: not required.
  • GUEST — unauthenticated users; only whitelist services are available.
  • USER — authentication is required; methods with USER checks are available.
  • ADMIN — full access to public methods of all services.
  • If a method checks a role internally, GUEST may receive null.

Methods

void

init

TranslationsRepository

getRepository

LanguageRepository

getLanguageRepository

Deque<Map<String, Object>>

getPaginationFilter

LinkedHashSet<LocalizedText>

searchTranslations

Page<LocalizedText>

searchTranslationsPaged

List<LocalizedText>

searchTranslations

List<LocalizedText>

searchTranslationsById

List<LocalizedText>

findTranslations

List<LocalizedText>

findTranslationsByLangCode

Map<String, String>

getTranslationsByLangCode

String

getLangFromContext

Map<String, String>

getTranslatedTimeDuration

LocalizedText

getTranslationById

Map<String,String>

getTranslation

Map<String, String>

getTranslation

String

getTranslationValue

String

getTranslationValue

List<Language>

searchLanguages

List<Language>

findLanguages

Optional<LocalizedText>

createTranslation

Optional<Language>

createLanguage

Example JSON request object:
Request:
Optional<LocalizedText>

saveTranslation

Optional<LocalizedText>

saveArticle

Optional<Language>

saveLanguage

Example JSON request object:
Request:
void

removeTranslationAndClean

void

removeTranslationsByIds

void

removeTranslationsByLanguage

void

removeLanguageAndClean

void

removeLanguagesByIds

HashSet<LocalizedText>

getTranslations

List<Map<String, Object>>

getAlphabetForActiveLanguage

List<Map<String, Object>>

getAlphabetForLanguage

String

getDefaultLanguage