public interface ContentFilterLanguagesService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.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 |
|---|---|
java.lang.String |
convertToNewISOCode(java.lang.String code)
Since
java.util.Locale uses and returns old ISO code and the content-filter-lang.xml
respects the new ones. |
java.lang.String |
convertToOldISOCode(java.lang.String code)
Since
java.util.Locale uses and returns old ISO code and the content-filter-lang.xml
respects the new ones. |
java.lang.String |
getDefaultLanguage() |
java.util.List |
getFilterLanguages()
Get ordered list of languages code
|
java.lang.String |
getLabelByCode(java.lang.String code)
Get the language of the specified language code
|
java.util.List |
getMissingLanguages(java.util.List availableLanguages)
Get the the odered filter which results form an extract of availableLanguages on the filterLanguages
|
int |
getOrderByCode(java.lang.String code)
Get the order of the specified language code
|
static final java.lang.String MESSAGE_PREFIX
@NotAuditable int getOrderByCode(java.lang.String code)
code - org.alfresco.error.AlfrescoRuntimeException - if the code doesn't exist@NotAuditable java.lang.String getLabelByCode(java.lang.String code)
code - org.alfresco.error.AlfrescoRuntimeException - if the code doesn't exist@Auditable java.util.List getFilterLanguages()
@Auditable java.util.List getMissingLanguages(java.util.List availableLanguages)
availableLanguages - the languages list whose will be removed from the filterLanguages@Auditable java.lang.String getDefaultLanguage()
@NotAuditable java.lang.String convertToOldISOCode(java.lang.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 java.lang.String convertToNewISOCode(java.lang.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 - 2010 Alfresco Software, Inc. All Rights Reserved.