|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LanguageManager
Provides a service for content languages. Note that this has nothing to do with the i18n of the WCM itself.
| Nested Class Summary | |
|---|---|
static interface |
LanguageManager.Info
Information about a resource in a language tree. |
static interface |
LanguageManager.Tree
Encapsulates information about language specific existences of resources in a tree. |
static interface |
LanguageManager.TreeNode
Denotes a node in the tree. |
| Method Summary | |
|---|---|
LanguageManager.Tree |
compareLanguageTrees(org.apache.sling.api.resource.ResourceResolver resolver,
String path)
Compares language trees using the language of the page at the given path as main language. |
Map<Locale,LanguageManager.Info> |
getAdjacentInfo(org.apache.sling.api.resource.ResourceResolver resolver,
String path)
Returns a map of language information for each configured enabled language filled with information if respective hierarch or content exists for that language. |
Set<Locale> |
getEnabledLanguages()
Returns a set of languages that are enabled as content languages. |
String |
getIsoCountry(Locale language)
Returns the country iso code for the given locale. |
| Method Detail |
|---|
Set<Locale> getEnabledLanguages()
String getIsoCountry(Locale language)
language - the language locale to retrieve the country from
Map<Locale,LanguageManager.Info> getAdjacentInfo(org.apache.sling.api.resource.ResourceResolver resolver,
String path)
resolver - resource resolverpath - path to check
null if the given path does not
reside on or below a language root.getEnabledLanguages(),
LanguageUtil.getLanguageRoot(String)
LanguageManager.Tree compareLanguageTrees(org.apache.sling.api.resource.ResourceResolver resolver,
String path)
resolver - resource resolvedpath - path to resource to start from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||