|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.model.ml.ContentFilterLanguagesMap
public class ContentFilterLanguagesMap
Provides a an implementation of the Content Filter Languages Service
Content Filter Languages Service
| Field Summary |
|---|
| Fields inherited from interface org.alfresco.service.cmr.ml.ContentFilterLanguagesService |
|---|
MESSAGE_PREFIX |
| Constructor Summary | |
|---|---|
ContentFilterLanguagesMap()
|
|
| Method Summary | |
|---|---|
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 |
void |
init()
Initialises the map using the configuration service provided |
void |
setConfigService(org.springframework.extensions.config.ConfigService configService)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentFilterLanguagesMap()
| Method Detail |
|---|
public void setConfigService(org.springframework.extensions.config.ConfigService configService)
configService - the config service to use to read languagespublic java.util.List getFilterLanguages()
ContentFilterLanguagesService
getFilterLanguages in interface ContentFilterLanguagesServicepublic java.util.List getMissingLanguages(java.util.List availableLanguages)
ContentFilterLanguagesService
getMissingLanguages in interface ContentFilterLanguagesServiceavailableLanguages - the languages list whose will be removed from the filterLanguages
public java.lang.String getLabelByCode(java.lang.String code)
ContentFilterLanguagesService
getLabelByCode in interface ContentFilterLanguagesServicepublic int getOrderByCode(java.lang.String code)
ContentFilterLanguagesService
getOrderByCode in interface ContentFilterLanguagesServicepublic java.lang.String getDefaultLanguage()
getDefaultLanguage in interface ContentFilterLanguagesServicepublic void init()
public java.lang.String convertToOldISOCode(java.lang.String code)
ContentFilterLanguagesServicejava.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
convertToOldISOCode in interface ContentFilterLanguagesServicecode - the ISO language code to convert
public java.lang.String convertToNewISOCode(java.lang.String code)
ContentFilterLanguagesServicejava.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
convertToNewISOCode in interface ContentFilterLanguagesServicecode - the ISO language code to convert
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||