public class ComponentService
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
ComponentService.TranslationsDTO
A Data Transfer Object (DTO) for localized messages retrieved from cache.
|
| Constructor and Description |
|---|
ComponentService(MessagesDTO dto) |
| Modifier and Type | Method and Description |
|---|---|
MessageCacheItem |
getMessages()
Deprecated.
Use
getTranslations(). |
MessageCacheItem |
getMessages(java.util.Iterator<java.util.Locale> fallbackLocalesIter)
Deprecated.
|
ComponentService.TranslationsDTO |
getTranslations()
Calls
getTranslations(Iterator) using the pre-configured locale fallback queue. |
ComponentService.TranslationsDTO |
getTranslations(java.util.Iterator<java.util.Locale> fallbackLocalesIter)
Gets messages from cache.
|
boolean |
isComponentAvailable() |
public ComponentService(MessagesDTO dto)
public MessageCacheItem getMessages()
getTranslations().public MessageCacheItem getMessages(java.util.Iterator<java.util.Locale> fallbackLocalesIter)
getTranslations(Iterator).public ComponentService.TranslationsDTO getTranslations()
getTranslations(Iterator) using the pre-configured locale fallback queue.public ComponentService.TranslationsDTO getTranslations(java.util.Iterator<java.util.Locale> fallbackLocalesIter)
fallbackLocalesIter - The locale fallback queue iterator to be used on failure. If null, there will be no fallback mechanism on failure so the message map will be empty.public boolean isComponentAvailable()