Class LocalizationServiceImpl
-
- All Implemented Interfaces:
-
com.google.common.util.concurrent.Service,org.somda.sdc.glue.provider.localization.LocalizationService
public class LocalizationServiceImpl extends AbstractIdleService implements LocalizationService
Default implementation of LocalizationService
-
-
Constructor Summary
Constructors Constructor Description LocalizationServiceImpl(LocalizationStorage localizationStorage)
-
Method Summary
Modifier and Type Method Description List<LocalizedText>getLocalizedText(List<String> ref, @Nullable() BigInteger version, List<String> lang, List<LocalizedTextWidth> textWidth, List<BigInteger> numberOfLines)Gets a localized text that is referenced in the MDIB. List<String>getSupportedLanguages()Gets a list of all supported languages. -
Methods inherited from class com.google.common.util.concurrent.AbstractIdleService
addListener, awaitRunning, awaitTerminated, failureCause, isRunning, startAsync, state, stopAsync, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
LocalizationServiceImpl
LocalizationServiceImpl(LocalizationStorage localizationStorage)
-
-
Method Detail
-
getLocalizedText
List<LocalizedText> getLocalizedText(List<String> ref, @Nullable() BigInteger version, List<String> lang, List<LocalizedTextWidth> textWidth, List<BigInteger> numberOfLines)
Gets a localized text that is referenced in the MDIB.
- Parameters:
ref- a zero or more reference names of the texts that are requested.version- of the referenced text that is requested.lang- a zero or more language identifiers to get different translations of the requested text.textWidth- a zero or more LocalizedTextWidth identifiers to filter for different text widths.numberOfLines- a zero or more BigInteger to filter for number of lines.- Returns:
a list of LocalizedText texts that matches search criteria.
-
getSupportedLanguages
List<String> getSupportedLanguages()
Gets a list of all supported languages.
- Returns:
a list of supported language identifiers.
-
-
-
-