public interface ContentFilterLanguagesService
Modifier and Type | Field and Description |
---|---|
static String |
MESSAGE_PREFIX
I18N message prefix to found the translation of a language label with a
given lang code.
|
Modifier and Type | Method and Description |
---|---|
String |
convertToNewISOCode(String code)
Since
java.util.Locale uses and returns old ISO code and the content-filter-lang.xml
respects the new ones. |
String |
convertToOldISOCode(String code)
Since
java.util.Locale uses and returns old ISO code and the content-filter-lang.xml
respects the new ones. |
String |
getDefaultLanguage() |
List<String> |
getFilterLanguages()
Get ordered list of languages code
|
String |
getLabelByCode(String code)
Get the language of the specified language code
|
List<String> |
getMissingLanguages(List<String> availableLanguages)
Get the the odered filter which results form an extract of availableLanguages on the filterLanguages
|
int |
getOrderByCode(String code)
Get the order of the specified language code
|
static final String MESSAGE_PREFIX
@NotAuditable int getOrderByCode(String code)
code
- Stringorg.alfresco.error.AlfrescoRuntimeException
- if the code doesn't exist@NotAuditable String getLabelByCode(String code)
code
- Stringorg.alfresco.error.AlfrescoRuntimeException
- if the code doesn't exist@Auditable List<String> getFilterLanguages()
@Auditable List<String> getMissingLanguages(List<String> availableLanguages)
availableLanguages
- the languages list whose will be removed from the filterLanguages@Auditable String getDefaultLanguage()
@NotAuditable String convertToOldISOCode(String code)
java.util.Locale
uses and returns old ISO code and the content-filter-lang.xml
respects the new ones. This method convert new codes into old codes:
(he, yi, and id) new codes to (iw, ji, and in) old codes
code
- the ISO language code to convert@NotAuditable String convertToNewISOCode(String code)
java.util.Locale
uses and returns old ISO code and the content-filter-lang.xml
respects the new ones. This method convert old codes into new codes:
(iw, ji, and in) old codes to (he, yi, and id) new codes
code
- the ISO language code to convertCopyright © 2005–2017 Alfresco Software. All rights reserved.